diff options
author | Patrick McHardy <kaber@trash.net> | 2006-01-31 17:35:35 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-01-31 17:35:35 -0800 |
commit | 5d39a795bfa217b5f7637028c83ab5cb291f37bf (patch) | |
tree | 025bee4ea9c90b5fac7a7c939664a89120303170 /net/ipv4 | |
parent | 7fb76aa07facce5cb9c8d26a0de09001a31eed0c (diff) | |
download | linux-3.10-5d39a795bfa217b5f7637028c83ab5cb291f37bf.tar.gz linux-3.10-5d39a795bfa217b5f7637028c83ab5cb291f37bf.tar.bz2 linux-3.10-5d39a795bfa217b5f7637028c83ab5cb291f37bf.zip |
[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>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 6ea353907af..1ac35a65b2e 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -236,7 +236,7 @@ int tcp_v4_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) if (err) goto failure; - err = ip_route_newports(&rt, inet->sport, inet->dport, sk); + err = ip_route_newports(&rt, IPPROTO_TCP, inet->sport, inet->dport, sk); if (err) goto failure; |