ifa6_flags via routing socket/sysctl
Tom Pusateri
pusateri at bangj.com
Wed Nov 6 18:57:37 UTC 2013
I have a network daemon that reads the interface list via the NET_RT_IFLIST/PF_ROUTE sysctl and then monitors changes to the interfaces using the routing socket.
I need to detect the interface address without the IN6_IFF_TEMPORARY flag set to advertise a permanent service.
The only way I have been able to figure out how to read the ifa6_flags is through a separate ioctl:
if (ioctl(s6, SIOCGIFAFLAG_IN6, &ifr6) < 0) {
perror("ifconfig: ioctl(SIOCGIFAFLAG_IN6)");
close(s6);
return;
}
Have I just missed the flags in the RTM_NEWADDR or RTM_IFINFO messages or are they not available via the routing socket messages?
Thanks,
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20131106/374dd518/attachment.sig>
More information about the freebsd-net
mailing list