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 [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to