LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Why socket option "IPV6_ROUTER_ALERT" is invalid? (https://www.linuxquestions.org/questions/programming-9/why-socket-option-ipv6_router_alert-is-invalid-782358/)

heartstring 01-15-2010 06:14 AM

Why socket option "IPV6_ROUTER_ALERT" is invalid?
 
I want router catch the ip packet which mark router alert label, change it and send to the next hop. Not just forward it immediately.
So I set IP_ROUTER_ALERT and IPV6_ROUTER_ALERT option for ipv4 and ipv6 socket. IP_ROUTER_ALERT was just fine and I can do what I expect. However when I set on IPV6_ROUTER_ALERT, it tells me "Protocol not available" (errno = 92). And This option can be found in "$Kernel/net/ipv6/ipv6_sockglue.c"

Could anyone help? Thanks ~~~

ta0kira 01-16-2010 05:13 PM

Is your kernel compiled with IPv6 support enabled?
Kevin Barry

heartstring 01-16-2010 08:26 PM

I think I've opened all of the IPv6 features...(version 2.6.28)
Quote:

Originally Posted by ta0kira (Post 3829036)
Is your kernel compiled with IPv6 support enabled?
Kevin Barry



All times are GMT -5. The time now is 10:30 PM.