diff options
Diffstat (limited to 'networking')
-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 0555c9b47..e9f3cc6c9 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); |