Files
linux/net/core
David Barmann 4c5ce7ca90 sock: Reset dst when changing sk_mark via setsockopt
[ Upstream commit 50254256f3 ]

When setting the SO_MARK socket option, if the mark changes, the dst
needs to be reset so that a new route lookup is performed.

This fixes the case where an application wants to change routing by
setting a new sk_mark.  If this is done after some packets have already
been sent, the dst is cached and has no effect.

Signed-off-by: David Barmann <david.barmann@stackpath.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-28 18:26:08 +01:00
..
2015-04-02 14:04:59 -04:00
2015-10-08 04:27:03 -07:00
2018-02-25 11:03:34 +01:00
2015-08-29 13:05:16 -07:00
2015-10-26 22:24:22 -07:00
2015-10-08 05:26:35 -07:00