aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2003-01-29 15:19:20 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2003-01-29 15:19:20 +0000
commit6b2449dc0167e9d8bb93d3dfe04c6dd429f9b62e (patch)
tree9402e68c01b024e5acdc2c06e096b4835c0d5b4f
parent84506e425ee852d9aee0293cd124756e37b3fb9d (diff)
downloadsrc-6b2449dc0167e9d8bb93d3dfe04c6dd429f9b62e.tar.gz
src-6b2449dc0167e9d8bb93d3dfe04c6dd429f9b62e.zip
The Xircom hardware always delivers received packets with the FCS appended.
Thus, mark the M_HASFCS flag so the generic ethernet layers will account for this.
Notes
Notes: svn path=/releng/5.0/; revision=110044
-rw-r--r--sys/dev/xe/if_xe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/xe/if_xe.c b/sys/dev/xe/if_xe.c
index bbbf0957d969..b4c759df9dfe 100644
--- a/sys/dev/xe/if_xe.c
+++ b/sys/dev/xe/if_xe.c
@@ -718,6 +718,8 @@ xe_intr(void *xscp)
/* Deliver packet to upper layers */
if (mbp != NULL) {
+ mbp->m_flags |= M_HASFCS; /* FCS is included in our
+ * packet */
mbp->m_pkthdr.len = mbp->m_len = len;
(*ifp->if_input)(ifp, mbp); /* Send the packet on its way */
ifp->if_ipackets++; /* Success! */