From owner-freebsd-net@FreeBSD.ORG Fri Aug 8 03:17:07 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D165237B401 for ; Fri, 8 Aug 2003 03:17:07 -0700 (PDT) Received: from unimur.um.es (unimur.um.es [155.54.1.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4453B43FD7 for ; Fri, 8 Aug 2003 03:17:05 -0700 (PDT) (envelope-from yoyes@dif.um.es) Received: from aries.dif.um.es (aries.dif.um.es [155.54.210.253]) by unimur.um.es (8.9.1b+Sun/8.9.1) with ESMTP id MAA08841 for ; Fri, 8 Aug 2003 12:17:04 +0200 (MEST) Received: from IPv6Router (gemela.dif.um.es [155.54.210.45]) by aries.dif.um.es (Postfix) with ESMTP id 647A614426 for ; Fri, 8 Aug 2003 12:06:16 +0200 (MET DST) Content-Type: text/plain; charset="us-ascii" From: Maria Dolores Moral To: freebsd-net@freebsd.org Date: Fri, 8 Aug 2003 13:20:52 +0200 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200308081320.52456.yoyes@dif.um.es> Subject: Setsockopt: Invalid argument X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2003 10:17:08 -0000 Hello. I am working in a kernel implementation.=20 I try to pass argument from the user to the kernel.=20 I use a socket and the option: setsockopt(socket,IPPROTO_ICMPV6,ICMP6_REPORTAUTH,&ua,sizeof(ua)) in my program Server.c. I have defined ICMP6_REPORTAUTH in in6.h, and I have rebuil the kernel.=20 #> make && make install But when I compile Serv: gcc -DICMP6_REPORTAUTH Server.c -o Serv I obtain Serv: setsockopt(ICMP6_REPORTAUTH): Invalid argument I have read in a articule that it must set in the kernel the option ..., IPPROTO_ICMPV6 in this case, but I do not how. If you know how or a better solution, please help me. Thanks a lot. Best Regards