aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-07-09 17:22:10 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-12 15:57:54 -0400
commit4bc2f18ba4f22a90ab593c0a580fc9a19c4777b6 (patch)
treebb39f427bd468d0e34a73ebc788db726406fa261 /net/ipv4/tcp_ipv4.c
parentba80a2522899ea71a5b201bae60bdfd99126af95 (diff)
net/ipv4: EXPORT_SYMBOL cleanups
CodingStyle cleanups EXPORT_SYMBOL should immediately follow the symbol declaration. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c35
1 files changed, 12 insertions, 23 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 8fa32f5ae2ce..44545e8e8c92 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -84,6 +84,7 @@
84 84
85int sysctl_tcp_tw_reuse __read_mostly; 85int sysctl_tcp_tw_reuse __read_mostly;
86int sysctl_tcp_low_latency __read_mostly; 86int sysctl_tcp_low_latency __read_mostly;
87EXPORT_SYMBOL(sysctl_tcp_low_latency);
87 88
88 89
89#ifdef CONFIG_TCP_MD5SIG 90#ifdef CONFIG_TCP_MD5SIG
@@ -100,6 +101,7 @@ struct tcp_md5sig_key *tcp_v4_md5_do_lookup(struct sock *sk, __be32 addr)
100#endif 101#endif
101 102
102struct inet_hashinfo tcp_hashinfo; 103struct inet_hashinfo tcp_hashinfo;
104EXPORT_SYMBOL(tcp_hashinfo);
103 105
104static inline __u32 tcp_v4_init_sequence(struct sk_buff *skb) 106static inline __u32 tcp_v4_init_sequence(struct sk_buff *skb)
105{ 107{
@@ -139,7 +141,6 @@ int tcp_twsk_unique(struct sock *sk, struct sock *sktw, void *twp)
139 141
140 return 0; 142 return 0;
141} 143}
142
143EXPORT_SYMBOL_GPL(tcp_twsk_unique); 144EXPORT_SYMBOL_GPL(tcp_twsk_unique);
144 145
145/* This will initiate an outgoing connection. */ 146/* This will initiate an outgoing connection. */
@@ -267,6 +268,7 @@ failure:
267 inet->inet_dport = 0; 268 inet->inet_dport = 0;
268 return err; 269 return err;
269} 270}
271EXPORT_SYMBOL(tcp_v4_connect);
270 272
271/* 273/*
272 * This routine does path mtu discovery as defined in RFC1191. 274 * This routine does path mtu discovery as defined in RFC1191.
@@ -545,6 +547,7 @@ void tcp_v4_send_check(struct sock *sk, struct sk_buff *skb)
545 547
546 __tcp_v4_send_check(skb, inet->inet_saddr, inet->inet_daddr); 548 __tcp_v4_send_check(skb, inet->inet_saddr, inet->inet_daddr);
547} 549}
550EXPORT_SYMBOL(tcp_v4_send_check);
548 551
549int tcp_v4_gso_send_check(struct sk_buff *skb) 552int tcp_v4_gso_send_check(struct sk_buff *skb)
550{ 553{
@@ -860,7 +863,6 @@ struct tcp_md5sig_key *tcp_v4_md5_lookup(struct sock *sk,
860{ 863{
861 return tcp_v4_md5_do_lookup(sk, inet_sk(addr_sk)->inet_daddr); 864 return tcp_v4_md5_do_lookup(sk, inet_sk(addr_sk)->inet_daddr);
862} 865}
863
864EXPORT_SYMBOL(tcp_v4_md5_lookup); 866EXPORT_SYMBOL(tcp_v4_md5_lookup);
865 867
866static struct tcp_md5sig_key *tcp_v4_reqsk_md5_lookup(struct sock *sk, 868static struct tcp_md5sig_key *tcp_v4_reqsk_md5_lookup(struct sock *sk,
@@ -927,7 +929,6 @@ int tcp_v4_md5_do_add(struct sock *sk, __be32 addr,
927 } 929 }
928 return 0; 930 return 0;
929} 931}
930
931EXPORT_SYMBOL(tcp_v4_md5_do_add); 932EXPORT_SYMBOL(tcp_v4_md5_do_add);
932 933
933static int tcp_v4_md5_add_func(struct sock *sk, struct sock *addr_sk, 934static int tcp_v4_md5_add_func(struct sock *sk, struct sock *addr_sk,
@@ -965,7 +966,6 @@ int tcp_v4_md5_do_del(struct sock *sk, __be32 addr)
965 } 966 }
966 return -ENOENT; 967 return -ENOENT;
967} 968}
968
969EXPORT_SYMBOL(tcp_v4_md5_do_del); 969EXPORT_SYMBOL(tcp_v4_md5_do_del);
970 970
971static void tcp_v4_clear_md5_list(struct sock *sk) 971static void tcp_v4_clear_md5_list(struct sock *sk)
@@ -1138,7 +1138,6 @@ clear_hash_noput:
1138 memset(md5_hash, 0, 16); 1138 memset(md5_hash, 0, 16);
1139 return 1; 1139 return 1;
1140} 1140}
1141
1142EXPORT_SYMBOL(tcp_v4_md5_hash_skb); 1141EXPORT_SYMBOL(tcp_v4_md5_hash_skb);
1143 1142
1144static int tcp_v4_inbound_md5_hash(struct sock *sk, struct sk_buff *skb) 1143static int tcp_v4_inbound_md5_hash(struct sock *sk, struct sk_buff *skb)
@@ -1396,6 +1395,7 @@ drop_and_free:
1396drop: 1395drop:
1397 return 0; 1396 return 0;
1398} 1397}
1398EXPORT_SYMBOL(tcp_v4_conn_request);
1399 1399
1400 1400
1401/* 1401/*
@@ -1481,6 +1481,7 @@ exit:
1481 dst_release(dst); 1481 dst_release(dst);
1482 return NULL; 1482 return NULL;
1483} 1483}
1484EXPORT_SYMBOL(tcp_v4_syn_recv_sock);
1484 1485
1485static struct sock *tcp_v4_hnd_req(struct sock *sk, struct sk_buff *skb) 1486static struct sock *tcp_v4_hnd_req(struct sock *sk, struct sk_buff *skb)
1486{ 1487{
@@ -1610,6 +1611,7 @@ csum_err:
1610 TCP_INC_STATS_BH(sock_net(sk), TCP_MIB_INERRS); 1611 TCP_INC_STATS_BH(sock_net(sk), TCP_MIB_INERRS);
1611 goto discard; 1612 goto discard;
1612} 1613}
1614EXPORT_SYMBOL(tcp_v4_do_rcv);
1613 1615
1614/* 1616/*
1615 * From tcp_input.c 1617 * From tcp_input.c
@@ -1796,6 +1798,7 @@ int tcp_v4_remember_stamp(struct sock *sk)
1796 1798
1797 return 0; 1799 return 0;
1798} 1800}
1801EXPORT_SYMBOL(tcp_v4_remember_stamp);
1799 1802
1800int tcp_v4_tw_remember_stamp(struct inet_timewait_sock *tw) 1803int tcp_v4_tw_remember_stamp(struct inet_timewait_sock *tw)
1801{ 1804{
@@ -1835,6 +1838,7 @@ const struct inet_connection_sock_af_ops ipv4_specific = {
1835 .compat_getsockopt = compat_ip_getsockopt, 1838 .compat_getsockopt = compat_ip_getsockopt,
1836#endif 1839#endif
1837}; 1840};
1841EXPORT_SYMBOL(ipv4_specific);
1838 1842
1839#ifdef CONFIG_TCP_MD5SIG 1843#ifdef CONFIG_TCP_MD5SIG
1840static const struct tcp_sock_af_ops tcp_sock_ipv4_specific = { 1844static const struct tcp_sock_af_ops tcp_sock_ipv4_specific = {
@@ -1963,7 +1967,6 @@ void tcp_v4_destroy_sock(struct sock *sk)
1963 1967
1964 percpu_counter_dec(&tcp_sockets_allocated); 1968 percpu_counter_dec(&tcp_sockets_allocated);
1965} 1969}
1966
1967EXPORT_SYMBOL(tcp_v4_destroy_sock); 1970EXPORT_SYMBOL(tcp_v4_destroy_sock);
1968 1971
1969#ifdef CONFIG_PROC_FS 1972#ifdef CONFIG_PROC_FS
@@ -2367,11 +2370,13 @@ int tcp_proc_register(struct net *net, struct tcp_seq_afinfo *afinfo)
2367 rc = -ENOMEM; 2370 rc = -ENOMEM;
2368 return rc; 2371 return rc;
2369} 2372}
2373EXPORT_SYMBOL(tcp_proc_register);
2370 2374
2371void tcp_proc_unregister(struct net *net, struct tcp_seq_afinfo *afinfo) 2375void tcp_proc_unregister(struct net *net, struct tcp_seq_afinfo *afinfo)
2372{ 2376{
2373 proc_net_remove(net, afinfo->name); 2377 proc_net_remove(net, afinfo->name);
2374} 2378}
2379EXPORT_SYMBOL(tcp_proc_unregister);
2375 2380
2376static void get_openreq4(struct sock *sk, struct request_sock *req, 2381static void get_openreq4(struct sock *sk, struct request_sock *req,
2377 struct seq_file *f, int i, int uid, int *len) 2382 struct seq_file *f, int i, int uid, int *len)
@@ -2618,6 +2623,7 @@ struct proto tcp_prot = {
2618 .compat_getsockopt = compat_tcp_getsockopt, 2623 .compat_getsockopt = compat_tcp_getsockopt,
2619#endif 2624#endif
2620}; 2625};
2626EXPORT_SYMBOL(tcp_prot);
2621 2627
2622 2628
2623static int __net_init tcp_sk_init(struct net *net) 2629static int __net_init tcp_sk_init(struct net *net)
@@ -2648,20 +2654,3 @@ void __init tcp_v4_init(void)
2648 if (register_pernet_subsys(&tcp_sk_ops)) 2654 if (register_pernet_subsys(&tcp_sk_ops))
2649 panic("Failed to create the TCP control socket.\n"); 2655 panic("Failed to create the TCP control socket.\n");
2650} 2656}
2651
2652EXPORT_SYMBOL(ipv4_specific);
2653EXPORT_SYMBOL(tcp_hashinfo);
2654EXPORT_SYMBOL(tcp_prot);
2655EXPORT_SYMBOL(tcp_v4_conn_request);
2656EXPORT_SYMBOL(tcp_v4_connect);
2657EXPORT_SYMBOL(tcp_v4_do_rcv);
2658EXPORT_SYMBOL(tcp_v4_remember_stamp);
2659EXPORT_SYMBOL(tcp_v4_send_check);
2660EXPORT_SYMBOL(tcp_v4_syn_recv_sock);
2661
2662#ifdef CONFIG_PROC_FS
2663EXPORT_SYMBOL(tcp_proc_register);
2664EXPORT_SYMBOL(tcp_proc_unregister);
2665#endif
2666EXPORT_SYMBOL(sysctl_tcp_low_latency);
2667