]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ether.c
Have routines that set the snapend take a buffer pointer and length as args.
[tcpdump] / print-ether.c
index 5607bfc3ba5a00951c057bdaa73e4097e4e7e7de..1b273e16d0c5e41a6a72759dc8838fa5161631b7 100644 (file)
@@ -306,7 +306,7 @@ recurse:
                 * Cut off the snapshot length to the end of the
                 * payload.
                 */
-               nd_push_snapend(ndo, p + length);
+               nd_push_snaplen(ndo, p, length);
 
                if (ndo->ndo_eflag) {
                        ND_PRINT("802.3");