Oops, I didn't notice that I already committed the patch.
I'm sorry for that.
On Tue, Jun 30, 2015 at 9:07 PM, Darren Reed darr...@netbsd.org wrote:
Looking at the patch, the comment reads:
We can assume that ifp-if_dl is the same as ifnet_addrs[ifp-if_index]
so we can replace
Looking at the patch, the comment reads:
We can assume that ifp-if_dl is the same as ifnet_addrs[ifp-if_index]
so we can replace ifnet_addrs[ifp-if_index] with ifp-if_dl and
remove ifnet_addrs entirely.
The word assume is not very precise and suggests that you're
not 100% sure.
Hi,
ifnet_addrs is a global data used to look up
an ifaddr of an interface via ifp-if_index,
i.e., we can get an ifaddr via
ifnet_addrs[ifp-if_index].
As looking at if.c, I notice that
ifnet_addrs[ifp-if_index] is always the same as
ifp-if_dl. So we can use ifp-if_dl instead of