diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2004-10-12 10:33:42 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2004-10-12 10:33:42 +0000 |
| commit | a176c2aeafbb65a03497c0034da633563c287f06 (patch) | |
| tree | a5ded4c665031b36a0b508afb62b7435a0f6c875 /sys/netgraph/ng_ether.c | |
| parent | 71e7578499fc1826ebd4fcf0d10b5de023078b05 (diff) | |
Notes
Diffstat (limited to 'sys/netgraph/ng_ether.c')
| -rw-r--r-- | sys/netgraph/ng_ether.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c index 46d64c44eb548..1682fc10fab1b 100644 --- a/sys/netgraph/ng_ether.c +++ b/sys/netgraph/ng_ether.c @@ -53,6 +53,7 @@ #include <sys/syslog.h> #include <sys/socket.h> +#include <net/bridge.h> #include <net/if.h> #include <net/if_types.h> #include <net/if_arp.h> @@ -552,6 +553,10 @@ ng_ether_rcv_upper(node_p node, struct mbuf *m) m->m_pkthdr.rcvif = priv->ifp; + if (BDG_ACTIVE(priv->ifp) ) + if ((m = bridge_in_ptr(priv->ifp, m)) == NULL) + return (0); + /* Route packet back in */ ether_demux(priv->ifp, m); return (0); |
