X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/6f1c171a6aac53ad3db8f6f8b74a98a6a76580a1..1bf91b1413a6d0eefb4c49bafdb612befa838556:/print-icmp.c diff --git a/print-icmp.c b/print-icmp.c index d5563db4..10772213 100644 --- a/print-icmp.c +++ b/print-icmp.c @@ -19,6 +19,8 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ +/* \summary: Internet Control Message Protocol (ICMP) printer */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -578,7 +580,6 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen, const u_char * bp += 8; ND_PRINT((ndo, "\n\t")); ip = (const struct ip *)bp; - ndo->ndo_snaplen = ndo->ndo_snapend - bp; snapend_save = ndo->ndo_snapend; ip_print(ndo, bp, EXTRACT_16BITS(&ip->ip_len)); ndo->ndo_snapend = snapend_save;