]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-nsh.c
Add the ndo_protocol field in the netdissect_options structure
[tcpdump] / print-nsh.c
index 5ece5b5e72fe5d08ae60ed3f461589c98ed57210..fc129200ca589ba433bc1deb0b52306b4647d894 100644 (file)
@@ -62,6 +62,7 @@ nsh_print(netdissect_options *ndo, const u_char *bp, u_int len)
     uint8_t tlv_len;
     u_int next_len;
 
+    ndo->ndo_protocol = "nsh";
     /* print Base Header and Service Path Header */
     if (len < NSH_BASE_HDR_LEN + NSH_SERVICE_PATH_HDR_LEN)
         goto trunc;