aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_iso88025subr.c
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>2003-03-15 19:25:00 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>2003-03-15 19:25:00 +0000
commita93a1161532885b061a60e256ba9011fb3311e9c (patch)
tree805fa8842df7e0d849499a38fdcb2e7861344d02 /sys/net/if_iso88025subr.c
parentdbd05f2e56f6d4c1bd2cb6df50fac4fef039d99b (diff)
downloadsrc-a93a1161532885b061a60e256ba9011fb3311e9c.tar.gz
src-a93a1161532885b061a60e256ba9011fb3311e9c.zip
Use ISO88025_ADDR_LEN where appropriate.
Notes
Notes: svn path=/head/; revision=112278
Diffstat (limited to 'sys/net/if_iso88025subr.c')
-rw-r--r--sys/net/if_iso88025subr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/net/if_iso88025subr.c b/sys/net/if_iso88025subr.c
index d59a688fac89..8fd501ad8917 100644
--- a/sys/net/if_iso88025subr.c
+++ b/sys/net/if_iso88025subr.c
@@ -165,7 +165,7 @@ iso88025_ioctl(struct ifnet *ifp, int command, caddr_t data)
else {
bcopy((caddr_t) ina->x_host.c_host,
(caddr_t) ac->ac_enaddr,
- sizeof(ac->ac_enaddr));
+ ISO88025_ADDR_LEN);
}
/*
@@ -245,7 +245,7 @@ iso88025_output(ifp, m, dst, rt0)
gen_th.ac = TR_AC;
gen_th.fc = TR_LLC_FRAME;
(void)memcpy((caddr_t)gen_th.iso88025_shost, (caddr_t)ac->ac_enaddr,
- sizeof(ac->ac_enaddr));
+ ISO88025_ADDR_LEN);
if (rif_len) {
gen_th.iso88025_shost[0] |= TR_RII;
if (rif_len > 2) {
@@ -282,7 +282,7 @@ iso88025_output(ifp, m, dst, rt0)
snap_type = 0;
bcopy((caddr_t)&(satoipx_addr(dst).x_host), (caddr_t)edst,
- sizeof (edst));
+ ISO88025_ADDR_LEN);
M_PREPEND(m, 3, M_TRYWAIT);
if (m == 0)
@@ -313,9 +313,9 @@ iso88025_output(ifp, m, dst, rt0)
gen_th.ac = sd->ac;
gen_th.fc = sd->fc;
(void)memcpy((caddr_t)edst, (caddr_t)sd->ether_dhost,
- sizeof(sd->ether_dhost));
+ ISO88025_ADDR_LEN);
(void)memcpy((caddr_t)gen_th.iso88025_shost,
- (caddr_t)sd->ether_shost, sizeof(sd->ether_shost));
+ (caddr_t)sd->ether_shost, ISO88025_ADDR_LEN);
rif_len = 0;
break;
}
@@ -343,7 +343,7 @@ iso88025_output(ifp, m, dst, rt0)
}
(void)memcpy((caddr_t)&gen_th.iso88025_dhost, (caddr_t)edst,
- sizeof(edst));
+ ISO88025_ADDR_LEN);
/*
* Add local net header. If no space in first mbuf,