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>
This commit is contained in:
parent
724c7df683
commit
8055173128
@ -934,13 +934,10 @@ traceroute_init(int op, char **argv)
|
|||||||
setsockopt_1(rcvsock, SOL_IPV6, IPV6_RECVPKTINFO);
|
setsockopt_1(rcvsock, SOL_IPV6, IPV6_RECVPKTINFO);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if TRACEROUTE_SO_DEBUG
|
#if TRACEROUTE_SO_DEBUG
|
||||||
if (op & OPT_DEBUG)
|
if (op & OPT_DEBUG)
|
||||||
setsockopt_SOL_SOCKET_1(rcvsock, SO_DEBUG);
|
setsockopt_SOL_SOCKET_1(rcvsock, SO_DEBUG);
|
||||||
#endif
|
#endif
|
||||||
if (op & OPT_BYPASS_ROUTE)
|
|
||||||
setsockopt_SOL_SOCKET_1(rcvsock, SO_DONTROUTE);
|
|
||||||
|
|
||||||
{
|
{
|
||||||
int snd;
|
int snd;
|
||||||
|
Loading…
Reference in New Issue
Block a user