Setsockopt: Invalid argument
Maria Dolores Moral
yoyes at dif.um.es
Fri Aug 8 03:17:08 PDT 2003
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.
If you know how or a better solution, please help me.
Thanks a lot.
Best Regards
More information about the freebsd-net
mailing list