Added address compare API for BIP6.

This commit is contained in:
skarg
2018-06-10 02:21:44 +00:00
parent 51e672dd9a
commit c7ed0b24c0
+14
View File
@@ -299,6 +299,20 @@ bool bip6_get_addr(
return bvlc6_address_copy(addr, &BIP6_Addr);
}
/**
* Determine if the BACnet/IPv6 address matches our own address
*
* @param addr - network IPv6 address
*
* @return true if the BACnet/IPv6 address matches our own address
*/
bool bip6_address_match_self(
BACNET_IP6_ADDRESS *addr)
{
return !bvlc6_address_different(addr, &BIP6_Addr);
}
/**
* Set the BACnet/IP address
*