diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-04-18 21:37:30 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2000-04-18 21:37:30 +0000 |
commit | c2e3569f4d81337ffc21b09739fe5d7d70d9fa03 (patch) | |
tree | d356c7b89495714792cd85a2237a76a8b34ec912 /sys/netinet | |
parent | 38327a288d112a77d1453b7ab510d9900a43cd9f (diff) |
Remove the ethernet header from the mbuf before passing it on to
bridge_input()
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_ether.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/ip_ether.c b/sys/netinet/ip_ether.c index 57c09f3a16b..97cc0ed77d6 100644 --- a/sys/netinet/ip_ether.c +++ b/sys/netinet/ip_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ether.c,v 1.8 2000/04/11 16:28:49 angelos Exp $ */ +/* $OpenBSD: ip_ether.c,v 1.9 2000/04/18 21:37:29 angelos Exp $ */ /* * The author of this code is Angelos D. Keromytis (kermit@adk.gr) @@ -168,9 +168,13 @@ va_dcl else m->m_flags |= M_BCAST; } + if (m->m_flags & (M_BCAST|M_MCAST)) m->m_pkthdr.rcvif->if_imcasts++; + /* Trim the beginning of the mbuf, to remove the ethernet header */ + m_adj(m, sizeof(struct ether_header)); + #if NBRIDGE > 0 /* * Tap the packet off here for a bridge, if configured and |