diff options
author | David S. Miller <davem@davemloft.net> | 2011-03-05 05:31:48 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-05 05:31:48 (GMT) |
commit | 4157434c23f8f5126a2ffd3cc7b2c3bd928be075 (patch) | |
tree | 6bc9f8533518901a9017935a3fb01152ea6edf38 | |
parent | 3c0afdca44af795dd315c20cc525927a459abe30 (diff) | |
download | linux-4157434c23f8f5126a2ffd3cc7b2c3bd928be075.tar.xz |
ipv4: Use passed-in protocol in ip_route_newports().
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/route.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/route.h b/include/net/route.h index 60daf74..8905d90 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 }; |