]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ip.c
Address Michael's comments.
[tcpdump] / print-ip.c
index 3b33fee325cac114a83148683623590f43edf307..494eb2958e656ebadb964f35305dab088a6c4e6b 100644 (file)
@@ -482,7 +482,7 @@ again:
                break;
 
        default:
-               if ((proto = getprotobynumber(ipds->nh)) != NULL)
+               if (ndo->ndo_nflag==0 && (proto = getprotobynumber(ipds->nh)) != NULL)
                        ND_PRINT((ndo, " %s", proto->p_name));
                else
                        ND_PRINT((ndo, " ip-proto-%d", ipds->nh));