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

Function bridge_rtnode_addr_cmp

freebsd/net/if_bridge.c:2984–2994  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2982#undef mix
2983
2984static int
2985bridge_rtnode_addr_cmp(const uint8_t *a, const uint8_t *b)
2986{
2987 int i, d;
2988
2989 for (i = 0, d = 0; i < ETHER_ADDR_LEN && d == 0; i++) {
2990 d = ((int)a[i]) - ((int)b[i]);
2991 }
2992
2993 return (d);
2994}
2995
2996/*
2997 * bridge_rtnode_lookup:

Callers 2

bridge_rtnode_lookupFunction · 0.85
bridge_rtnode_insertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected