Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/traceroute/1.4_p12: 26_all_traceroute-1.4a12-let_kernel_find_address_chksum.patch
Date: Wed, 30 Jan 2008 18:10:20
Message-Id: E1JKHO3-0006xs-8z@stork.gentoo.org
1 pva 08/01/30 18:10:15
2
3 Added:
4 26_all_traceroute-1.4a12-let_kernel_find_address_chksum.patch
5 Log:
6 Patch to disable checksumming when there is no address specified, bug 158851. Thank Eldad Zack <eldad AT gentoo.org> for the fix.
7
8 Revision Changes Path
9 1.1 src/patchsets/traceroute/1.4_p12/26_all_traceroute-1.4a12-let_kernel_find_address_chksum.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/traceroute/1.4_p12/26_all_traceroute-1.4a12-let_kernel_find_address_chksum.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/traceroute/1.4_p12/26_all_traceroute-1.4a12-let_kernel_find_address_chksum.patch?rev=1.1&content-type=text/plain
13
14 Index: 26_all_traceroute-1.4a12-let_kernel_find_address_chksum.patch
15 ===================================================================
16 Courtesy of Eldad Zack <eldad@g.o>
17 This patch will disable checksumming when there is no address specified.
18 http://bugs.gentoo.org/show_bug.cgi?id=158851
19
20 --- traceroute.c.orig 2007-08-25 00:27:06.000000000 +0300
21 +++ traceroute.c 2007-08-25 00:30:17.000000000 +0300
22 @@ -577,6 +577,9 @@
23
24 if (!doipcksum)
25 Fprintf(stderr, "%s: Warning: ip checksums disabled\n", prog);
26 +
27 + if (source == NULL)
28 + doipcksum = (doipcksum == 0);
29
30 if (lsrr > 0)
31 optlen = (lsrr + 1) * sizeof(gwlist[0]);
32
33
34
35 --
36 gentoo-commits@l.g.o mailing list