Prefer actual field names (if_addrhead, ifa_link) to macros aliasing
those field names in FreeBSD code. MFC after: 2 weeks
This commit is contained in:
parent
1e6a41398c
commit
4ed6f8c1f1
@ -594,7 +594,7 @@ search_ip6_addr_net (struct in6_addr * ip6_addr)
|
||||
|
||||
TAILQ_FOREACH(mdc, &V_ifnet, if_link) {
|
||||
IF_ADDR_LOCK(mdc);
|
||||
TAILQ_FOREACH(mdc2, &mdc->if_addrhead, ifa_list) {
|
||||
TAILQ_FOREACH(mdc2, &mdc->if_addrhead, ifa_link) {
|
||||
if (mdc2->ifa_addr->sa_family == AF_INET6) {
|
||||
fdm = (struct in6_ifaddr *)mdc2;
|
||||
copia = fdm->ia_addr.sin6_addr;
|
||||
|
@ -93,7 +93,7 @@ ifaddr_change(void *arg __unused, struct ifnet *ifp)
|
||||
/* ...using nic 'ifp->if_xname' as dynamic alias address. */
|
||||
if (strncmp(ptr->if_name, ifp->if_xname, IF_NAMESIZE) == 0) {
|
||||
IF_ADDR_LOCK(ifp);
|
||||
TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list) {
|
||||
TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
|
||||
if (ifa->ifa_addr == NULL)
|
||||
continue;
|
||||
if (ifa->ifa_addr->sa_family != AF_INET)
|
||||
|
Loading…
Reference in New Issue
Block a user