MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bridge_rtlookup

Function bridge_rtlookup

freebsd/net/if_bridge.c:2762–2773  ·  view source on GitHub ↗

* bridge_rtlookup: * * Lookup the destination interface for an address. */

Source from the content-addressed store, hash-verified

2760 * Lookup the destination interface for an address.
2761 */
2762static struct ifnet *
2763bridge_rtlookup(struct bridge_softc *sc, const uint8_t *addr, uint16_t vlan)
2764{
2765 struct bridge_rtnode *brt;
2766
2767 NET_EPOCH_ASSERT();
2768
2769 if ((brt = bridge_rtnode_lookup(sc, addr, vlan)) == NULL)
2770 return (NULL);
2771
2772 return (brt->brt_ifp);
2773}
2774
2775/*
2776 * bridge_rttrim:

Callers 3

bridge_outputFunction · 0.85
bridge_transmitFunction · 0.85
bridge_forwardFunction · 0.85

Calls 1

bridge_rtnode_lookupFunction · 0.85

Tested by

no test coverage detected