Skip to content

Commit 5efa821

Browse files
committed
ICMP: Update a variable type
The length of ip_addr can be 4 octet (IPv4 address) if Address Family Identifier (AFI) is 1 or 16 octets (IPv6 address) if AFI is 2.
1 parent f0e29af commit 5efa821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

print-icmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ Interface IP Address Sub-Object
359359
struct icmp_interface_information_ipaddr_subobject_t {
360360
nd_uint16_t afi;
361361
nd_uint16_t reserved;
362-
nd_uint32_t ip_addr;
362+
nd_byte ip_addr[1];
363363
};
364364

365365
/*

0 commit comments

Comments
 (0)