summaryrefslogtreecommitdiffstats
path: root/sys/net/if_iso88025subr.c
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2004-04-24 21:59:41 +0000
committerluigi <luigi@FreeBSD.org>2004-04-24 21:59:41 +0000
commit963f4166f4487fc3d9e4868829a2cb7ebfa985bc (patch)
tree4b0044e31443e925bbb71ef00f4520c732611792 /sys/net/if_iso88025subr.c
parent800747333a8939d694a9eb3ff9415a29796c9dcf (diff)
downloadFreeBSD-src-963f4166f4487fc3d9e4868829a2cb7ebfa985bc.zip
FreeBSD-src-963f4166f4487fc3d9e4868829a2cb7ebfa985bc.tar.gz
arpcom untangling:
- use ifp instead if &ac->ac_if in a couple of nd6* calls; this removes a useless dependency. - use IFP2AC(ifp) instead of an extra variable to point to the struct arpcom; this does not remove the nesting dependency between arpcom and ifnet but makes it more evident.
Diffstat (limited to 'sys/net/if_iso88025subr.c')
-rw-r--r--sys/net/if_iso88025subr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/if_iso88025subr.c b/sys/net/if_iso88025subr.c
index 5f1b802..72b246f 100644
--- a/sys/net/if_iso88025subr.c
+++ b/sys/net/if_iso88025subr.c
@@ -246,7 +246,6 @@ iso88025_output(ifp, m, dst, rt0)
struct iso88025_header gen_th;
struct sockaddr_dl *sdl = NULL;
struct rtentry *rt;
- struct arpcom *ac = IFP2AC(ifp);
#ifdef MAC
error = mac_check_ifnet_transmit(ifp, m);
@@ -272,7 +271,7 @@ iso88025_output(ifp, m, dst, rt0)
/* Generate a generic 802.5 header for the packet */
gen_th.ac = TR_AC;
gen_th.fc = TR_LLC_FRAME;
- (void)memcpy((caddr_t)gen_th.iso88025_shost, (caddr_t)ac->ac_enaddr,
+ (void)memcpy((caddr_t)gen_th.iso88025_shost, IFP2AC(ifp)->ac_enaddr,
ISO88025_ADDR_LEN);
if (rif_len) {
gen_th.iso88025_shost[0] |= TR_RII;
@@ -321,7 +320,7 @@ iso88025_output(ifp, m, dst, rt0)
#endif /* INET */
#ifdef INET6
case AF_INET6:
- if (!nd6_storelladdr(&ac->ac_if, rt, m, dst, (u_char *)edst)) {
+ if (!nd6_storelladdr(ifp, rt, m, dst, (u_char *)edst)) {
/* Something bad happened */
return(0);
}
OpenPOWER on IntegriCloud