diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-08-06 04:42:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-15 02:12:17 -0400 |
commit | 4db67e808640e3934d82ce61ee8e2e89fd877ba8 (patch) | |
tree | ff02e330187c41970c75f6d8a6275e1cc25165f0 /include/net/netns | |
parent | 4110cc255ddec59c79fba4d71cdd948d0a382140 (diff) |
sctp: Make the address lists per network namespace
- Move the address lists into struct net
- Add per network namespace initialization and cleanup
- Pass around struct net so it is everywhere I need it.
- Rename all of the global variable references into references
to the variables moved into struct net
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/netns')
-rw-r--r-- | include/net/netns/sctp.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/net/netns/sctp.h b/include/net/netns/sctp.h new file mode 100644 index 000000000000..cbd684e01cf7 --- /dev/null +++ b/include/net/netns/sctp.h | |||
@@ -0,0 +1,21 @@ | |||
1 | #ifndef __NETNS_SCTP_H__ | ||
2 | #define __NETNS_SCTP_H__ | ||
3 | |||
4 | struct netns_sctp { | ||
5 | /* This is the global local address list. | ||
6 | * We actively maintain this complete list of addresses on | ||
7 | * the system by catching address add/delete events. | ||
8 | * | ||
9 | * It is a list of sctp_sockaddr_entry. | ||
10 | */ | ||
11 | struct list_head local_addr_list; | ||
12 | struct list_head addr_waitq; | ||
13 | struct timer_list addr_wq_timer; | ||
14 | struct list_head auto_asconf_splist; | ||
15 | spinlock_t addr_wq_lock; | ||
16 | |||
17 | /* Lock that protects the local_addr_list writers */ | ||
18 | spinlock_t local_addr_lock; | ||
19 | }; | ||
20 | |||
21 | #endif /* __NETNS_SCTP_H__ */ | ||