Lines Matching refs:net

108 static void tipc_net_finalize(struct net *net, u32 addr);
110 int tipc_net_init(struct net *net, u8 *node_id, u32 addr) in tipc_net_init() argument
112 if (tipc_own_id(net)) { in tipc_net_init()
119 tipc_set_node_id(net, node_id); in tipc_net_init()
121 tipc_net_finalize(net, addr); in tipc_net_init()
125 static void tipc_net_finalize(struct net *net, u32 addr) in tipc_net_finalize() argument
127 struct tipc_net *tn = tipc_net(net); in tipc_net_finalize()
131 tipc_set_node_addr(net, addr); in tipc_net_finalize()
132 tipc_named_reinit(net); in tipc_net_finalize()
133 tipc_sk_reinit(net); in tipc_net_finalize()
134 tipc_mon_reinit_self(net); in tipc_net_finalize()
135 tipc_nametbl_publish(net, TIPC_CFG_SRV, addr, addr, in tipc_net_finalize()
144 tipc_net_finalize(fwork->net, fwork->addr); in tipc_net_finalize_work()
147 void tipc_sched_net_finalize(struct net *net, u32 addr) in tipc_sched_net_finalize() argument
149 struct tipc_net *tn = tipc_net(net); in tipc_sched_net_finalize()
151 tn->final_work.net = net; in tipc_sched_net_finalize()
156 void tipc_net_stop(struct net *net) in tipc_net_stop() argument
158 if (!tipc_own_id(net)) in tipc_net_stop()
162 tipc_bearer_stop(net); in tipc_net_stop()
163 tipc_node_stop(net); in tipc_net_stop()
169 static int __tipc_nl_add_net(struct net *net, struct tipc_nl_msg *msg) in __tipc_nl_add_net() argument
171 struct tipc_net *tn = net_generic(net, tipc_net_id); in __tipc_nl_add_net()
207 struct net *net = sock_net(skb->sk); in tipc_nl_net_dump() local
219 err = __tipc_nl_add_net(net, &msg); in tipc_nl_net_dump()
233 struct net *net = sock_net(skb->sk); in __tipc_nl_net_set() local
234 struct tipc_net *tn = tipc_net(net); in __tipc_nl_net_set()
248 if (tipc_own_addr(net)) in __tipc_nl_net_set()
268 tipc_net_init(net, NULL, addr); in __tipc_nl_net_set()
280 tipc_net_init(net, node_id, 0); in __tipc_nl_net_set()
296 static int __tipc_nl_addr_legacy_get(struct net *net, struct tipc_nl_msg *msg) in __tipc_nl_addr_legacy_get() argument
298 struct tipc_net *tn = tipc_net(net); in __tipc_nl_addr_legacy_get()
330 struct net *net = sock_net(skb->sk); in tipc_nl_net_addr_legacy_get() local
343 err = __tipc_nl_addr_legacy_get(net, &msg); in tipc_nl_net_addr_legacy_get()