提交 97dc627f 编写于 作者: A Adrian Bunk 提交者: David S. Miller

[IPV4]: make ip_fragment() static

Since there's no longer any external user of ip_fragment() we can make 
it static.
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f53b61d8
...@@ -94,7 +94,6 @@ extern int ip_local_deliver(struct sk_buff *skb); ...@@ -94,7 +94,6 @@ extern int ip_local_deliver(struct sk_buff *skb);
extern int ip_mr_input(struct sk_buff *skb); extern int ip_mr_input(struct sk_buff *skb);
extern int ip_output(struct sk_buff *skb); extern int ip_output(struct sk_buff *skb);
extern int ip_mc_output(struct sk_buff *skb); extern int ip_mc_output(struct sk_buff *skb);
extern int ip_fragment(struct sk_buff *skb, int (*out)(struct sk_buff*));
extern int ip_do_nat(struct sk_buff *skb); extern int ip_do_nat(struct sk_buff *skb);
extern void ip_send_check(struct iphdr *ip); extern void ip_send_check(struct iphdr *ip);
extern int ip_queue_xmit(struct sk_buff *skb, int ipfragok); extern int ip_queue_xmit(struct sk_buff *skb, int ipfragok);
......
...@@ -85,6 +85,8 @@ ...@@ -85,6 +85,8 @@
int sysctl_ip_default_ttl = IPDEFTTL; int sysctl_ip_default_ttl = IPDEFTTL;
static int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff*));
/* Generate a checksum for an outgoing IP datagram. */ /* Generate a checksum for an outgoing IP datagram. */
__inline__ void ip_send_check(struct iphdr *iph) __inline__ void ip_send_check(struct iphdr *iph)
{ {
...@@ -414,7 +416,7 @@ static void ip_copy_metadata(struct sk_buff *to, struct sk_buff *from) ...@@ -414,7 +416,7 @@ static void ip_copy_metadata(struct sk_buff *to, struct sk_buff *from)
* single device frame, and queue such a frame for sending. * single device frame, and queue such a frame for sending.
*/ */
int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff*)) static int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff*))
{ {
struct iphdr *iph; struct iphdr *iph;
int raw = 0; int raw = 0;
...@@ -1396,7 +1398,6 @@ void __init ip_init(void) ...@@ -1396,7 +1398,6 @@ void __init ip_init(void)
#endif #endif
} }
EXPORT_SYMBOL(ip_fragment);
EXPORT_SYMBOL(ip_generic_getfrag); EXPORT_SYMBOL(ip_generic_getfrag);
EXPORT_SYMBOL(ip_queue_xmit); EXPORT_SYMBOL(ip_queue_xmit);
EXPORT_SYMBOL(ip_send_check); EXPORT_SYMBOL(ip_send_check);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册