summaryrefslogtreecommitdiffstats
path: root/sys/net/if_vlan.c
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2004-04-24 22:24:48 +0000
committerluigi <luigi@FreeBSD.org>2004-04-24 22:24:48 +0000
commit62793e142c94978239d4b6e11e9949130e4c3558 (patch)
tree84d208d9dd7d9f36600788f79bf76a1ded7598fa /sys/net/if_vlan.c
parent3a8abc28c71571f64f0c8f164fc61607842587d0 (diff)
downloadFreeBSD-src-62793e142c94978239d4b6e11e9949130e4c3558.zip
FreeBSD-src-62793e142c94978239d4b6e11e9949130e4c3558.tar.gz
arpcom untangling:
consistently with the rest of the code, use IFP2AC(ifp) to access the arpcom structure given the ifp. In this case also fix a difference in assumptions WRT the rest of the net/ sources: it is not the 'struct *softc' that starts with a 'struct arpcom', but a 'struct arpcom' that starts with a 'struct ifnet'
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r--sys/net/if_vlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index 315412f..87eabb7 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -691,7 +691,7 @@ vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
struct sockaddr *sa;
sa = (struct sockaddr *) &ifr->ifr_data;
- bcopy(((struct arpcom *)ifp->if_softc)->ac_enaddr,
+ bcopy(IFP2AC(ifp)->ac_enaddr,
(caddr_t) sa->sa_data, ETHER_ADDR_LEN);
}
break;
OpenPOWER on IntegriCloud