Date: Fri, 14 Feb 2003 00:03:10 +0100 From: Vincent Jardin <vjardin@wanadoo.fr> To: net@FreeBSD.ORG Subject: How to get interface's sockaddr_dl with the routing socket ? Message-ID: <3E26DA8D0108FE1A@mel-rta9.wanadoo.fr> (added by postmaster@wanadoo.fr)
next in thread | raw e-mail | index | archive | help
Most of the userland program gets the informations about the interfaces via the Kernel sysctl_iflist() function. When a new interface is added, it is announced by the routing socket with a RTM_IFANNOUNCE message. However the structure if_announcemsghdr does not provide information about the interface's sockaddr_dl. Nevertheless, sysctl_iflist() can be used, but it is not efficient. What should the right fix be ? I was wondering if "ifpaddr = TAILQ_FIRST(&ifp->if_addrhead)->ifa_addr" could be added within rt_ifannouncemsg() and rt_ifmsg() just before rt_msg1() ? Regards, Vincent To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E26DA8D0108FE1A>