aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/ipv6.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-03-21 06:42:24 -0400
committerDavid S. Miller <davem@davemloft.net>2008-03-21 06:42:24 -0400
commita25606c845856e5ca5ed54d23cab077e3a49bf10 (patch)
tree1721e46532d6f48d605d401d7cee83f78f551c45 /net/sctp/ipv6.c
parent938b93adb2642885e688390396472d22a7548748 (diff)
parent94833dfb8c98ed4ca1944dd2c1339d88a2d1c758 (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'net/sctp/ipv6.c')
-rw-r--r--net/sctp/ipv6.c32
1 files changed, 20 insertions, 12 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
index 1937be583cd7..46c5b3c5cb99 100644
--- a/net/sctp/ipv6.c
+++ b/net/sctp/ipv6.c
@@ -1015,15 +1015,24 @@ static struct sctp_pf sctp_pf_inet6 = {
1015}; 1015};
1016 1016
1017/* Initialize IPv6 support and register with socket layer. */ 1017/* Initialize IPv6 support and register with socket layer. */
1018int sctp_v6_init(void) 1018void sctp_v6_pf_init(void)
1019{ 1019{
1020 int rc;
1021
1022 /* Register the SCTP specific PF_INET6 functions. */ 1020 /* Register the SCTP specific PF_INET6 functions. */
1023 sctp_register_pf(&sctp_pf_inet6, PF_INET6); 1021 sctp_register_pf(&sctp_pf_inet6, PF_INET6);
1024 1022
1025 /* Register the SCTP specific AF_INET6 functions. */ 1023 /* Register the SCTP specific AF_INET6 functions. */
1026 sctp_register_af(&sctp_af_inet6); 1024 sctp_register_af(&sctp_af_inet6);
1025}
1026
1027void sctp_v6_pf_exit(void)
1028{
1029 list_del(&sctp_af_inet6.list);
1030}
1031
1032/* Initialize IPv6 support and register with socket layer. */
1033int sctp_v6_protosw_init(void)
1034{
1035 int rc;
1027 1036
1028 rc = proto_register(&sctpv6_prot, 1); 1037 rc = proto_register(&sctpv6_prot, 1);
1029 if (rc) 1038 if (rc)
@@ -1036,6 +1045,14 @@ int sctp_v6_init(void)
1036 return 0; 1045 return 0;
1037} 1046}
1038 1047
1048void sctp_v6_protosw_exit(void)
1049{
1050 inet6_unregister_protosw(&sctpv6_seqpacket_protosw);
1051 inet6_unregister_protosw(&sctpv6_stream_protosw);
1052 proto_unregister(&sctpv6_prot);
1053}
1054
1055
1039/* Register with inet6 layer. */ 1056/* Register with inet6 layer. */
1040int sctp_v6_add_protocol(void) 1057int sctp_v6_add_protocol(void)
1041{ 1058{
@@ -1048,15 +1065,6 @@ int sctp_v6_add_protocol(void)
1048 return 0; 1065 return 0;
1049} 1066}
1050 1067
1051/* IPv6 specific exit support. */
1052void sctp_v6_exit(void)
1053{
1054 inet6_unregister_protosw(&sctpv6_seqpacket_protosw);
1055 inet6_unregister_protosw(&sctpv6_stream_protosw);
1056 proto_unregister(&sctpv6_prot);
1057 list_del(&sctp_af_inet6.list);
1058}
1059
1060/* Unregister with inet6 layer. */ 1068/* Unregister with inet6 layer. */
1061void sctp_v6_del_protocol(void) 1069void sctp_v6_del_protocol(void)
1062{ 1070{