diff options
-rw-r--r-- | include/net/route.h | 53 |
1 files changed, 28 insertions, 25 deletions
diff --git a/include/net/route.h b/include/net/route.h index afdeeb5bec25..6f572ca66d25 100644 --- a/include/net/route.h +++ b/include/net/route.h | |||
@@ -108,13 +108,15 @@ struct rt_cache_stat { | |||
108 | extern struct ip_rt_acct __percpu *ip_rt_acct; | 108 | extern struct ip_rt_acct __percpu *ip_rt_acct; |
109 | 109 | ||
110 | struct in_device; | 110 | struct in_device; |
111 | extern int ip_rt_init(void); | 111 | |
112 | extern void rt_cache_flush(struct net *net); | 112 | int ip_rt_init(void); |
113 | extern void rt_flush_dev(struct net_device *dev); | 113 | void rt_cache_flush(struct net *net); |
114 | extern struct rtable *__ip_route_output_key(struct net *, struct flowi4 *flp); | 114 | void rt_flush_dev(struct net_device *dev); |
115 | extern struct rtable *ip_route_output_flow(struct net *, struct flowi4 *flp, | 115 | struct rtable *__ip_route_output_key(struct net *, struct flowi4 *flp); |
116 | struct sock *sk); | 116 | struct rtable *ip_route_output_flow(struct net *, struct flowi4 *flp, |
117 | extern struct dst_entry *ipv4_blackhole_route(struct net *net, struct dst_entry *dst_orig); | 117 | struct sock *sk); |
118 | struct dst_entry *ipv4_blackhole_route(struct net *net, | ||
119 | struct dst_entry *dst_orig); | ||
118 | 120 | ||
119 | static inline struct rtable *ip_route_output_key(struct net *net, struct flowi4 *flp) | 121 | static inline struct rtable *ip_route_output_key(struct net *net, struct flowi4 *flp) |
120 | { | 122 | { |
@@ -162,8 +164,8 @@ static inline struct rtable *ip_route_output_gre(struct net *net, struct flowi4 | |||
162 | return ip_route_output_key(net, fl4); | 164 | return ip_route_output_key(net, fl4); |
163 | } | 165 | } |
164 | 166 | ||
165 | extern int ip_route_input_noref(struct sk_buff *skb, __be32 dst, __be32 src, | 167 | int ip_route_input_noref(struct sk_buff *skb, __be32 dst, __be32 src, |
166 | u8 tos, struct net_device *devin); | 168 | u8 tos, struct net_device *devin); |
167 | 169 | ||
168 | static inline int ip_route_input(struct sk_buff *skb, __be32 dst, __be32 src, | 170 | static inline int ip_route_input(struct sk_buff *skb, __be32 dst, __be32 src, |
169 | u8 tos, struct net_device *devin) | 171 | u8 tos, struct net_device *devin) |
@@ -179,24 +181,25 @@ static inline int ip_route_input(struct sk_buff *skb, __be32 dst, __be32 src, | |||
179 | return err; | 181 | return err; |
180 | } | 182 | } |
181 | 183 | ||
182 | extern void ipv4_update_pmtu(struct sk_buff *skb, struct net *net, u32 mtu, | 184 | void ipv4_update_pmtu(struct sk_buff *skb, struct net *net, u32 mtu, int oif, |
183 | int oif, u32 mark, u8 protocol, int flow_flags); | 185 | u32 mark, u8 protocol, int flow_flags); |
184 | extern void ipv4_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, u32 mtu); | 186 | void ipv4_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, u32 mtu); |
185 | extern void ipv4_redirect(struct sk_buff *skb, struct net *net, | 187 | void ipv4_redirect(struct sk_buff *skb, struct net *net, int oif, u32 mark, |
186 | int oif, u32 mark, u8 protocol, int flow_flags); | 188 | u8 protocol, int flow_flags); |
187 | extern void ipv4_sk_redirect(struct sk_buff *skb, struct sock *sk); | 189 | void ipv4_sk_redirect(struct sk_buff *skb, struct sock *sk); |
188 | extern void ip_rt_send_redirect(struct sk_buff *skb); | 190 | void ip_rt_send_redirect(struct sk_buff *skb); |
189 | 191 | ||
190 | extern unsigned int inet_addr_type(struct net *net, __be32 addr); | 192 | unsigned int inet_addr_type(struct net *net, __be32 addr); |
191 | extern unsigned int inet_dev_addr_type(struct net *net, const struct net_device *dev, __be32 addr); | 193 | unsigned int inet_dev_addr_type(struct net *net, const struct net_device *dev, |
192 | extern void ip_rt_multicast_event(struct in_device *); | 194 | __be32 addr); |
193 | extern int ip_rt_ioctl(struct net *, unsigned int cmd, void __user *arg); | 195 | void ip_rt_multicast_event(struct in_device *); |
194 | extern void ip_rt_get_source(u8 *src, struct sk_buff *skb, struct rtable *rt); | 196 | int ip_rt_ioctl(struct net *, unsigned int cmd, void __user *arg); |
195 | extern int ip_rt_dump(struct sk_buff *skb, struct netlink_callback *cb); | 197 | void ip_rt_get_source(u8 *src, struct sk_buff *skb, struct rtable *rt); |
198 | int ip_rt_dump(struct sk_buff *skb, struct netlink_callback *cb); | ||
196 | 199 | ||
197 | struct in_ifaddr; | 200 | struct in_ifaddr; |
198 | extern void fib_add_ifaddr(struct in_ifaddr *); | 201 | void fib_add_ifaddr(struct in_ifaddr *); |
199 | extern void fib_del_ifaddr(struct in_ifaddr *, struct in_ifaddr *); | 202 | void fib_del_ifaddr(struct in_ifaddr *, struct in_ifaddr *); |
200 | 203 | ||
201 | static inline void ip_rt_put(struct rtable *rt) | 204 | static inline void ip_rt_put(struct rtable *rt) |
202 | { | 205 | { |