mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
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>
This commit is contained in:
parent
3474753954
commit
a62fbccecd
8 changed files with 86 additions and 65 deletions
|
@ -309,7 +309,7 @@ static struct socket *tipc_create_listen_sock(struct tipc_conn *con)
|
|||
struct socket *sock = NULL;
|
||||
int ret;
|
||||
|
||||
ret = tipc_sock_create_local(s->type, &sock);
|
||||
ret = tipc_sock_create_local(s->net, s->type, &sock);
|
||||
if (ret < 0)
|
||||
return NULL;
|
||||
ret = kernel_setsockopt(sock, SOL_TIPC, TIPC_IMPORTANCE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue