/freebsd/sys/net/ |
H A D | vnet.h | 176 #define curvnet curthread->td_vnet macro 198 __FILE__, __LINE__, __func__, curvnet, (arg))); \ 199 struct vnet *saved_vnet = curvnet; \ 201 curvnet = arg; \ 212 VNET_ASSERT(curvnet != NULL && (saved_vnet == NULL || \ 215 __FILE__, __LINE__, __func__, curvnet, saved_vnet)); \ 216 curvnet = saved_vnet; \ 223 __FILE__, __LINE__, __func__, curvnet, (arg))); \ 224 struct vnet *saved_vnet = curvnet; \ 225 curvnet = arg; [all …]
|
H A D | vnet.c | 337 curvnet = prison0.pr_vnet = vnet0 = vnet_alloc(); in vnet0_init() 345 curvnet = NULL; in vnet_init_done() 621 curvnet->vnet_state = vs->subsystem; in vnet_sysinit() 640 curvnet->vnet_state = vs->subsystem; in vnet_sysuninit() 717 (vnr->old_vnet == vnr->new_vnet) == (curvnet == old_vnet)) in vnet_log_recursion() 727 vnr->new_vnet = curvnet; in vnet_log_recursion()
|
H A D | netisr.c | 399 MPASS(IS_DEFAULT_VNET(curvnet)); in netisr_register() 463 if (vnet_iter == curvnet) in netisr_register() 686 KASSERT(curvnet != NULL, ("%s: curvnet is NULL", __func__)); in netisr_register_vnet() 761 KASSERT(curvnet != NULL, ("%s: curvnet is NULL", __func__)); in netisr_unregister_vnet() 771 netisr_drain_proto_vnet(curvnet, proto); in netisr_unregister_vnet()
|
H A D | if_ipsec.c | 275 if (IS_DEFAULT_VNET(curvnet)) in vnet_ipsec_init() 281 if (IS_DEFAULT_VNET(curvnet)) in vnet_ipsec_init() 305 if (IS_DEFAULT_VNET(curvnet)) in vnet_ipsec_uninit() 310 if (IS_DEFAULT_VNET(curvnet)) in vnet_ipsec_uninit()
|
H A D | if.c | 331 ifindex_table[i].ife_ifnet->if_vnet == curvnet) in sysctl_ifcount() 377 if (curvnet != NULL && ifp != NULL && ifp->if_vnet != curvnet) in ifnet_byindex() 447 curvnet->vnet_ifcnt++; in if_link_ifnet() 468 curvnet->vnet_ifcnt--; in if_unlink_ifnet() 499 pending = malloc(sizeof(struct ifnet *) * curvnet->vnet_ifcnt, in vnet_if_return() 547 ifp->if_vnet = curvnet; in if_alloc_domain() 835 ifp->if_vnet = curvnet; in if_attach_internal() 837 ifp->if_home_vnet = curvnet; in if_attach_internal() 956 if (IS_DEFAULT_VNET(curvnet)) in if_attach_internal() 1209 if (IS_DEFAULT_VNET(curvnet)) in if_detach_internal() [all …]
|
/freebsd/sys/netpfil/ipfw/nptv6/ |
H A D | ip_fw_nptv6.c | 51 return (nptv6_init(&V_layer3_chain, IS_DEFAULT_VNET(curvnet))); in vnet_ipfw_nptv6_init() 58 nptv6_uninit(&V_layer3_chain, IS_DEFAULT_VNET(curvnet)); in vnet_ipfw_nptv6_uninit()
|
/freebsd/sys/netpfil/ipfw/pmod/ |
H A D | ip_fw_pmod.c | 52 error = tcpmod_init(&V_layer3_chain, IS_DEFAULT_VNET(curvnet)); in vnet_ipfw_pmod_init() 60 tcpmod_uninit(&V_layer3_chain, IS_DEFAULT_VNET(curvnet)); in vnet_ipfw_pmod_uninit()
|
/freebsd/sys/compat/linsysfs/ |
H A D | linsysfs_net.c | 213 if (nq->ifp == ifp && nq->vnet == curvnet) { in linsysfs_if_visible() 262 if (nq->ifp == ifp && nq->vnet == curvnet) in linsysfs_net_addif() 268 nq->vnet = curvnet; in linsysfs_net_addif() 281 if (nq->ifp == ifp && nq->vnet == curvnet) { in linsysfs_net_delif()
|
/freebsd/sys/netpfil/ipfw/nat64/ |
H A D | ip_fw_nat64.c | 83 first = IS_DEFAULT_VNET(curvnet) ? 1: 0; in vnet_ipfw_nat64_init() 110 last = IS_DEFAULT_VNET(curvnet) ? 1: 0; in vnet_ipfw_nat64_uninit()
|
/freebsd/sys/kern/ |
H A D | kern_hhook.c | 321 KASSERT(curvnet != NULL, ("curvnet is NULL")); in hhook_head_register() 322 tmphhh->hhh_vid = (uintptr_t)curvnet; in hhook_head_register() 417 KASSERT(curvnet != NULL, ("curvnet is NULL")); in hhook_head_get() 418 if (hhh->hhh_vid != (uintptr_t)curvnet) in hhook_head_get()
|
H A D | subr_trap.c | 189 VNET_ASSERT(curvnet == NULL, in userret() 191 __func__, td, p->p_pid, td->td_name, curvnet, in userret()
|
/freebsd/sys/ddb/ |
H A D | db_sym.c | 159 *valuep = (db_expr_t)curvnet; in db_var_curvnet() 265 vnet = curvnet; in db_value_of_name_vnet()
|
/freebsd/sys/netinet6/ |
H A D | in6_gif.c | 442 if (!IS_DEFAULT_VNET(curvnet)) in in6_gif_init() 457 if (IS_DEFAULT_VNET(curvnet)) { in in6_gif_uninit()
|
H A D | ip6_gre.c | 556 if (!IS_DEFAULT_VNET(curvnet)) in in6_gre_init() 567 if (IS_DEFAULT_VNET(curvnet)) { in in6_gre_uninit()
|
H A D | nd6.c | 247 nd6_slowtimo, curvnet); in nd6_init() 250 callout_reset(&V_nd6_timer_ch, hz, nd6_timer, curvnet); in nd6_init() 253 if (IS_DEFAULT_VNET(curvnet)) { in nd6_init() 270 if (IS_DEFAULT_VNET(curvnet)) { in nd6_destroy() 1088 nd6_timer, curvnet); in nd6_timer() 2138 nd6_slowtimo, curvnet); in nd6_slowtimo()
|
H A D | in6_ifattach.c | 836 V_ip6_temp_regen_advance) * hz, in6_tmpaddrtimer, curvnet); in in6_tmpaddrtimer() 894 in6_tmpaddrtimer, curvnet); in in6_ifattach_init()
|
/freebsd/sys/netinet/ |
H A D | in_gif.c | 421 if (!IS_DEFAULT_VNET(curvnet)) in in_gif_init() 436 if (IS_DEFAULT_VNET(curvnet)) { in in_gif_uninit()
|
H A D | ip_gre.c | 560 if (!IS_DEFAULT_VNET(curvnet)) in in_gre_init() 571 if (IS_DEFAULT_VNET(curvnet)) { in in_gre_uninit()
|
H A D | tcp_hostcache.c | 288 tcp_hc_purge, curvnet); in tcp_hc_init() 842 tcp_hc_purge, curvnet); in sysctl_tcp_hc_purgenow()
|
H A D | ip_mroute.c | 735 TASK_INIT(&V_task, 0, ip_mrouter_upcall_thread, curvnet); in ip_mrouter_init() 740 curvnet); in ip_mrouter_init() 742 curvnet); in ip_mrouter_init() 1570 curvnet); in expire_upcalls() 1989 x->arg = curvnet; in add_bw_upcall() 2266 curvnet); in expire_bw_upcalls_send()
|
/freebsd/sys/netpfil/pf/ |
H A D | pf_syncookies.c | 281 pf_syncookie_rotate, curvnet); in pf_synflood_check() 404 PF_SYNCOOKIE_SECRET_LIFETIME * hz, pf_syncookie_rotate, curvnet); in pf_syncookie_newkey()
|
/freebsd/sys/netlink/ |
H A D | netlink_module.c | 82 curvnet, &V_nl_ctl); in vnet_nl_init()
|
/freebsd/sys/rpc/ |
H A D | clnt_nl.c | 278 .cr_vnet = curvnet, in clnt_nl_call() 426 && cr->cr_vnet == curvnet in clnt_nl_reply()
|
/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | mlfk_ipl.c | 223 if (IS_DEFAULT_VNET(curvnet)) { in vnet_ipf_init() 295 if (!IS_DEFAULT_VNET(curvnet)) { in vnet_ipf_uninit()
|
/freebsd/sys/net/route/ |
H A D | route_tables.c | 299 if (IS_DEFAULT_VNET(curvnet)) { in vnet_rtables_init()
|