diff options
Diffstat (limited to 'include/net/route.h')
-rw-r--r-- | include/net/route.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/net/route.h b/include/net/route.h index 2c9fba7f7731..af6cf4b4c9dc 100644 --- a/include/net/route.h +++ b/include/net/route.h | |||
@@ -112,7 +112,22 @@ extern void rt_cache_flush_batch(void); | |||
112 | extern int __ip_route_output_key(struct net *, struct rtable **, const struct flowi *flp); | 112 | extern int __ip_route_output_key(struct net *, struct rtable **, const struct flowi *flp); |
113 | extern int ip_route_output_key(struct net *, struct rtable **, struct flowi *flp); | 113 | extern int ip_route_output_key(struct net *, struct rtable **, struct flowi *flp); |
114 | extern int ip_route_output_flow(struct net *, struct rtable **rp, struct flowi *flp, struct sock *sk, int flags); | 114 | extern int ip_route_output_flow(struct net *, struct rtable **rp, struct flowi *flp, struct sock *sk, int flags); |
115 | extern int ip_route_input(struct sk_buff*, __be32 dst, __be32 src, u8 tos, struct net_device *devin); | 115 | |
116 | extern int ip_route_input_common(struct sk_buff *skb, __be32 dst, __be32 src, | ||
117 | u8 tos, struct net_device *devin, bool noref); | ||
118 | |||
119 | static inline int ip_route_input(struct sk_buff *skb, __be32 dst, __be32 src, | ||
120 | u8 tos, struct net_device *devin) | ||
121 | { | ||
122 | return ip_route_input_common(skb, dst, src, tos, devin, false); | ||
123 | } | ||
124 | |||
125 | static inline int ip_route_input_noref(struct sk_buff *skb, __be32 dst, __be32 src, | ||
126 | u8 tos, struct net_device *devin) | ||
127 | { | ||
128 | return ip_route_input_common(skb, dst, src, tos, devin, true); | ||
129 | } | ||
130 | |||
116 | extern unsigned short ip_rt_frag_needed(struct net *net, struct iphdr *iph, unsigned short new_mtu, struct net_device *dev); | 131 | extern unsigned short ip_rt_frag_needed(struct net *net, struct iphdr *iph, unsigned short new_mtu, struct net_device *dev); |
117 | extern void ip_rt_send_redirect(struct sk_buff *skb); | 132 | extern void ip_rt_send_redirect(struct sk_buff *skb); |
118 | 133 | ||