summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEldad Zack <eldad@gentoo.org>2006-11-18 12:37:33 +0000
committerEldad Zack <eldad@gentoo.org>2006-11-18 12:37:33 +0000
commite48ba1f950ceef70f0c9376f40089e7439520cc4 (patch)
tree700b8254db036b4abf6985f6bd02484d598d3d9d /net-analyzer/traceroute/files
parentRecreated Manifest (diff)
downloadgentoo-2-e48ba1f950ceef70f0c9376f40089e7439520cc4.tar.gz
gentoo-2-e48ba1f950ceef70f0c9376f40089e7439520cc4.tar.bz2
gentoo-2-e48ba1f950ceef70f0c9376f40089e7439520cc4.zip
Added a patch to fix wrong outgoing IP address in traceroute when using an interface secondary addresses. Closes bug #131723.
(Portage version: 2.1.2_pre3-r6)
Diffstat (limited to 'net-analyzer/traceroute/files')
-rw-r--r--net-analyzer/traceroute/files/traceroute-1.4a12-let_kernel_find_address.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-analyzer/traceroute/files/traceroute-1.4a12-let_kernel_find_address.patch b/net-analyzer/traceroute/files/traceroute-1.4a12-let_kernel_find_address.patch
new file mode 100644
index 000000000000..ddbef0cc63c2
--- /dev/null
+++ b/net-analyzer/traceroute/files/traceroute-1.4a12-let_kernel_find_address.patch
@@ -0,0 +1,23 @@
+--- traceroute.c.orig 2006-10-14 02:10:32.000000000 +0200
++++ traceroute.c 2006-10-14 02:24:29.000000000 +0200
+@@ -788,19 +788,7 @@
+ }
+
+ /* Determine our source address */
+- if (source == NULL) {
+- /*
+- * If a device was specified, use the interface address.
+- * Otherwise, try to determine our source address.
+- */
+- if (device != NULL)
+- setsin(from, al->addr);
+- else if ((err = findsaddr(to, from)) != NULL) {
+- Fprintf(stderr, "%s: findsaddr: %s\n",
+- prog, err);
+- exit(1);
+- }
+- } else {
++ if (source != NULL) {
+ hi = gethostinfo(source);
+ source = hi->name;
+ hi->name = NULL;