From: Michael Richardson Date: Sun, 8 Apr 2012 00:32:04 +0000 (-0400) Subject: do not convert protocol to names if -n flag X-Git-Tag: tcpdump-4.4.0~65 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/b46ecb0d23a726cd42354e1f62bbf4de0e8437d6 do not convert protocol to names if -n flag --- 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));