aboutsummaryrefslogtreecommitdiff
path: root/include/net/route.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-04 21:31:48 -0800
committerDavid S. Miller <davem@davemloft.net>2011-03-04 21:31:48 -0800
commit4157434c23f8f5126a2ffd3cc7b2c3bd928be075 (patch)
tree6bc9f8533518901a9017935a3fb01152ea6edf38 /include/net/route.h
parent3c0afdca44af795dd315c20cc525927a459abe30 (diff)
ipv4: Use passed-in protocol in ip_route_newports().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/route.h')
-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 60daf745216..8905d90e004 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 };