]> bbs.cooldavid.org Git - net-next-2.6.git/commit - include/net/route.h
[IPV4]: Always set fl.proto in ip_route_newports
authorPatrick McHardy <kaber@trash.net>
Wed, 1 Feb 2006 01:35:35 +0000 (17:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Feb 2006 01:35:35 +0000 (17:35 -0800)
commit5d39a795bfa217b5f7637028c83ab5cb291f37bf
tree025bee4ea9c90b5fac7a7c939664a89120303170
parent7fb76aa07facce5cb9c8d26a0de09001a31eed0c
[IPV4]: Always set fl.proto in ip_route_newports

ip_route_newports uses the struct flowi from the struct rtable returned
by ip_route_connect for the new route lookup and just replaces the port
numbers if they have changed. If an IPsec policy exists which doesn't match
port 0 the struct flowi won't have the proto field set and no xfrm lookup
is done for the changed ports.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/route.h
net/dccp/ipv4.c
net/ipv4/tcp_ipv4.c