aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/protocol.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2006-03-21 01:48:35 -0500
committerDavid S. Miller <davem@davemloft.net>2006-03-21 01:48:35 -0500
commit543d9cfeec4d58ad3fd974db5531b06b6b95deb4 (patch)
treeb5f79a92ec01b4a97f26d48cae11566498641822 /net/sctp/protocol.c
parentf94691acf9df35d5cd828373e35391bdc4a3fde6 (diff)
[NET]: Identation & other cleanups related to compat_[gs]etsockopt cset
No code changes, just tidying up, in some cases moving EXPORT_SYMBOLs to just after the function exported, etc. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/protocol.c')
-rw-r--r--net/sctp/protocol.c94
1 files changed, 47 insertions, 47 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index d90f5491870f..2088aa992b7a 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -831,28 +831,28 @@ static struct notifier_block sctp_inetaddr_notifier = {
831 831
832/* Socket operations. */ 832/* Socket operations. */
833static const struct proto_ops inet_seqpacket_ops = { 833static const struct proto_ops inet_seqpacket_ops = {
834 .family = PF_INET, 834 .family = PF_INET,
835 .owner = THIS_MODULE, 835 .owner = THIS_MODULE,
836 .release = inet_release, /* Needs to be wrapped... */ 836 .release = inet_release, /* Needs to be wrapped... */
837 .bind = inet_bind, 837 .bind = inet_bind,
838 .connect = inet_dgram_connect, 838 .connect = inet_dgram_connect,
839 .socketpair = sock_no_socketpair, 839 .socketpair = sock_no_socketpair,
840 .accept = inet_accept, 840 .accept = inet_accept,
841 .getname = inet_getname, /* Semantics are different. */ 841 .getname = inet_getname, /* Semantics are different. */
842 .poll = sctp_poll, 842 .poll = sctp_poll,
843 .ioctl = inet_ioctl, 843 .ioctl = inet_ioctl,
844 .listen = sctp_inet_listen, 844 .listen = sctp_inet_listen,
845 .shutdown = inet_shutdown, /* Looks harmless. */ 845 .shutdown = inet_shutdown, /* Looks harmless. */
846 .setsockopt = sock_common_setsockopt, /* IP_SOL IP_OPTION is a problem. */ 846 .setsockopt = sock_common_setsockopt, /* IP_SOL IP_OPTION is a problem */
847 .getsockopt = sock_common_getsockopt, 847 .getsockopt = sock_common_getsockopt,
848 .sendmsg = inet_sendmsg,
849 .recvmsg = sock_common_recvmsg,
850 .mmap = sock_no_mmap,
851 .sendpage = sock_no_sendpage,
848#ifdef CONFIG_COMPAT 852#ifdef CONFIG_COMPAT
849 .compat_setsockopt = compat_sock_common_setsockopt, 853 .compat_setsockopt = compat_sock_common_setsockopt,
850 .compat_getsockopt = compat_sock_common_getsockopt, 854 .compat_getsockopt = compat_sock_common_getsockopt,
851#endif 855#endif
852 .sendmsg = inet_sendmsg,
853 .recvmsg = sock_common_recvmsg,
854 .mmap = sock_no_mmap,
855 .sendpage = sock_no_sendpage,
856}; 856};
857 857
858/* Registration with AF_INET family. */ 858/* Registration with AF_INET family. */
@@ -884,35 +884,35 @@ static struct net_protocol sctp_protocol = {
884 884
885/* IPv4 address related functions. */ 885/* IPv4 address related functions. */
886static struct sctp_af sctp_ipv4_specific = { 886static struct sctp_af sctp_ipv4_specific = {
887 .sctp_xmit = sctp_v4_xmit, 887 .sa_family = AF_INET,
888 .setsockopt = ip_setsockopt, 888 .sctp_xmit = sctp_v4_xmit,
889 .getsockopt = ip_getsockopt, 889 .setsockopt = ip_setsockopt,
890 .getsockopt = ip_getsockopt,
891 .get_dst = sctp_v4_get_dst,
892 .get_saddr = sctp_v4_get_saddr,
893 .copy_addrlist = sctp_v4_copy_addrlist,
894 .from_skb = sctp_v4_from_skb,
895 .from_sk = sctp_v4_from_sk,
896 .to_sk_saddr = sctp_v4_to_sk_saddr,
897 .to_sk_daddr = sctp_v4_to_sk_daddr,
898 .from_addr_param = sctp_v4_from_addr_param,
899 .to_addr_param = sctp_v4_to_addr_param,
900 .dst_saddr = sctp_v4_dst_saddr,
901 .cmp_addr = sctp_v4_cmp_addr,
902 .addr_valid = sctp_v4_addr_valid,
903 .inaddr_any = sctp_v4_inaddr_any,
904 .is_any = sctp_v4_is_any,
905 .available = sctp_v4_available,
906 .scope = sctp_v4_scope,
907 .skb_iif = sctp_v4_skb_iif,
908 .is_ce = sctp_v4_is_ce,
909 .seq_dump_addr = sctp_v4_seq_dump_addr,
910 .net_header_len = sizeof(struct iphdr),
911 .sockaddr_len = sizeof(struct sockaddr_in),
890#ifdef CONFIG_COMPAT 912#ifdef CONFIG_COMPAT
891 .compat_setsockopt = compat_ip_setsockopt, 913 .compat_setsockopt = compat_ip_setsockopt,
892 .compat_getsockopt = compat_ip_getsockopt, 914 .compat_getsockopt = compat_ip_getsockopt,
893#endif 915#endif
894 .get_dst = sctp_v4_get_dst,
895 .get_saddr = sctp_v4_get_saddr,
896 .copy_addrlist = sctp_v4_copy_addrlist,
897 .from_skb = sctp_v4_from_skb,
898 .from_sk = sctp_v4_from_sk,
899 .to_sk_saddr = sctp_v4_to_sk_saddr,
900 .to_sk_daddr = sctp_v4_to_sk_daddr,
901 .from_addr_param= sctp_v4_from_addr_param,
902 .to_addr_param = sctp_v4_to_addr_param,
903 .dst_saddr = sctp_v4_dst_saddr,
904 .cmp_addr = sctp_v4_cmp_addr,
905 .addr_valid = sctp_v4_addr_valid,
906 .inaddr_any = sctp_v4_inaddr_any,
907 .is_any = sctp_v4_is_any,
908 .available = sctp_v4_available,
909 .scope = sctp_v4_scope,
910 .skb_iif = sctp_v4_skb_iif,
911 .is_ce = sctp_v4_is_ce,
912 .seq_dump_addr = sctp_v4_seq_dump_addr,
913 .net_header_len = sizeof(struct iphdr),
914 .sockaddr_len = sizeof(struct sockaddr_in),
915 .sa_family = AF_INET,
916}; 916};
917 917
918struct sctp_pf *sctp_get_pf_specific(sa_family_t family) { 918struct sctp_pf *sctp_get_pf_specific(sa_family_t family) {