1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00

Use ISO88025_ADDR_LEN where appropriate.

This commit is contained in:
Matthew N. Dodd 2003-03-15 19:25:00 +00:00
parent dbd05f2e56
commit a93a116153
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112278

View File

@ -165,7 +165,7 @@ iso88025_ioctl(struct ifnet *ifp, int command, caddr_t data)
else { else {
bcopy((caddr_t) ina->x_host.c_host, bcopy((caddr_t) ina->x_host.c_host,
(caddr_t) ac->ac_enaddr, (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.ac = TR_AC;
gen_th.fc = TR_LLC_FRAME; 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, (caddr_t)ac->ac_enaddr,
sizeof(ac->ac_enaddr)); ISO88025_ADDR_LEN);
if (rif_len) { if (rif_len) {
gen_th.iso88025_shost[0] |= TR_RII; gen_th.iso88025_shost[0] |= TR_RII;
if (rif_len > 2) { if (rif_len > 2) {
@ -282,7 +282,7 @@ iso88025_output(ifp, m, dst, rt0)
snap_type = 0; snap_type = 0;
bcopy((caddr_t)&(satoipx_addr(dst).x_host), (caddr_t)edst, bcopy((caddr_t)&(satoipx_addr(dst).x_host), (caddr_t)edst,
sizeof (edst)); ISO88025_ADDR_LEN);
M_PREPEND(m, 3, M_TRYWAIT); M_PREPEND(m, 3, M_TRYWAIT);
if (m == 0) if (m == 0)
@ -313,9 +313,9 @@ iso88025_output(ifp, m, dst, rt0)
gen_th.ac = sd->ac; gen_th.ac = sd->ac;
gen_th.fc = sd->fc; gen_th.fc = sd->fc;
(void)memcpy((caddr_t)edst, (caddr_t)sd->ether_dhost, (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, (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; rif_len = 0;
break; break;
} }
@ -343,7 +343,7 @@ iso88025_output(ifp, m, dst, rt0)
} }
(void)memcpy((caddr_t)&gen_th.iso88025_dhost, (caddr_t)edst, (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, * Add local net header. If no space in first mbuf,