Re: How to get interface's sockaddr_dl with the routing socket ?

2003-02-14 Thread Vincent Jardin
> 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() ? I have found the solution : rti_info[RTAX_IFP] (ie ifpaddr) should never be filled with RTM_IFANNOUNCE b

How to get interface's sockaddr_dl with the routing socket ?

2003-02-13 Thread Vincent Jardin
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 inte