Thread (2 messages) flat view 2 messages, 2 authors, 2018-12-08

Re: [Patch v2 net-next] call sk_dst_reset when set SO_DONTROUTE

From: David Miller <davem@davemloft.net>
Date: 2018-12-08 00:12:52

From: yupeng <redacted>
Date: Wed,  5 Dec 2018 18:56:28 -0800
after set SO_DONTROUTE to 1, the IP layer should not route packets if
the dest IP address is not in link scope. But if the socket has cached
the dst_entry, such packets would be routed until the sk_dst_cache
expires. So we should clean the sk_dst_cache when a user set
SO_DONTROUTE option. Below are server/client python scripts which
could reprodue this issue:
 ...
Signed-off-by: yupeng <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help