Lines Matching refs:net
109 static void tipc_net_finalize(struct net *net, u32 addr);
111 int tipc_net_init(struct net *net, u8 *node_id, u32 addr) in tipc_net_init() argument
113 if (tipc_own_id(net)) { in tipc_net_init()
120 tipc_set_node_id(net, node_id); in tipc_net_init()
122 tipc_net_finalize(net, addr); in tipc_net_init()
126 static void tipc_net_finalize(struct net *net, u32 addr) in tipc_net_finalize() argument
128 struct tipc_net *tn = tipc_net(net); in tipc_net_finalize()
137 tipc_set_node_addr(net, addr); in tipc_net_finalize()
138 tipc_named_reinit(net); in tipc_net_finalize()
139 tipc_sk_reinit(net); in tipc_net_finalize()
140 tipc_mon_reinit_self(net); in tipc_net_finalize()
141 tipc_nametbl_publish(net, &ua, &sk, addr); in tipc_net_finalize()
153 void tipc_net_stop(struct net *net) in tipc_net_stop() argument
155 if (!tipc_own_id(net)) in tipc_net_stop()
159 tipc_bearer_stop(net); in tipc_net_stop()
160 tipc_node_stop(net); in tipc_net_stop()
166 static int __tipc_nl_add_net(struct net *net, struct tipc_nl_msg *msg) in __tipc_nl_add_net() argument
168 struct tipc_net *tn = net_generic(net, tipc_net_id); in __tipc_nl_add_net()
204 struct net *net = sock_net(skb->sk); in tipc_nl_net_dump() local
216 err = __tipc_nl_add_net(net, &msg); in tipc_nl_net_dump()
230 struct net *net = sock_net(skb->sk); in __tipc_nl_net_set() local
231 struct tipc_net *tn = tipc_net(net); in __tipc_nl_net_set()
245 if (tipc_own_addr(net)) in __tipc_nl_net_set()
265 tipc_net_init(net, NULL, addr); in __tipc_nl_net_set()
277 tipc_net_init(net, node_id, 0); in __tipc_nl_net_set()
293 static int __tipc_nl_addr_legacy_get(struct net *net, struct tipc_nl_msg *msg) in __tipc_nl_addr_legacy_get() argument
295 struct tipc_net *tn = tipc_net(net); in __tipc_nl_addr_legacy_get()
327 struct net *net = sock_net(skb->sk); in tipc_nl_net_addr_legacy_get() local
340 err = __tipc_nl_addr_legacy_get(net, &msg); in tipc_nl_net_addr_legacy_get()