diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/route.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/route.h b/include/net/route.h index 5e0826d1c0e0..6de4333d6002 100644 --- a/include/net/route.h +++ b/include/net/route.h | |||
@@ -120,7 +120,7 @@ extern void rt_cache_flush(struct net *net, int how); | |||
120 | extern void rt_cache_flush_batch(struct net *net); | 120 | extern void rt_cache_flush_batch(struct net *net); |
121 | extern int __ip_route_output_key(struct net *, struct rtable **, const struct flowi *flp); | 121 | extern int __ip_route_output_key(struct net *, struct rtable **, const struct flowi *flp); |
122 | extern int ip_route_output_key(struct net *, struct rtable **, struct flowi *flp); | 122 | extern int ip_route_output_key(struct net *, struct rtable **, struct flowi *flp); |
123 | extern int ip_route_output_flow(struct net *, struct rtable **rp, struct flowi *flp, struct sock *sk, int flags); | 123 | extern int ip_route_output_flow(struct net *, struct rtable **rp, struct flowi *flp, struct sock *sk, bool can_sleep); |
124 | 124 | ||
125 | extern int ip_route_input_common(struct sk_buff *skb, __be32 dst, __be32 src, | 125 | extern int ip_route_input_common(struct sk_buff *skb, __be32 dst, __be32 src, |
126 | u8 tos, struct net_device *devin, bool noref); | 126 | u8 tos, struct net_device *devin, bool noref); |
@@ -196,7 +196,7 @@ static inline int ip_route_connect(struct rtable **rp, __be32 dst, | |||
196 | *rp = NULL; | 196 | *rp = NULL; |
197 | } | 197 | } |
198 | security_sk_classify_flow(sk, &fl); | 198 | security_sk_classify_flow(sk, &fl); |
199 | return ip_route_output_flow(net, rp, &fl, sk, can_sleep ? 1 : 0); | 199 | return ip_route_output_flow(net, rp, &fl, sk, can_sleep); |
200 | } | 200 | } |
201 | 201 | ||
202 | static inline int ip_route_newports(struct rtable **rp, u8 protocol, | 202 | static inline int ip_route_newports(struct rtable **rp, u8 protocol, |
@@ -220,7 +220,7 @@ static inline int ip_route_newports(struct rtable **rp, u8 protocol, | |||
220 | ip_rt_put(*rp); | 220 | ip_rt_put(*rp); |
221 | *rp = NULL; | 221 | *rp = NULL; |
222 | security_sk_classify_flow(sk, &fl); | 222 | security_sk_classify_flow(sk, &fl); |
223 | return ip_route_output_flow(sock_net(sk), rp, &fl, sk, 0); | 223 | return ip_route_output_flow(sock_net(sk), rp, &fl, sk, false); |
224 | } | 224 | } |
225 | return 0; | 225 | return 0; |
226 | } | 226 | } |