diff options
author | Ying Xue <ying.xue@windriver.com> | 2015-01-09 02:27:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-12 16:24:33 -0500 |
commit | a62fbccecd62bacb4416fc427239f5b43b25d05e (patch) | |
tree | 7f2646f08ce92d8d82cf4a6cbd2126e7f71555ec /net/tipc/server.c | |
parent | 347475395434abb2b61bf59c2952470f37072567 (diff) |
tipc: make subscriber server support net namespace
TIPC establishes one subscriber server which allows users to subscribe
their interesting name service status. After tipc supports namespace,
one dedicated tipc stack instance is created for each namespace, and
each instance can be deemed as one independent TIPC node. As a result,
subscriber server must be built for each namespace.
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Tested-by: Tero Aho <Tero.Aho@coriant.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/server.c')
-rw-r--r-- | net/tipc/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/server.c b/net/tipc/server.c index b5bdaf721d70..eadd4ed45905 100644 --- a/net/tipc/server.c +++ b/net/tipc/server.c | |||
@@ -309,7 +309,7 @@ static struct socket *tipc_create_listen_sock(struct tipc_conn *con) | |||
309 | struct socket *sock = NULL; | 309 | struct socket *sock = NULL; |
310 | int ret; | 310 | int ret; |
311 | 311 | ||
312 | ret = tipc_sock_create_local(s->type, &sock); | 312 | ret = tipc_sock_create_local(s->net, s->type, &sock); |
313 | if (ret < 0) | 313 | if (ret < 0) |
314 | return NULL; | 314 | return NULL; |
315 | ret = kernel_setsockopt(sock, SOL_TIPC, TIPC_IMPORTANCE, | 315 | ret = kernel_setsockopt(sock, SOL_TIPC, TIPC_IMPORTANCE, |