* compare the bridge address component of the bridgeid */
| 2004 | * compare the bridge address component of the bridgeid |
| 2005 | */ |
| 2006 | static int |
| 2007 | bstp_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 | |
| 2021 | void |
| 2022 | bstp_reinit(struct bstp_state *bs) |
no test coverage detected