IEEE 802.15.4: Fix printing the pending extended address list

Fix an index.
Fix a probably copy & paste error.
This commit is contained in:
Francois-Xavier Le Bail 2020-06-17 14:19:33 +02:00
parent 8be0a90ea5
commit c99b9b89c7

View File

@ -655,11 +655,11 @@ ieee802_15_4_print_pending_addresses(netdissect_options *ndo,
}
ND_PRINT("]");
}
if (s_cnt != 0) {
if (e_cnt != 0) {
ND_PRINT(", Extended address list = [ ");
for(i = 0; i < e_cnt; i++) {
ieee802_15_4_print_addr(ndo, p + 1 + s_cnt * 2 +
e_cnt * 8, 8);
i * 8, 8);
ND_PRINT(" ");
}
ND_PRINT("]");