aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-11-24 14:10:06 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-11-24 14:10:06 +0100
commitf42fa1b21e2ef5275c3d044bb16c5b1c6d966b6f (patch)
tree72e81dfdb4f422318bebc9fef0c4376e11df08a6
parent75b739767576048ac7bc89c185ee3ee1c27b895a (diff)
downloadbusybox-w32-f42fa1b21e2ef5275c3d044bb16c5b1c6d966b6f.tar.gz
busybox-w32-f42fa1b21e2ef5275c3d044bb16c5b1c6d966b6f.tar.bz2
busybox-w32-f42fa1b21e2ef5275c3d044bb16c5b1c6d966b6f.zip
traceroute6: restore port after probing
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/traceroute.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c
index 0555c9b47..e9f3cc6c9 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -1020,6 +1020,7 @@ common_traceroute_main(int op, char **argv)
1020 set_nport(dest_lsa, htons(1025)); 1020 set_nport(dest_lsa, htons(1025));
1021 /* dummy connect. makes kernel pick source IP (and port) */ 1021 /* dummy connect. makes kernel pick source IP (and port) */
1022 xconnect(probe_fd, &dest_lsa->u.sa, dest_lsa->len); 1022 xconnect(probe_fd, &dest_lsa->u.sa, dest_lsa->len);
1023 set_nport(dest_lsa, htons(port));
1023 1024
1024 /* read IP and port */ 1025 /* read IP and port */
1025 source_lsa = get_sock_lsa(probe_fd); 1026 source_lsa = get_sock_lsa(probe_fd);