Browse code

Upgrade tcpdump

Change-Id: I6d90d348e80fa8652d87a02a8abefc22775a09c5
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3792
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>

DheerajSShetty authored on 2017/09/16 11:36:17
Showing 2 changed files
1 1
deleted file mode 100644
... ...
@@ -1,73 +0,0 @@
1
-diff -dupr a/print-pim.c b/print-pim.c
2
-+++ b/print-pim.c	2017-09-07 18:41:56.300698716 -0700
3
-@@ -306,6 +306,7 @@ pimv1_print(netdissect_options *ndo,
4
- 			pimv1_join_prune_print(ndo, &bp[8], len - 8);
5
- 		break;
6
- 	}
7
-+	ND_TCHECK(bp[4]);
8
- 	if ((bp[4] >> 4) != 1)
9
- 		ND_PRINT((ndo, " [v%d]", bp[4] >> 4));
10
- 	return;
11
-diff -dupr a/print-sl.c b/print-sl.c
12
-+++ b/print-sl.c	2017-09-07 19:09:07.290395738 -0700
13
-@@ -131,8 +131,21 @@ sliplink_print(netdissect_options *ndo,
14
- 	u_int hlen;
15
- 
16
- 	dir = p[SLX_DIR];
17
--	ND_PRINT((ndo, dir == SLIPDIR_IN ? "I " : "O "));
18
--
19
-+	switch (dir) {
20
-+ 
21
-+ 	case SLIPDIR_IN:
22
-+ 		ND_PRINT((ndo, "I "));
23
-+ 		break;
24
-+ 
25
-+ 	case SLIPDIR_OUT:
26
-+ 		ND_PRINT((ndo, "O "));
27
-+ 		break;
28
-+ 
29
-+ 	default:
30
-+ 		ND_PRINT((ndo, "Invalid direction %d ", dir));
31
-+ 		dir = -1;
32
-+ 		break;
33
-+ 	}
34
- 	if (ndo->ndo_nflag) {
35
- 		/* XXX just dump the header */
36
- 		register int i;
37
-@@ -155,13 +168,21 @@ sliplink_print(netdissect_options *ndo,
38
- 		 * has restored the IP header copy to IPPROTO_TCP.
39
- 		 */
40
- 		lastconn = ((const struct ip *)&p[SLX_CHDR])->ip_p;
41
-+		ND_PRINT((ndo, "utcp %d: ", lastconn));
42
-+ 		if (dir == -1) {
43
-+ 			/* Direction is bogus, don't use it */
44
-+ 			return;
45
-+ 		}
46
- 		hlen = IP_HL(ip);
47
- 		hlen += TH_OFF((const struct tcphdr *)&((const int *)ip)[hlen]);
48
- 		lastlen[dir][lastconn] = length - (hlen << 2);
49
--		ND_PRINT((ndo, "utcp %d: ", lastconn));
50
- 		break;
51
- 
52
- 	default:
53
-+		if (dir == -1) {
54
-+ 			/* Direction is bogus, don't use it */
55
-+ 			return;
56
-+ 		}
57
- 		if (p[SLX_CHDR] & TYPE_COMPRESSED_TCP) {
58
- 			compressed_sl_print(ndo, &p[SLX_CHDR], ip,
59
- 			    length, dir);
60
-diff -dupr a/util-print.c b/util-print.c
61
-+++ b/util-print.c	2017-09-07 18:46:44.086850015 -0700
62
-@@ -902,7 +902,7 @@ safeputs(netdissect_options *ndo,
63
- {
64
- 	u_int idx = 0;
65
- 
66
--	while (*s && idx < maxlen) {
67
-+	while (idx < maxlen && *s) {
68
- 		safeputchar(ndo, *s);
69
- 		idx++;
70
- 		s++;
... ...
@@ -1,24 +1,22 @@
1 1
 Summary:	Packet Analyzer
2 2
 Name:		tcpdump
3
-Version:	4.9.1
4
-Release:	2%{?dist}
3
+Version:	4.9.2
4
+Release:	1%{?dist}
5 5
 License:	BSD
6 6
 URL:		http://www.tcpdump.org
7 7
 Source0:	http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
8
-%define sha1 tcpdump=9cad93f6dd2cc52bc6ef90765d278b9fa090e027
8
+%define sha1 tcpdump=e2db246a9dd19278bac1a5ff875106c75e0a16d4
9 9
 Group:		Networking
10 10
 Vendor:		VMware, Inc.
11 11
 Distribution:	Photon
12 12
 BuildRequires: 	libpcap
13 13
 Requires:	libpcap
14
-Patch0:		CVE-2017-11541-CVE-2017-11542-CVE-2017-11543.patch
15 14
 %description
16 15
 Tcpdump is a common packet analyzer that runs under the command line. 
17 16
 It allows the user to display TCP/IP and other packets being 
18 17
 transmitted or received over a network to which the computer is attached.
19 18
 %prep
20
-%setup -q
21
-%patch0 -p1
19
+%setup -qn tcpdump-tcpdump-%{version}
22 20
 %build
23 21
 ./configure \
24 22
 	--prefix=%{_prefix}
... ...
@@ -34,6 +32,8 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
34 34
 %{_sbindir}/*
35 35
 %{_mandir}/man1/*
36 36
 %changelog
37
+*   Fri Sep 15 2017 Dheeraj Shetty <dheerajs@vmware.com> 4.9.2-1
38
+-   Updating version to 4.9.2
37 39
 *   Thu Sep 07 2017 Dheeraj Shetty <dheerajs@vmware.com> 4.9.1-2
38 40
 -   Fix for CVE-2017-11541 CVE-2017-11542 CVE-2017-11543
39 41
 *   Thu Aug 03 2017 Dheeraj Shetty <dheerajs@vmware.com> 4.9.1-1