X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/56e6581c34ceec5469b9f37c19b31a36b0256f3c..8030a66cdcbf81c88cbb7c38ef7a334e9f1941cd:/print-icmp.c diff --git a/print-icmp.c b/print-icmp.c index 8af1e288..ebf4693c 100644 --- a/print-icmp.c +++ b/print-icmp.c @@ -592,6 +592,9 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen, const u_char * ndo->ndo_snapend = snapend_save; } + /* ndo_protocol reassignment after ip_print() call */ + ndo->ndo_protocol = "icmp"; + /* * Attempt to decode the MPLS extensions only for some ICMP types. */ @@ -697,5 +700,5 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen, const u_char * return; trunc: - ND_PRINT("[|icmp]"); + nd_print_trunc(ndo); }