Subject: Re: [RFC PATCH] 2.6.22.6 netfilter: sk_setup_caps in ip_make_route_harder

From: Patrick McHardy <[email-masked]>
Date: Wed, 19 Sep 2007 17:17:17 +0200

Patrick McHardy wrote:
> lepton wrote:
> 
>>Hi,
>>  For local src packets, it is better to update sk_route_caps in
>>  ip_route_me_harder.
> 
> 
> 
> This seems like a good idea to me. But why only for local src
> (address) packets? This function can also be used for locally
> generated packet that have been (f.i.) NATed to a foreign
> address ...

Actually, I'm afraid it might break some setups. Rerouting is
done per packet, but if we cache the dst_entry for the socket,
all packets from that socket will be routed similar.