Может ли кто-нибудь объяснить разницу между SO_DEBUG и SO_DONTROUTE. Это мое пониманиеSO_DEBUG и SO_DONTROUTE в traceroute
SO_DONTROUTE
Enable/disable routing bypass for outgoing message
Routing takes place only when it goes to out of subnet.
This tell that do not route, directly connect to the destination instead of routing
SO_DONTROUTE refers to the local routing
But default it is zero
Do not route send directly to the connected network
If the host is not on a directly-attached network
an error is returned. This option can be used to ping
a local host through an interface that has no route.
SO_DEBUG
When enabled, the kernel keeps track of detailed
information about the packets sent and received by TCP for the socket
Но в трассировку, если я дать опцию -d в командной строке, опция SO_DONTROUTE также включена. Также, когда я включаю -d вариант -d также разрешает. Могу я узнать почему ?
Какую версию traceroute вы используете? – Malt
Первая версия traceroute, написанная van jacobson – pretty
Как вы определили, что '-d' включен' SO_DONTROUTE'? – Malt