Call bridge_span before dropping the lock.
MFC after: 5 days
This commit is contained in:
parent
2e4762bd3c
commit
92c17ec7e1
@ -1755,14 +1755,14 @@ bridge_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *sa,
|
|||||||
struct mbuf *mc;
|
struct mbuf *mc;
|
||||||
int error = 0, used = 0;
|
int error = 0, used = 0;
|
||||||
|
|
||||||
|
bridge_span(sc, m);
|
||||||
|
|
||||||
BRIDGE_LOCK2REF(sc, error);
|
BRIDGE_LOCK2REF(sc, error);
|
||||||
if (error) {
|
if (error) {
|
||||||
m_freem(m);
|
m_freem(m);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
bridge_span(sc, m);
|
|
||||||
|
|
||||||
LIST_FOREACH(bif, &sc->sc_iflist, bif_next) {
|
LIST_FOREACH(bif, &sc->sc_iflist, bif_next) {
|
||||||
dst_if = bif->bif_ifp;
|
dst_if = bif->bif_ifp;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user