#include "netdissect.h"
#include "extract.h"
-static const char tstr[] = " [|zmtp1]";
/* Maximum number of ZMTP/1.0 frame body bytes (without the flags) to dump in
* hex and ASCII under a single "-v" flag.
return cp + body_len_declared;
trunc:
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
return ep;
}
{
const u_char *ep = min(ndo->ndo_snapend, cp + len);
+ ndo->ndo_protocol = "zmtp1";
ND_PRINT(": ZMTP/1.0");
while (cp < ep)
cp = zmtp1_print_frame(ndo, cp, ep);
return cp + frame_offset;
trunc:
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
return cp + len;
}
{
const u_char *ep = min(ndo->ndo_snapend, cp + len);
+ ndo->ndo_protocol = "zmtp1";
cp = zmtp1_print_intermediate_part(ndo, cp, len);
while (cp < ep)
cp = zmtp1_print_frame(ndo, cp, ep);