]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Make sure flowi4->{saddr,daddr} are always set.
authorDavid S. Miller <davem@davemloft.net>
Mon, 2 May 2011 21:37:45 +0000 (14:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 May 2011 21:37:45 +0000 (14:37 -0700)
commitc6a449358f6bb710e7ec2ad1da6fccf24ae79345
treef9c8a74398964690e3b9583cec99dfc7e7b45511
parentdb45be9a569da130e4341f0039b5c0db2973d306
ipv4: Make sure flowi4->{saddr,daddr} are always set.

Slow path output route resolution always makes sure that
->{saddr,daddr} are set, and also if we trigger into IPSEC resolution
we initialize them as well, because xfrm_lookup() expects them to be
fully resolved.

But if we hit the fast path and flowi4->flowi4_proto is zero, we won't
do this initialization.

Therefore, move the IPSEC path initialization to the route cache
lookup fast path to make sure these are always set.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c