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

Function vxlan_ftable_addr_cmp

freebsd/net/if_vxlan.c:547–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545static const int vxlan_control_table_size = nitems(vxlan_control_table);
546
547static int
548vxlan_ftable_addr_cmp(const uint8_t *a, const uint8_t *b)
549{
550 int i, d;
551
552 for (i = 0, d = 0; i < ETHER_ADDR_LEN && d == 0; i++)
553 d = ((int)a[i]) - ((int)b[i]);
554
555 return (d);
556}
557
558static void
559vxlan_ftable_init(struct vxlan_softc *sc)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected