Re: [PATCH v2 net-next] sock: Reset dst when changing sk_mark via setsockopt

2018-11-07 Thread Eric Dumazet
On 11/07/2018 08:55 PM, David Barmann wrote: > When setting the SO_MARK socket option, 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

[PATCH v2 net-next] sock: Reset dst when changing sk_mark via setsockopt

2018-11-07 Thread David Barmann
When setting the SO_MARK socket option, 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.