From owner-freebsd-net@FreeBSD.ORG Wed Nov 6 18:57:37 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B7F9352D for ; Wed, 6 Nov 2013 18:57:37 +0000 (UTC) (envelope-from pusateri@bangj.com) Received: from oj.bangj.com (amt0.gin.ntt.net [129.250.11.170]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9038824DC for ; Wed, 6 Nov 2013 18:57:37 +0000 (UTC) Received: from dhcp-a3d5.meeting.ietf.org (dhcp-a3d5.meeting.ietf.org [31.133.163.213]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by oj.bangj.com (Postfix) with ESMTPSA id C433B6C11 for ; Wed, 6 Nov 2013 13:47:34 -0500 (EST) From: Tom Pusateri Content-Type: multipart/signed; boundary="Apple-Mail=_1E44B464-C99C-4E58-8AD9-4FD3B751224A"; protocol="application/pgp-signature"; micalg=pgp-sha1 Subject: ifa6_flags via routing socket/sysctl Message-Id: <0F75B72B-2FE4-45F3-AC2D-BF892D7B20F3@bangj.com> Date: Wed, 6 Nov 2013 10:47:32 -0800 To: freebsd-net@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1812\)) X-Mailer: Apple Mail (2.1812) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Nov 2013 18:57:37 -0000 --Apple-Mail=_1E44B464-C99C-4E58-8AD9-4FD3B751224A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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 --Apple-Mail=_1E44B464-C99C-4E58-8AD9-4FD3B751224A Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----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----- --Apple-Mail=_1E44B464-C99C-4E58-8AD9-4FD3B751224A--