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

Function bstp_same_bridgeid

freebsd/net/bridgestp.c:2006–2019  ·  view source on GitHub ↗

* compare the bridge address component of the bridgeid */

Source from the content-addressed store, hash-verified

2004 * compare the bridge address component of the bridgeid
2005 */
2006static int
2007bstp_same_bridgeid(uint64_t id1, uint64_t id2)
2008{
2009 u_char addr1[ETHER_ADDR_LEN];
2010 u_char addr2[ETHER_ADDR_LEN];
2011
2012 PV2ADDR(id1, addr1);
2013 PV2ADDR(id2, addr2);
2014
2015 if (bstp_addr_cmp(addr1, addr2) == 0)
2016 return (1);
2017
2018 return (0);
2019}
2020
2021void
2022bstp_reinit(struct bstp_state *bs)

Callers 2

bstp_info_superiorFunction · 0.85
bstp_assign_rolesFunction · 0.85

Calls 1

bstp_addr_cmpFunction · 0.85

Tested by

no test coverage detected