]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-icmp.c
Add the ndo_protocol field in the netdissect_options structure
[tcpdump] / print-icmp.c
index a5b94d63031309ffd4b05dbba8502b5a81b6fe6d..7ad886d276c1f0ee63755d3e7bbdbe7c84d87892 100644 (file)
@@ -347,6 +347,7 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen, const u_char *
        char buf[MAXHOSTNAMELEN + 100];
        struct cksum_vec vec[1];
 
+       ndo->ndo_protocol = "icmp";
        dp = (const struct icmp *)bp;
         ext_dp = (const struct icmp_ext_t *)bp;
        ip = (const struct ip *)bp2;