>>>>> On Fri, 8 Aug 2003 13:20:52 +0200,
>>>>> Maria Dolores Moral <[EMAIL PROTECTED]> 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.
[EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"