- rediff patches with fuzz
- add -fno-strict-aliasing to CFLAGS
This commit is contained in:
parent
a1bd7d3fe7
commit
7b2c7fd040
@ -1,37 +0,0 @@
|
|||||||
diff -uNr tcpdump-3.6.1.orig/addrtoname.c tcpdump-3.6.1/addrtoname.c
|
|
||||||
--- tcpdump-3.6.1.orig/addrtoname.c Sat Jan 13 20:01:00 2001
|
|
||||||
+++ tcpdump-3.6.1/addrtoname.c Sat Jan 13 19:59:23 2001
|
|
||||||
@@ -581,7 +581,7 @@
|
|
||||||
|
|
||||||
while (table->name)
|
|
||||||
table = table->nxt;
|
|
||||||
- if (nflag) {
|
|
||||||
+ if (nflag > 1) {
|
|
||||||
(void)snprintf(buf, sizeof(buf), "%d", port);
|
|
||||||
table->name = strdup(buf);
|
|
||||||
} else
|
|
||||||
@@ -745,7 +745,7 @@
|
|
||||||
f_localnet = localnet;
|
|
||||||
f_netmask = mask;
|
|
||||||
}
|
|
||||||
- if (nflag)
|
|
||||||
+ if (nflag > 1)
|
|
||||||
/*
|
|
||||||
* Simplest way to suppress names.
|
|
||||||
*/
|
|
||||||
diff -uNr tcpdump-3.6.1.orig/tcpdump.1 tcpdump-3.6.1/tcpdump.1
|
|
||||||
--- tcpdump-3.6.1.orig/tcpdump.1 Sat Jan 13 19:51:47 2001
|
|
||||||
+++ tcpdump-3.6.1/tcpdump.1 Sat Jan 13 19:50:19 2001
|
|
||||||
@@ -175,7 +175,11 @@
|
|
||||||
``tcpdump\ \ \-l \ \ > dat\ \ &\ \ tail\ \ \-f\ \ dat''.
|
|
||||||
.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. E.g.,
|
|
37
tcpdump-3.9.8-portnumbers.patch
Normal file
37
tcpdump-3.9.8-portnumbers.patch
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
diff -up tcpdump-3.9.8/addrtoname.c.portnumbers tcpdump-3.9.8/addrtoname.c
|
||||||
|
--- tcpdump-3.9.8/addrtoname.c.portnumbers 2007-09-26 03:59:52.000000000 +0200
|
||||||
|
+++ tcpdump-3.9.8/addrtoname.c 2008-08-29 13:53:12.000000000 +0200
|
||||||
|
@@ -704,7 +704,7 @@ init_servarray(void)
|
||||||
|
|
||||||
|
while (table->name)
|
||||||
|
table = table->nxt;
|
||||||
|
- if (nflag) {
|
||||||
|
+ if (nflag > 1) {
|
||||||
|
(void)snprintf(buf, sizeof(buf), "%d", port);
|
||||||
|
table->name = strdup(buf);
|
||||||
|
} else
|
||||||
|
@@ -1104,7 +1104,7 @@ init_addrtoname(u_int32_t localnet, u_in
|
||||||
|
f_localnet = localnet;
|
||||||
|
f_netmask = mask;
|
||||||
|
}
|
||||||
|
- if (nflag)
|
||||||
|
+ if (nflag > 1)
|
||||||
|
/*
|
||||||
|
* Simplest way to suppress names.
|
||||||
|
*/
|
||||||
|
diff -up tcpdump-3.9.8/tcpdump.1.portnumbers tcpdump-3.9.8/tcpdump.1
|
||||||
|
--- tcpdump-3.9.8/tcpdump.1.portnumbers 2008-08-29 13:53:12.000000000 +0200
|
||||||
|
+++ tcpdump-3.9.8/tcpdump.1 2008-08-29 13:53:12.000000000 +0200
|
||||||
|
@@ -403,7 +403,11 @@ Use \fIsecret\fP as a shared secret for
|
||||||
|
TCP segments with the TCP-MD5 option (RFC 2385), if present.
|
||||||
|
.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.
|
10
tcpdump.spec
10
tcpdump.spec
@ -2,7 +2,7 @@ Summary: A network traffic monitoring tool
|
|||||||
Name: tcpdump
|
Name: tcpdump
|
||||||
Epoch: 14
|
Epoch: 14
|
||||||
Version: 3.9.8
|
Version: 3.9.8
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
License: BSD with advertising
|
License: BSD with advertising
|
||||||
URL: http://www.tcpdump.org
|
URL: http://www.tcpdump.org
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
@ -14,7 +14,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|||||||
Source0: http://www.tcpdump.org/release/tcpdump-%{version}.tar.gz
|
Source0: http://www.tcpdump.org/release/tcpdump-%{version}.tar.gz
|
||||||
Source1: ftp://ftp.ee.lbl.gov/tcpslice-1.2a3.tar.gz
|
Source1: ftp://ftp.ee.lbl.gov/tcpslice-1.2a3.tar.gz
|
||||||
Patch1: tcpdump-3.9.7-droproot.patch
|
Patch1: tcpdump-3.9.7-droproot.patch
|
||||||
Patch2: tcpdump-3.6.1-portnumbers.patch
|
Patch2: tcpdump-3.9.8-portnumbers.patch
|
||||||
Patch3: tcpdump-3.9.7-crypto.patch
|
Patch3: tcpdump-3.9.7-crypto.patch
|
||||||
Patch4: tcpdump-3.9.8-ikev2.patch
|
Patch4: tcpdump-3.9.8-ikev2.patch
|
||||||
Patch5: tcpslice-1.2a3-time.patch
|
Patch5: tcpslice-1.2a3-time.patch
|
||||||
@ -50,7 +50,7 @@ popd
|
|||||||
find . -name '*.c' -o -name '*.h' | xargs chmod 644
|
find . -name '*.c' -o -name '*.h' | xargs chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS $(getconf LFS_CFLAGS)"
|
export CFLAGS="$RPM_OPT_FLAGS $(getconf LFS_CFLAGS) -fno-strict-aliasing"
|
||||||
|
|
||||||
pushd %{tcpslice_dir}
|
pushd %{tcpslice_dir}
|
||||||
# update config.{guess,sub}
|
# update config.{guess,sub}
|
||||||
@ -98,6 +98,10 @@ exit 0
|
|||||||
%{_mandir}/man8/tcpdump.8*
|
%{_mandir}/man8/tcpdump.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 29 2008 Miroslav Lichvar <mlichvar@redhat.com> - 14:3.9.8-6
|
||||||
|
- rediff patches with fuzz
|
||||||
|
- add -fno-strict-aliasing to CFLAGS
|
||||||
|
|
||||||
* Mon Jun 02 2008 Miroslav Lichvar <mlichvar@redhat.com> - 14:3.9.8-5
|
* Mon Jun 02 2008 Miroslav Lichvar <mlichvar@redhat.com> - 14:3.9.8-5
|
||||||
- update config.{guess,sub} when building tcpslice
|
- update config.{guess,sub} when building tcpslice
|
||||||
- remove -D_GNU_SOURCE from CFLAGS
|
- remove -D_GNU_SOURCE from CFLAGS
|
||||||
|
Loading…
Reference in New Issue
Block a user