]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-nsh.c
Update more link-layer dissectors to void functions
[tcpdump] / print-nsh.c
index d752b247589146afba070985c7c73aa4d29282be..70e962dfcae5821618bf7a925eeca81a48894d36 100644 (file)
@@ -170,7 +170,7 @@ nsh_print(netdissect_options *ndo, const u_char *bp, u_int len)
         ip6_print(ndo, bp, next_len);
         break;
     case 0x3:
-        ether_print(ndo, bp, next_len, ndo->ndo_snapend - bp, NULL, NULL);
+        ether_print(ndo, bp, next_len, ND_BYTES_AVAILABLE_AFTER(bp), NULL, NULL, FALSE);
         break;
     default:
         ND_PRINT("ERROR: unknown-next-protocol");