IPv6: Router Advertisement : How do I get the M and O Flags programmatically?

Submitted by kz1000
on June 10, 2009 - 10:57am

Hello,
I have added a DHCPv6 client (Dibbler) on my PPC Linux 2.6.12 embedded system. I am trying to find and use the Managed and Options bits/flags "M and O Flags" (RFC 5175 / RFC 4861). I can sniff the RA with wireshark and see the flags are set in the the Router Advertisement.

I have been hunting around the kernel and simply cannot find any way to access these bits. Can someone tell me if and where they might be stored (/proc, some ioctl call, some API call, access thru netlink?)

Thanks!
-Ken