]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-icmp.c
Handle rpcaps:// URLs as well, for rpcap-over-TLS.
[tcpdump] / print-icmp.c
index 7ad886d276c1f0ee63755d3e7bbdbe7c84d87892..ebf4693cefbb1f98cfe0bb60fc314d35a6dfe43c 100644 (file)
@@ -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,11 +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);
 }
-/*
- * Local Variables:
- * c-style: whitesmith
- * c-basic-offset: 8
- * End:
- */