diff options
| author | Andrew Gallatin <gallatin@FreeBSD.org> | 2007-06-11 18:26:25 +0000 |
|---|---|---|
| committer | Andrew Gallatin <gallatin@FreeBSD.org> | 2007-06-11 18:26:25 +0000 |
| commit | 56b8f0b02dd99bc2723903daecc35c83021e9055 (patch) | |
| tree | 97bad8fa6ce898903f752b2027269cc9c92fbab8 /sys/net/if_ethersubr.c | |
| parent | f2114f3bcd6d262d1d1ae3e98a5e63f0c149dae8 (diff) | |
Notes
Diffstat (limited to 'sys/net/if_ethersubr.c')
| -rw-r--r-- | sys/net/if_ethersubr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 41a24674c966..1fabaca614dc 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -542,8 +542,7 @@ ether_input(struct ifnet *ifp, struct mbuf *m) } eh = mtod(m, struct ether_header *); etype = ntohs(eh->ether_type); - if ((m->m_flags & M_LRO) == 0 && - m->m_pkthdr.len > + if (m->m_pkthdr.len > ETHER_MAX_FRAME(ifp, etype, m->m_flags & M_HASFCS)) { if_printf(ifp, "discard oversize frame " "(ether type %x flags %x len %u > max %lu)\n", |
