]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-zeromq.c
Add the ndo_protocol field in the netdissect_options structure
[tcpdump] / print-zeromq.c
index 05dc0c472f9f13e047dbc8f1ea6b87202c07bae4..eb41414a0be947cab265b03ac8b82ff34739e8cd 100644 (file)
@@ -145,6 +145,7 @@ zmtp1_print(netdissect_options *ndo, const u_char *cp, u_int len)
 {
        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);
@@ -214,6 +215,7 @@ zmtp1_datagram_print(netdissect_options *ndo, const u_char *cp, const u_int len)
 {
        const u_char *ep = min(ndo->ndo_snapend, cp + len);
 
+       ndo->ndo_protocol = "zmtp1_datagram";
        cp = zmtp1_print_intermediate_part(ndo, cp, len);
        while (cp < ep)
                cp = zmtp1_print_frame(ndo, cp, ep);