Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Aug 2003 02:54:34 +0900
From:      JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= <jinmei@isl.rdc.toshiba.co.jp>
To:        Maria Dolores Moral <yoyes@dif.um.es>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Setsockopt: Invalid argument
Message-ID:  <y7visp8m3vp.wl@ocean.jinmei.org>
In-Reply-To: <200308081320.52456.yoyes@dif.um.es>
References:  <200308081320.52456.yoyes@dif.um.es>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> On Fri, 8 Aug 2003 13:20:52 +0200, 
>>>>> Maria Dolores Moral <yoyes@dif.um.es> said:

> Hello. I am working in a kernel implementation. 
> I try to pass argument from the user to the kernel. 

> 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. 
> #> 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.

Please show us more details about your implementation.  Specifically,
we need to know the corresponding kernel implementation (I guess you
modified sys/netinet6/icmp6.c:icmp6_ctloutput) and the type of the
socketoption argument (variable "ua" in the example above).

					JINMEI, Tatuya
					Communication Platform Lab.
					Corporate R&D Center, Toshiba Corp.
					jinmei@isl.rdc.toshiba.co.jp


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?y7visp8m3vp.wl>