diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-08-06 08:43:06 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-15 06:17:26 (GMT) |
commit | 2ce955035081112cf1590c961da8d94324142b5e (patch) | |
tree | 1c9c9afdcac42e283a7383fa67842470753a0bb4 /include/net | |
parent | 4db67e808640e3934d82ce61ee8e2e89fd877ba8 (diff) | |
download | linux-2ce955035081112cf1590c961da8d94324142b5e.tar.xz |
sctp: Make the ctl_sock per network namespace
- Kill sctp_get_ctl_sock, it is useless now.
- Pass struct net where needed so net->sctp.ctl_sock is accessible.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/netns/sctp.h | 8 | ||||
-rw-r--r-- | include/net/sctp/sctp.h | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/net/netns/sctp.h b/include/net/netns/sctp.h index cbd684e..29e36b4 100644 --- a/include/net/netns/sctp.h +++ b/include/net/netns/sctp.h @@ -1,7 +1,15 @@ #ifndef __NETNS_SCTP_H__ #define __NETNS_SCTP_H__ +struct sock; + struct netns_sctp { + /* This is the global socket data structure used for responding to + * the Out-of-the-blue (OOTB) packets. A control sock will be created + * for this socket at the initialization time. + */ + struct sock *ctl_sock; + /* This is the global local address list. * We actively maintain this complete list of addresses on * the system by catching address add/delete events. diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 00c9205..550a81b 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h @@ -114,7 +114,6 @@ /* * sctp/protocol.c */ -extern struct sock *sctp_get_ctl_sock(void); extern int sctp_copy_local_addr_list(struct net *, struct sctp_bind_addr *, sctp_scope_t, gfp_t gfp, int flags); |