aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/ipv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/ipv6.c')
-rw-r--r--net/sctp/ipv6.c92
1 files changed, 46 insertions, 46 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
index bbee14d01c9b..c20d282fac06 100644
--- a/net/sctp/ipv6.c
+++ b/net/sctp/ipv6.c
@@ -861,27 +861,27 @@ static int sctp_inet6_supported_addrs(const struct sctp_sock *opt,
861} 861}
862 862
863static const struct proto_ops inet6_seqpacket_ops = { 863static const struct proto_ops inet6_seqpacket_ops = {
864 .family = PF_INET6, 864 .family = PF_INET6,
865 .owner = THIS_MODULE, 865 .owner = THIS_MODULE,
866 .release = inet6_release, 866 .release = inet6_release,
867 .bind = inet6_bind, 867 .bind = inet6_bind,
868 .connect = inet_dgram_connect, 868 .connect = inet_dgram_connect,
869 .socketpair = sock_no_socketpair, 869 .socketpair = sock_no_socketpair,
870 .accept = inet_accept, 870 .accept = inet_accept,
871 .getname = inet6_getname, 871 .getname = inet6_getname,
872 .poll = sctp_poll, 872 .poll = sctp_poll,
873 .ioctl = inet6_ioctl, 873 .ioctl = inet6_ioctl,
874 .listen = sctp_inet_listen, 874 .listen = sctp_inet_listen,
875 .shutdown = inet_shutdown, 875 .shutdown = inet_shutdown,
876 .setsockopt = sock_common_setsockopt, 876 .setsockopt = sock_common_setsockopt,
877 .getsockopt = sock_common_getsockopt, 877 .getsockopt = sock_common_getsockopt,
878 .sendmsg = inet_sendmsg,
879 .recvmsg = sock_common_recvmsg,
880 .mmap = sock_no_mmap,
878#ifdef CONFIG_COMPAT 881#ifdef CONFIG_COMPAT
879 .compat_setsockopt = compat_sock_common_setsockopt, 882 .compat_setsockopt = compat_sock_common_setsockopt,
880 .compat_getsockopt = compat_sock_common_getsockopt, 883 .compat_getsockopt = compat_sock_common_getsockopt,
881#endif 884#endif
882 .sendmsg = inet_sendmsg,
883 .recvmsg = sock_common_recvmsg,
884 .mmap = sock_no_mmap,
885}; 885};
886 886
887static struct inet_protosw sctpv6_seqpacket_protosw = { 887static struct inet_protosw sctpv6_seqpacket_protosw = {
@@ -915,35 +915,35 @@ static struct inet6_protocol sctpv6_protocol = {
915}; 915};
916 916
917static struct sctp_af sctp_ipv6_specific = { 917static struct sctp_af sctp_ipv6_specific = {
918 .sctp_xmit = sctp_v6_xmit, 918 .sa_family = AF_INET6,
919 .setsockopt = ipv6_setsockopt, 919 .sctp_xmit = sctp_v6_xmit,
920 .getsockopt = ipv6_getsockopt, 920 .setsockopt = ipv6_setsockopt,
921 .getsockopt = ipv6_getsockopt,
922 .get_dst = sctp_v6_get_dst,
923 .get_saddr = sctp_v6_get_saddr,
924 .copy_addrlist = sctp_v6_copy_addrlist,
925 .from_skb = sctp_v6_from_skb,
926 .from_sk = sctp_v6_from_sk,
927 .to_sk_saddr = sctp_v6_to_sk_saddr,
928 .to_sk_daddr = sctp_v6_to_sk_daddr,
929 .from_addr_param = sctp_v6_from_addr_param,
930 .to_addr_param = sctp_v6_to_addr_param,
931 .dst_saddr = sctp_v6_dst_saddr,
932 .cmp_addr = sctp_v6_cmp_addr,
933 .scope = sctp_v6_scope,
934 .addr_valid = sctp_v6_addr_valid,
935 .inaddr_any = sctp_v6_inaddr_any,
936 .is_any = sctp_v6_is_any,
937 .available = sctp_v6_available,
938 .skb_iif = sctp_v6_skb_iif,
939 .is_ce = sctp_v6_is_ce,
940 .seq_dump_addr = sctp_v6_seq_dump_addr,
941 .net_header_len = sizeof(struct ipv6hdr),
942 .sockaddr_len = sizeof(struct sockaddr_in6),
921#ifdef CONFIG_COMPAT 943#ifdef CONFIG_COMPAT
922 .compat_setsockopt = compat_ipv6_setsockopt, 944 .compat_setsockopt = compat_ipv6_setsockopt,
923 .compat_getsockopt = compat_ipv6_getsockopt, 945 .compat_getsockopt = compat_ipv6_getsockopt,
924#endif 946#endif
925 .get_dst = sctp_v6_get_dst,
926 .get_saddr = sctp_v6_get_saddr,
927 .copy_addrlist = sctp_v6_copy_addrlist,
928 .from_skb = sctp_v6_from_skb,
929 .from_sk = sctp_v6_from_sk,
930 .to_sk_saddr = sctp_v6_to_sk_saddr,
931 .to_sk_daddr = sctp_v6_to_sk_daddr,
932 .from_addr_param = sctp_v6_from_addr_param,
933 .to_addr_param = sctp_v6_to_addr_param,
934 .dst_saddr = sctp_v6_dst_saddr,
935 .cmp_addr = sctp_v6_cmp_addr,
936 .scope = sctp_v6_scope,
937 .addr_valid = sctp_v6_addr_valid,
938 .inaddr_any = sctp_v6_inaddr_any,
939 .is_any = sctp_v6_is_any,
940 .available = sctp_v6_available,
941 .skb_iif = sctp_v6_skb_iif,
942 .is_ce = sctp_v6_is_ce,
943 .seq_dump_addr = sctp_v6_seq_dump_addr,
944 .net_header_len = sizeof(struct ipv6hdr),
945 .sockaddr_len = sizeof(struct sockaddr_in6),
946 .sa_family = AF_INET6,
947}; 947};
948 948
949static struct sctp_pf sctp_pf_inet6_specific = { 949static struct sctp_pf sctp_pf_inet6_specific = {