]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ascii.c
Add the ndo_protocol field in the netdissect_options structure
[tcpdump] / print-ascii.c
index 0c347bf08825f33a2f60658bd205a1e82767fa1e..78bced6a77b7687e52548ed970863dc941d1d2dd 100644 (file)
@@ -62,6 +62,7 @@ ascii_print(netdissect_options *ndo,
        u_int caplength;
        u_char s;
 
+       ndo->ndo_protocol = "ascii";
        caplength = (ndo->ndo_snapend >= cp) ? ndo->ndo_snapend - cp : 0;
        if (length > caplength)
                length = caplength;