Indicate why we ahve to check the address type.

Change-Id: I223eba466680e7ef6003e3412084eb1009d8d38d
Reviewed-on: https://code.wireshark.org/review/28369
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2018-06-21 11:27:38 -07:00
parent f61723d885
commit 9c2bb3d005
1 changed files with 2 additions and 1 deletions

View File

@ -359,7 +359,8 @@ static const value_string interface_role_str[] = {
#define is_a_broadcast_addr(a) ((a) == 0xffffffffU)
/*
* XXX - will the destination address ever not be an IPv4 address?
* We check the address type in case some bogus IPv6 packet specifies ICMP
* rather than ICMP6 in the next header field.
*/
#define ADDR_IS_MULTICAST(addr) \
(((addr)->type == AT_IPv4) && is_a_multicast_addr(pntoh32((addr)->data)))