X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/f6d656854a364398ca35da490f9d6b82372e2ff9..24c920dfa2374a582cb5b0d2615a70a09a6e6dd4:/print-ip.c diff --git a/print-ip.c b/print-ip.c index 3b33fee3..494eb295 100644 --- a/print-ip.c +++ b/print-ip.c @@ -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));