diff options
Diffstat (limited to 'include/net/route.h')
-rw-r--r-- | include/net/route.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/net/route.h b/include/net/route.h index 1b09a9368c68..d538e6db1afe 100644 --- a/include/net/route.h +++ b/include/net/route.h | |||
@@ -175,7 +175,9 @@ static inline struct rtable *ip_route_output_gre(struct net *net, struct flowi4 | |||
175 | fl4->fl4_gre_key = gre_key; | 175 | fl4->fl4_gre_key = gre_key; |
176 | return ip_route_output_key(net, fl4); | 176 | return ip_route_output_key(net, fl4); |
177 | } | 177 | } |
178 | 178 | int ip_mc_validate_source(struct sk_buff *skb, __be32 daddr, __be32 saddr, | |
179 | u8 tos, struct net_device *dev, | ||
180 | struct in_device *in_dev, u32 *itag); | ||
179 | int ip_route_input_noref(struct sk_buff *skb, __be32 dst, __be32 src, | 181 | int ip_route_input_noref(struct sk_buff *skb, __be32 dst, __be32 src, |
180 | u8 tos, struct net_device *devin); | 182 | u8 tos, struct net_device *devin); |
181 | int ip_route_input_rcu(struct sk_buff *skb, __be32 dst, __be32 src, | 183 | int ip_route_input_rcu(struct sk_buff *skb, __be32 dst, __be32 src, |
@@ -190,7 +192,7 @@ static inline int ip_route_input(struct sk_buff *skb, __be32 dst, __be32 src, | |||
190 | rcu_read_lock(); | 192 | rcu_read_lock(); |
191 | err = ip_route_input_noref(skb, dst, src, tos, devin); | 193 | err = ip_route_input_noref(skb, dst, src, tos, devin); |
192 | if (!err) { | 194 | if (!err) { |
193 | skb_dst_force_safe(skb); | 195 | skb_dst_force(skb); |
194 | if (!skb_dst(skb)) | 196 | if (!skb_dst(skb)) |
195 | err = -EINVAL; | 197 | err = -EINVAL; |
196 | } | 198 | } |