diff --git a/print-802_15_4.c b/print-802_15_4.c index a43d0333..a7817eb5 100644 --- a/print-802_15_4.c +++ b/print-802_15_4.c @@ -141,7 +141,7 @@ ieee802_15_4_if_print(netdissect_options *ndo, return hdrlen; } if (ndo->ndo_vflag) - ND_PRINT((ndo,"%04x:%s ", panid, le64addr_string(ndo, p + 2))); + ND_PRINT((ndo,"%04x:%s ", panid, le64addr_string(ndo, p))); p += 8; caplen -= 8; hdrlen += 8; diff --git a/tests/802_15_4-data.out b/tests/802_15_4-data.out new file mode 100644 index 00000000..0e646751 --- /dev/null +++ b/tests/802_15_4-data.out @@ -0,0 +1 @@ +IEEE 802.15.4 Data packet seq 01 ab4d:10:05:00:81:00:01:00:01 < [|802.15.4] diff --git a/tests/802_15_4-data.pcap b/tests/802_15_4-data.pcap new file mode 100644 index 00000000..4a32784e Binary files /dev/null and b/tests/802_15_4-data.pcap differ diff --git a/tests/TESTLIST b/tests/TESTLIST index 491af396..be914a4a 100644 --- a/tests/TESTLIST +++ b/tests/TESTLIST @@ -488,6 +488,7 @@ pimv2-oobr-3 pimv2-oobr-3.pcap pimv2-oobr-3.out -vvv -e pimv2-oobr-4 pimv2-oobr-4.pcap pimv2-oobr-4.out -vvv -e 802_15_4-oobr-1 802_15_4-oobr-1.pcap 802_15_4-oobr-1.out -vvv -e 802_15_4-oobr-2 802_15_4-oobr-2.pcap 802_15_4-oobr-2.out -vvv -e +802_15_4-data 802_15_4-data.pcap 802_15_4-data.out -vvv -e # RTP tests # fuzzed pcap