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

Function bstp_addr_cmp

freebsd/net/bridgestp.c:1991–2001  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1989}
1990
1991static int
1992bstp_addr_cmp(const uint8_t *a, const uint8_t *b)
1993{
1994 int i, d;
1995
1996 for (i = 0, d = 0; i < ETHER_ADDR_LEN && d == 0; i++) {
1997 d = ((int)a[i]) - ((int)b[i]);
1998 }
1999
2000 return (d);
2001}
2002
2003/*
2004 * compare the bridge address component of the bridgeid

Callers 2

bstp_same_bridgeidFunction · 0.85
bstp_reinitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected