Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37870670
en ru br
ALT Linux repos
S:4.99.4-alt1
5.0: 3.9.8-alt1
4.1: 3.9.7-alt1
4.0: 3.9.7-alt1
+updates:3.9.7-alt1
3.0: 3.8.2-alt3

Group :: Monitoring
RPM: tcpdump

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: tcpdump-3.7.1-rh-alt-portnumbers.patch
Download


diff -ur tcpdump-3.7.1~/addrtoname.c tcpdump-3.7.1/addrtoname.c
--- tcpdump-3.7.1~/addrtoname.c	Tue Sep 18 01:57:50 2001
+++ tcpdump-3.7.1/addrtoname.c	Tue Apr  9 19:11:57 2002
@@ -656,7 +656,7 @@
 
 		while (table->name)
 			table = table->nxt;
-		if (nflag) {
+		if (nflag > 1) {
 			(void)snprintf(buf, sizeof(buf), "%d", port);
 			table->name = strdup(buf);
 		} else
@@ -845,7 +845,7 @@
 		f_localnet = localnet;
 		f_netmask = mask;
 	}
-	if (nflag)
+	if (nflag > 1)
 		/*
 		 * Simplest way to suppress names.
 		 */
diff -ur tcpdump-3.7.1~/tcpdump.1 tcpdump-3.7.1/tcpdump.1
--- tcpdump-3.7.1~/tcpdump.1	Fri Jan  4 10:37:49 2002
+++ tcpdump-3.7.1/tcpdump.1	Tue Apr  9 19:11:57 2002
@@ -272,7 +272,11 @@
 can be used several times to load several MIB modules into \fItcpdump\fP.
 .TP
 .B \-n
-Don't convert addresses (i.e., host addresses, port numbers, etc.) to names.
+Don't convert host addresses to names.  This can be used to avoid 
+DNS lookups.
+.TP
+.B \-nn
+Don't convert protocol and port numbers etc. to names either.  
 .TP
 .B \-N
 Don't print domain name qualification of host names.
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin