From: Francois-Xavier Le Bail Date: Wed, 17 Jun 2020 12:19:33 +0000 (+0200) Subject: IEEE 802.15.4: Fix printing the pending extended address list X-Git-Tag: tcpdump-4.99-bp~330 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/c99b9b89c745b6e397993b9e29d161ac385e5afc?ds=sidebyside IEEE 802.15.4: Fix printing the pending extended address list Fix an index. Fix a probably copy & paste error. --- diff --git a/print-802_15_4.c b/print-802_15_4.c index b226f55c..cb0d76e8 100644 --- a/print-802_15_4.c +++ b/print-802_15_4.c @@ -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("]");