projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75b7397
)
traceroute6: restore port after probing
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 24 Nov 2009 13:10:06 +0000
(14:10 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 24 Nov 2009 13:10:06 +0000
(14:10 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/traceroute.c
patch
|
blob
|
history
diff --git
a/networking/traceroute.c
b/networking/traceroute.c
index 0555c9b476fac9de937c34ef40e0943b372d5c8e..e9f3cc6c95a9947fbb2d10344e56cd77afe445a7 100644
(file)
--- a/
networking/traceroute.c
+++ b/
networking/traceroute.c
@@
-1020,6
+1020,7
@@
common_traceroute_main(int op, char **argv)
set_nport(dest_lsa, htons(1025));
/* dummy connect. makes kernel pick source IP (and port) */
xconnect(probe_fd, &dest_lsa->u.sa, dest_lsa->len);
+ set_nport(dest_lsa, htons(port));
/* read IP and port */
source_lsa = get_sock_lsa(probe_fd);