I want to know the value of the m flag and the o flag of a recently received router advertisement. From the kernel source code, I learned that the m flag and the o flag are saved.
in6_dev->if_flags = (in6_dev->if_flags & ~(IF_RA_MANAGED | IF_RA_OTHERCONF)) | (ra_msg->icmph.icmp6_addrconf_managed ? IF_RA_MANAGED : 0) | (ra_msg->icmph.icmp6_addrconf_other ? IF_RA_OTHERCONF : 0); . . .
Then I believe that it should be possible to get these values ββusing the ioctl or proc file system or any other method. Can anyone point this way.
theB
source share