summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2007-09-14 06:57:28 +0000
committerjulian <julian@FreeBSD.org>2007-09-14 06:57:28 +0000
commitb2cae38c27c38771749b7626ea99caeabd618e45 (patch)
tree06eba1fd9df4c6fc61dec204a75736e947247d9d
parenta85a6db808e20a3b75eca8c647965c50218a1aca (diff)
downloadFreeBSD-src-b2cae38c27c38771749b7626ea99caeabd618e45.zip
FreeBSD-src-b2cae38c27c38771749b7626ea99caeabd618e45.tar.gz
Remove DIAG code that discards oversized packets.
There has been general consensus that this was a bad idea/ Approved by: re (bmah)
-rw-r--r--sys/net/if_ethersubr.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 5b0bcd0..53e9b64 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -544,20 +544,6 @@ ether_input(struct ifnet *ifp, struct mbuf *m)
}
eh = mtod(m, struct ether_header *);
etype = ntohs(eh->ether_type);
-#ifdef DIAGNOSTIC
- if (m->m_pkthdr.len >
- ETHER_MAX_FRAME(ifp, etype, m->m_flags & M_HASFCS) &&
- (ifp->if_capenable & IFCAP_LRO) == 0) {
- if_printf(ifp, "discard oversize frame "
- "(ether type %x flags %x len %u > max %lu)\n",
- etype, m->m_flags, m->m_pkthdr.len,
- ETHER_MAX_FRAME(ifp, etype,
- m->m_flags & M_HASFCS));
- ifp->if_ierrors++;
- m_freem(m);
- return;
- }
-#endif
if (m->m_pkthdr.rcvif == NULL) {
if_printf(ifp, "discard frame w/o interface pointer\n");
ifp->if_ierrors++;
OpenPOWER on IntegriCloud