|
@@ -832,7 +832,7 @@ static inline int sctp_v4_xmit(struct sk_buff *skb,
|
|
return ip_queue_xmit(skb, ipfragok);
|
|
return ip_queue_xmit(skb, ipfragok);
|
|
}
|
|
}
|
|
|
|
|
|
-static struct sctp_af sctp_ipv4_specific;
|
|
|
|
|
|
+static struct sctp_af sctp_af_inet;
|
|
|
|
|
|
static struct sctp_pf sctp_pf_inet = {
|
|
static struct sctp_pf sctp_pf_inet = {
|
|
.event_msgname = sctp_inet_event_msgname,
|
|
.event_msgname = sctp_inet_event_msgname,
|
|
@@ -844,7 +844,7 @@ static struct sctp_pf sctp_pf_inet = {
|
|
.supported_addrs = sctp_inet_supported_addrs,
|
|
.supported_addrs = sctp_inet_supported_addrs,
|
|
.create_accept_sk = sctp_v4_create_accept_sk,
|
|
.create_accept_sk = sctp_v4_create_accept_sk,
|
|
.addr_v4map = sctp_v4_addr_v4map,
|
|
.addr_v4map = sctp_v4_addr_v4map,
|
|
- .af = &sctp_ipv4_specific,
|
|
|
|
|
|
+ .af = &sctp_af_inet
|
|
};
|
|
};
|
|
|
|
|
|
/* Notifier for inetaddr addition/deletion events. */
|
|
/* Notifier for inetaddr addition/deletion events. */
|
|
@@ -906,7 +906,7 @@ static struct net_protocol sctp_protocol = {
|
|
};
|
|
};
|
|
|
|
|
|
/* IPv4 address related functions. */
|
|
/* IPv4 address related functions. */
|
|
-static struct sctp_af sctp_ipv4_specific = {
|
|
|
|
|
|
+static struct sctp_af sctp_af_inet = {
|
|
.sa_family = AF_INET,
|
|
.sa_family = AF_INET,
|
|
.sctp_xmit = sctp_v4_xmit,
|
|
.sctp_xmit = sctp_v4_xmit,
|
|
.setsockopt = ip_setsockopt,
|
|
.setsockopt = ip_setsockopt,
|
|
@@ -1192,7 +1192,7 @@ SCTP_STATIC __init int sctp_init(void)
|
|
sctp_sysctl_register();
|
|
sctp_sysctl_register();
|
|
|
|
|
|
INIT_LIST_HEAD(&sctp_address_families);
|
|
INIT_LIST_HEAD(&sctp_address_families);
|
|
- sctp_register_af(&sctp_ipv4_specific);
|
|
|
|
|
|
+ sctp_register_af(&sctp_af_inet);
|
|
|
|
|
|
status = proto_register(&sctp_prot, 1);
|
|
status = proto_register(&sctp_prot, 1);
|
|
if (status)
|
|
if (status)
|
|
@@ -1249,7 +1249,7 @@ err_v6_init:
|
|
proto_unregister(&sctp_prot);
|
|
proto_unregister(&sctp_prot);
|
|
err_proto_register:
|
|
err_proto_register:
|
|
sctp_sysctl_unregister();
|
|
sctp_sysctl_unregister();
|
|
- list_del(&sctp_ipv4_specific.list);
|
|
|
|
|
|
+ list_del(&sctp_af_inet.list);
|
|
free_pages((unsigned long)sctp_port_hashtable,
|
|
free_pages((unsigned long)sctp_port_hashtable,
|
|
get_order(sctp_port_hashsize *
|
|
get_order(sctp_port_hashsize *
|
|
sizeof(struct sctp_bind_hashbucket)));
|
|
sizeof(struct sctp_bind_hashbucket)));
|
|
@@ -1299,7 +1299,7 @@ SCTP_STATIC __exit void sctp_exit(void)
|
|
inet_unregister_protosw(&sctp_seqpacket_protosw);
|
|
inet_unregister_protosw(&sctp_seqpacket_protosw);
|
|
|
|
|
|
sctp_sysctl_unregister();
|
|
sctp_sysctl_unregister();
|
|
- list_del(&sctp_ipv4_specific.list);
|
|
|
|
|
|
+ list_del(&sctp_af_inet.list);
|
|
|
|
|
|
free_pages((unsigned long)sctp_assoc_hashtable,
|
|
free_pages((unsigned long)sctp_assoc_hashtable,
|
|
get_order(sctp_assoc_hashsize *
|
|
get_order(sctp_assoc_hashsize *
|