[git commit master] traceroute6: restore port after probing
Denys Vlasenko
vda.linux at googlemail.com
Tue Nov 24 13:10:06 UTC 2009
commit: http://git.busybox.net/busybox/commit/?id=f42fa1b21e2ef5275c3d044bb16c5b1c6d966b6f
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
networking/traceroute.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/networking/traceroute.c b/networking/traceroute.c
index 0555c9b..e9f3cc6 100644
--- 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);
--
1.6.3.3
More information about the busybox-cvs
mailing list