diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-13 14:18:05 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-13 14:18:05 +0100 |
commit | 80551731288a6abf9657e07e82d55a23bc5a970e (patch) | |
tree | 99baf241dd8b7820b22190ca7245da68396c6fb1 | |
parent | 724c7df683b8f3d0c487ce3d3cdcc1f6e762c181 (diff) | |
download | busybox-w32-80551731288a6abf9657e07e82d55a23bc5a970e.tar.gz busybox-w32-80551731288a6abf9657e07e82d55a23bc5a970e.tar.bz2 busybox-w32-80551731288a6abf9657e07e82d55a23bc5a970e.zip |
traceroute: don't set SO_DONTROUTE on recv socket, it only affects send
function old new delta
traceroute_init 1147 1131 -16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/traceroute.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c index 1e96a73cf..8e13238bf 100644 --- a/networking/traceroute.c +++ b/networking/traceroute.c | |||
@@ -934,13 +934,10 @@ traceroute_init(int op, char **argv) | |||
934 | setsockopt_1(rcvsock, SOL_IPV6, IPV6_RECVPKTINFO); | 934 | setsockopt_1(rcvsock, SOL_IPV6, IPV6_RECVPKTINFO); |
935 | } | 935 | } |
936 | #endif | 936 | #endif |
937 | |||
938 | #if TRACEROUTE_SO_DEBUG | 937 | #if TRACEROUTE_SO_DEBUG |
939 | if (op & OPT_DEBUG) | 938 | if (op & OPT_DEBUG) |
940 | setsockopt_SOL_SOCKET_1(rcvsock, SO_DEBUG); | 939 | setsockopt_SOL_SOCKET_1(rcvsock, SO_DEBUG); |
941 | #endif | 940 | #endif |
942 | if (op & OPT_BYPASS_ROUTE) | ||
943 | setsockopt_SOL_SOCKET_1(rcvsock, SO_DONTROUTE); | ||
944 | 941 | ||
945 | { | 942 | { |
946 | int snd; | 943 | int snd; |