aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/associola.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-08-06 04:42:04 -0400
committerDavid S. Miller <davem@davemloft.net>2012-08-15 02:12:17 -0400
commit4db67e808640e3934d82ce61ee8e2e89fd877ba8 (patch)
treeff02e330187c41970c75f6d8a6275e1cc25165f0 /net/sctp/associola.c
parent4110cc255ddec59c79fba4d71cdd948d0a382140 (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 'net/sctp/associola.c')
-rw-r--r--net/sctp/associola.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index a3601f35ac15..ed4930b31341 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -1544,7 +1544,8 @@ int sctp_assoc_set_bind_addr_from_ep(struct sctp_association *asoc,
1544 if (asoc->peer.ipv6_address) 1544 if (asoc->peer.ipv6_address)
1545 flags |= SCTP_ADDR6_PEERSUPP; 1545 flags |= SCTP_ADDR6_PEERSUPP;
1546 1546
1547 return sctp_bind_addr_copy(&asoc->base.bind_addr, 1547 return sctp_bind_addr_copy(sock_net(asoc->base.sk),
1548 &asoc->base.bind_addr,
1548 &asoc->ep->base.bind_addr, 1549 &asoc->ep->base.bind_addr,
1549 scope, gfp, flags); 1550 scope, gfp, flags);
1550} 1551}