X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/38700c7f24646dfbc6ac0ed529d3ed727c545cd0..refs/pull/471/head:/print-802_15_4.c diff --git a/print-802_15_4.c b/print-802_15_4.c index b41e15ac..4a1ef49b 100644 --- a/print-802_15_4.c +++ b/print-802_15_4.c @@ -24,9 +24,9 @@ #include "config.h" #endif -#include +#include -#include "interface.h" +#include "netdissect.h" #include "addrtoname.h" #include "extract.h" @@ -111,7 +111,7 @@ ieee802_15_4_if_print(netdissect_options *ndo, if (ndo->ndo_vflag) ND_PRINT((ndo,"seq %02x ", seq)); if (hdrlen == -1) { - ND_PRINT((ndo,"malformed! ")); + ND_PRINT((ndo,"invalid! ")); return caplen; } @@ -138,7 +138,7 @@ ieee802_15_4_if_print(netdissect_options *ndo, case 0x03: panid = EXTRACT_LE_16BITS(p); p += 2; - ND_PRINT((ndo,"%04x:%s ", panid, le64addr_string(p))); + ND_PRINT((ndo,"%04x:%s ", panid, le64addr_string(ndo, p))); p += 8; break; } @@ -164,7 +164,7 @@ ieee802_15_4_if_print(netdissect_options *ndo, panid = EXTRACT_LE_16BITS(p); p += 2; } - ND_PRINT((ndo,"%04x:%s ", panid, le64addr_string(p))); + ND_PRINT((ndo,"%04x:%s ", panid, le64addr_string(ndo, p))); p += 8; break; }