Setsockopt: Invalid argument
JINMEI Tatuya /神明達哉
jinmei at isl.rdc.toshiba.co.jp
Fri Aug 8 10:54:41 PDT 2003
>>>>> On Fri, 8 Aug 2003 13:20:52 +0200,
>>>>> Maria Dolores Moral <yoyes at 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 at isl.rdc.toshiba.co.jp
More information about the freebsd-net
mailing list