Date: Wed, 6 Nov 2013 10:47:32 -0800 From: Tom Pusateri <pusateri@bangj.com> To: freebsd-net@freebsd.org Subject: ifa6_flags via routing socket/sysctl Message-ID: <0F75B72B-2FE4-45F3-AC2D-BF892D7B20F3@bangj.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
iQEcBAEBAgAGBQJSeo7EAAoJEPk0GMVmUuYM4EkH/0TyJ3Fm1TQLiHZbBuWmYnYG
XvSyKjxog3IYrnvuGDATr4dXjhYRUiN1LMTL8zM1ZoxQl9a5Mdc6IrenBJcyUmES
LD3+d2/ghiBFAnkmEmmrOaxLcQ0TbDcWRq/aX+PanVauZiXSciFZVjIqNJA8YIYP
qh3ezWtuxOJZc/91sEQiLbnNHloVpNIQr2bR5X1yHsjJkFcOFdyfQQlpKtcNwJQH
HSq688IPKeaZaSO+/gIF3SsRsUdeHYm/fnqi6jr25/z+xgxfD6qu0UmIQ4RQN3fX
7cU28HYydP1eTS5ETsK00Ao8XkF8zcoMuqiPze7gEkRWOswELvFdpwGi1k/l/cw=
=6uVl
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0F75B72B-2FE4-45F3-AC2D-BF892D7B20F3>
