summaryrefslogtreecommitdiffstats
path: root/sys/net/if_iso88025subr.c
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2003-03-03 05:04:57 +0000
committermdodd <mdodd@FreeBSD.org>2003-03-03 05:04:57 +0000
commit587970fdc3a5e96f3ae648daf6d10fddfd60310d (patch)
tree1a7da9ce88a0fd72ae2f765e952b5dcf1e2b93f7 /sys/net/if_iso88025subr.c
parent2d1c8006af34da5cb4a92951bf42e868823f6e04 (diff)
downloadFreeBSD-src-587970fdc3a5e96f3ae648daf6d10fddfd60310d.zip
FreeBSD-src-587970fdc3a5e96f3ae648daf6d10fddfd60310d.tar.gz
sizeof(struct llc) -> LLC_SNAPFRAMELEN
sizeof(struct ether_header) -> ETHER_HDR_LEN sizeof(struct fddi_header) -> FDDI_HDR_LEN
Diffstat (limited to 'sys/net/if_iso88025subr.c')
-rw-r--r--sys/net/if_iso88025subr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_iso88025subr.c b/sys/net/if_iso88025subr.c
index 4e3d581..91fa8c6 100644
--- a/sys/net/if_iso88025subr.c
+++ b/sys/net/if_iso88025subr.c
@@ -321,7 +321,7 @@ iso88025_output(ifp, m, dst, rt0)
if (snap_type != 0) {
struct llc *l;
- M_PREPEND(m, sizeof (struct llc), M_DONTWAIT);
+ M_PREPEND(m, LLC_SNAPFRAMELEN, M_DONTWAIT);
if (m == 0)
senderr(ENOBUFS);
l = mtod(m, struct llc *);
@@ -372,7 +372,7 @@ iso88025_output(ifp, m, dst, rt0)
}
}
- if (! IF_HANDOFF_ADJ(&ifp->if_snd, m, ifp, ISO88025_HDR_LEN + (sizeof(struct llc))) ) {
+ if (! IF_HANDOFF_ADJ(&ifp->if_snd, m, ifp, ISO88025_HDR_LEN + LLC_SNAPFRAMELEN) ) {
printf("iso88025_output: packet dropped QFULL.\n");
senderr(ENOBUFS);
}
@@ -441,7 +441,7 @@ iso88025_input(ifp, th, m)
goto dropanyway;
type = ntohs(l->llc_un.type_snap.ether_type);
- m_adj(m, sizeof(struct llc));
+ m_adj(m, LLC_SNAPFRAMELEN);
switch (type) {
#ifdef INET
case ETHERTYPE_IP:
OpenPOWER on IntegriCloud