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

Function bridge_rtflush

freebsd/net/if_bridge.c:2855–2866  ·  view source on GitHub ↗

* bridge_rtflush: * * Remove all dynamic addresses from the bridge. */

Source from the content-addressed store, hash-verified

2853 * Remove all dynamic addresses from the bridge.
2854 */
2855static void
2856bridge_rtflush(struct bridge_softc *sc, int full)
2857{
2858 struct bridge_rtnode *brt, *nbrt;
2859
2860 BRIDGE_RT_LOCK_ASSERT(sc);
2861
2862 CK_LIST_FOREACH_SAFE(brt, &sc->sc_rtlist, brt_list, nbrt) {
2863 if (full || (brt->brt_flags & IFBAF_TYPEMASK) == IFBAF_DYNAMIC)
2864 bridge_rtnode_destroy(sc, brt);
2865 }
2866}
2867
2868/*
2869 * bridge_rtdaddr:

Callers 2

bridge_ioctl_flushFunction · 0.85
bridge_stopFunction · 0.85

Calls 1

bridge_rtnode_destroyFunction · 0.85

Tested by

no test coverage detected