add anycast type address check in packetfunctions_isBroadcastMulticast.
@@ -82,6 +82,12 @@ void packetfunctions_mac16bToMac64b(open_addr_t* mac16b, open_addr_t* mac64btoWr
bool packetfunctions_isBroadcastMulticast(open_addr_t* address) {
uint8_t i;
uint8_t address_length;
+
+ // anycast type
+ if (address->type==ADDR_ANYCAST) {
+ return TRUE;
+ }
+
//IPv6 multicast
if (address->type==ADDR_128B) {
if (address->addr_128b[0]==0xff) {
@@ -90,6 +96,7 @@ bool packetfunctions_isBroadcastMulticast(open_addr_t* address) {
return FALSE;
}
}
+
//15.4 broadcast
switch (address->type) {
case ADDR_16B:
