diff options
author | Michael Januszewski <spock@gentoo.org> | 2007-05-06 15:17:36 +0000 |
---|---|---|
committer | Michael Januszewski <spock@gentoo.org> | 2007-05-06 15:17:36 +0000 |
commit | 17ce047b1265cfe817425f2c5b397f3a2050037f (patch) | |
tree | 1c5f5a8b0f885e4553aed4d5a49359f6f3eecf89 /net-analyzer/nmap | |
parent | ppc stable, bug #164720 (diff) | |
download | gentoo-2-17ce047b1265cfe817425f2c5b397f3a2050037f.tar.gz gentoo-2-17ce047b1265cfe817425f2c5b397f3a2050037f.tar.bz2 gentoo-2-17ce047b1265cfe817425f2c5b397f3a2050037f.zip |
Fix a bug in the 1st gen OS detection code (bug #176187).
(Portage version: 2.1.2.6)
Diffstat (limited to 'net-analyzer/nmap')
-rw-r--r-- | net-analyzer/nmap/ChangeLog | 6 | ||||
-rw-r--r-- | net-analyzer/nmap/files/nmap-4.20-osscan.patch | 13 | ||||
-rw-r--r-- | net-analyzer/nmap/nmap-4.20.ebuild | 3 |
3 files changed, 20 insertions, 2 deletions
diff --git a/net-analyzer/nmap/ChangeLog b/net-analyzer/nmap/ChangeLog index d8feec532895..1b0eef2e7c44 100644 --- a/net-analyzer/nmap/ChangeLog +++ b/net-analyzer/nmap/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-analyzer/nmap # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/ChangeLog,v 1.138 2007/04/24 11:42:17 eroyf Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/ChangeLog,v 1.139 2007/05/06 15:17:36 spock Exp $ + + 06 May 2007; Michał Januszewski <spock@gentoo.org> + +files/nmap-4.20-osscan.patch, nmap-4.20.ebuild: + Fix a bug in the 1st gen OS detection code (bug #176187). 24 Apr 2007; Alexander Færøy <eroyf@gentoo.org> nmap-4.20.ebuild: Marked ~mips. diff --git a/net-analyzer/nmap/files/nmap-4.20-osscan.patch b/net-analyzer/nmap/files/nmap-4.20-osscan.patch new file mode 100644 index 000000000000..2e8c811ab051 --- /dev/null +++ b/net-analyzer/nmap/files/nmap-4.20-osscan.patch @@ -0,0 +1,13 @@ +diff -Naurp nmap-4.20-orig/osscan.cc nmap-4.20/osscan.cc +--- nmap-4.20-orig/osscan.cc 2007-05-06 17:02:42.000000000 +0200 ++++ nmap-4.20/osscan.cc 2007-05-06 17:03:03.000000000 +0200 +@@ -824,8 +824,7 @@ static FingerPrint *get_fingerprint(Targ + if (si->seqs[seq_response_num] == 0) { + /* New response found! */ + si->responses++; +- // si->seqs[seq_response_num] = ntohl(tcp->th_seq); /* TCP ISN */ +- si->seqs[seq_response_num] = fake_seqs[seq_response_num]; /* TCP ISN */ ++ si->seqs[seq_response_num] = ntohl(tcp->th_seq); /* TCP ISN */ + si->ipids[seq_response_num] = ntohs(ip->ip_id); + if ((gettcpopt_ts(tcp, ×tamp, NULL) == 0)) + si->ts_seqclass = TS_SEQ_UNSUPPORTED; diff --git a/net-analyzer/nmap/nmap-4.20.ebuild b/net-analyzer/nmap/nmap-4.20.ebuild index f196fde51733..86e610b8e9ba 100644 --- a/net-analyzer/nmap/nmap-4.20.ebuild +++ b/net-analyzer/nmap/nmap-4.20.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-4.20.ebuild,v 1.8 2007/04/24 11:42:17 eroyf Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-4.20.ebuild,v 1.9 2007/05/06 15:17:36 spock Exp $ inherit eutils flag-o-matic @@ -25,6 +25,7 @@ src_unpack() { echo ";" >> nmapfe.desktop epatch ${FILESDIR}/nmap-shtool-nls.patch epatch ${FILESDIR}/nmap-4.01-nostrip.patch + epatch ${FILESDIR}/${P}-osscan.patch } src_compile() { |