There's no need to get the `bif' pointer again, we already got it from
the list :)
ok?
diff --git sys/net/if_bridge.c sys/net/if_bridge.c
index 22f67c39dca..838f6d32886 100644
--- sys/net/if_bridge.c
+++ sys/net/if_bridge.c
@@ -770,7 +770,6 @@ bridge_output(struct ifnet *ifp, struct mbuf *m, struct
sockaddr *sa,
* get there, send to all interfaces.
*/
if (dst_if == NULL) {
- struct bridge_iflist *bif, *bif0;
struct mbuf *mc;
int used = 0;
@@ -804,9 +803,7 @@ bridge_output(struct ifnet *ifp, struct mbuf *m, struct
sockaddr *sa,
}
}
- bif0 = (struct bridge_iflist *)dst_if->if_bridgeport;
- KASSERT(bif0 != NULL);
- if (bridge_filterrule(&bif0->bif_brlout, eh, mc) ==
+ if (bridge_filterrule(&bif->bif_brlout, eh, mc) ==
BRL_ACTION_BLOCK)
continue;