diff options
author | Denys Vlasenko | 2009-11-24 14:10:06 +0100 |
---|---|---|
committer | Denys Vlasenko | 2009-11-24 14:10:06 +0100 |
commit | f42fa1b21e2ef5275c3d044bb16c5b1c6d966b6f (patch) | |
tree | 72e81dfdb4f422318bebc9fef0c4376e11df08a6 /networking/traceroute.c | |
parent | 75b739767576048ac7bc89c185ee3ee1c27b895a (diff) | |
download | busybox-f42fa1b21e2ef5275c3d044bb16c5b1c6d966b6f.zip busybox-f42fa1b21e2ef5275c3d044bb16c5b1c6d966b6f.tar.gz |
traceroute6: restore port after probing
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/traceroute.c')
-rw-r--r-- | 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); |