summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-05 06:31:48 +0100
committerDavid S. Miller <davem@davemloft.net>2011-03-05 06:31:48 +0100
commit4157434c23f8f5126a2ffd3cc7b2c3bd928be075 (patch)
tree6bc9f8533518901a9017935a3fb01152ea6edf38 /include
parentipv4: Get peer more cheaply in rt_init_metrics(). (diff)
downloadlinux-4157434c23f8f5126a2ffd3cc7b2c3bd928be075.tar.xz
linux-4157434c23f8f5126a2ffd3cc7b2c3bd928be075.zip
ipv4: Use passed-in protocol in ip_route_newports().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/route.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/route.h b/include/net/route.h
index 60daf745216a..8905d90e0044 100644
--- a/include/net/route.h
+++ b/include/net/route.h
@@ -217,7 +217,7 @@ static inline struct rtable *ip_route_newports(struct rtable *rt,
.fl4_dst = rt->fl.fl4_dst,
.fl4_src = rt->fl.fl4_src,
.fl4_tos = rt->fl.fl4_tos,
- .proto = rt->fl.proto,
+ .proto = protocol,
.fl_ip_sport = sport,
.fl_ip_dport = dport };