summaryrefslogtreecommitdiff
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2001-02-10 00:10:18 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2001-02-10 00:10:18 +0000
commit7e1cd0d23d0331e11650f89caadd8d1815aa53b2 (patch)
tree540c704f3e1c9da640791ff4c4217b360f027c93 /sys/net/if_ethersubr.c
parent7a504379b74488cf6d1614f1af703823a58a0aea (diff)
Notes
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 3aceb45acd39..94e0541bbc22 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -364,15 +364,10 @@ ether_output_frame(ifp, m)
#ifdef BRIDGE
if (do_bridge && BDG_USED(ifp) ) {
struct ether_header *eh; /* a ptr suffices */
- struct ifnet *oifp = ifp ;
m->m_pkthdr.rcvif = NULL;
eh = mtod(m, struct ether_header *);
m_adj(m, ETHER_HDR_LEN);
- ifp = bridge_dst_lookup(eh);
- if (ifp > BDG_FORWARD && !BDG_SAMECLUSTER(ifp, oifp)) {
- printf("ether_out_frame: bad output if\n");
- }
m = bdg_forward(m, eh, ifp);
if (m != NULL)
m_freem(m);
@@ -448,7 +443,7 @@ ether_input(ifp, eh, m)
struct mbuf *oldm = m ;
save_eh = *eh ; /* because it might change */
- m = bdg_forward(&m, eh, bif); /* needs forwarding */
+ m = bdg_forward(m, eh, bif); /* needs forwarding */
/*
* Do not continue if bdg_forward() processed our
* packet (and cleared the mbuf pointer m) or if