diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-01-07 16:23:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-01-07 16:23:39 -0500 |
commit | 97dc627fb3471664c72d0933790a90ba3f91e131 (patch) | |
tree | 89ca7c0856da17268c6f1c0a3d45fb07e4058741 | |
parent | f53b61d8c385140fe7f09e0c9187ae813ee9f330 (diff) |
[IPV4]: make ip_fragment() static
Since there's no longer any external user of ip_fragment() we can make
it static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/ip.h | 1 | ||||
-rw-r--r-- | net/ipv4/ip_output.c | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index a494d04e5dea..8de0697b364c 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
@@ -94,7 +94,6 @@ extern int ip_local_deliver(struct sk_buff *skb); | |||
94 | extern int ip_mr_input(struct sk_buff *skb); | 94 | extern int ip_mr_input(struct sk_buff *skb); |
95 | extern int ip_output(struct sk_buff *skb); | 95 | extern int ip_output(struct sk_buff *skb); |
96 | extern int ip_mc_output(struct sk_buff *skb); | 96 | extern int ip_mc_output(struct sk_buff *skb); |
97 | extern int ip_fragment(struct sk_buff *skb, int (*out)(struct sk_buff*)); | ||
98 | extern int ip_do_nat(struct sk_buff *skb); | 97 | extern int ip_do_nat(struct sk_buff *skb); |
99 | extern void ip_send_check(struct iphdr *ip); | 98 | extern void ip_send_check(struct iphdr *ip); |
100 | extern int ip_queue_xmit(struct sk_buff *skb, int ipfragok); | 99 | extern int ip_queue_xmit(struct sk_buff *skb, int ipfragok); |
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index 59fdac3a099a..c2169b47ddfd 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c | |||
@@ -85,6 +85,8 @@ | |||
85 | 85 | ||
86 | int sysctl_ip_default_ttl = IPDEFTTL; | 86 | int sysctl_ip_default_ttl = IPDEFTTL; |
87 | 87 | ||
88 | static int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff*)); | ||
89 | |||
88 | /* Generate a checksum for an outgoing IP datagram. */ | 90 | /* Generate a checksum for an outgoing IP datagram. */ |
89 | __inline__ void ip_send_check(struct iphdr *iph) | 91 | __inline__ void ip_send_check(struct iphdr *iph) |
90 | { | 92 | { |
@@ -414,7 +416,7 @@ static void ip_copy_metadata(struct sk_buff *to, struct sk_buff *from) | |||
414 | * single device frame, and queue such a frame for sending. | 416 | * single device frame, and queue such a frame for sending. |
415 | */ | 417 | */ |
416 | 418 | ||
417 | int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff*)) | 419 | static int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff*)) |
418 | { | 420 | { |
419 | struct iphdr *iph; | 421 | struct iphdr *iph; |
420 | int raw = 0; | 422 | int raw = 0; |
@@ -1396,7 +1398,6 @@ void __init ip_init(void) | |||
1396 | #endif | 1398 | #endif |
1397 | } | 1399 | } |
1398 | 1400 | ||
1399 | EXPORT_SYMBOL(ip_fragment); | ||
1400 | EXPORT_SYMBOL(ip_generic_getfrag); | 1401 | EXPORT_SYMBOL(ip_generic_getfrag); |
1401 | EXPORT_SYMBOL(ip_queue_xmit); | 1402 | EXPORT_SYMBOL(ip_queue_xmit); |
1402 | EXPORT_SYMBOL(ip_send_check); | 1403 | EXPORT_SYMBOL(ip_send_check); |