Skip to contentSkip to conversation

ipv4: Use passed-in protocol in ip_route_newports().

PATCH In review David Miller 2 participants 2 messages Mar 5, 2011

Subsystems (3)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/1 ipv4: Use passed-in protocol in ip_route_newports().

---
 include/net/route.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/net/route.h +1 -1
index 60daf74..8905d90 100644
@@ -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 };
 
Signature · 1 line
1.7.4.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · David Miller
---
 include/net/route.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/net/route.h +0 -0
index 60daf74..8905d90 100644

include/net/route.h static inline struct rtable *ip_route_newports(struct rtable *rt, · line 223

Quoted 8 lines
include/net/route.h +1 -1
@@ -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 };