| /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 | 342 curvnet = prison0.pr_vnet = vnet0 = vnet_alloc(); in vnet0_init() 350 curvnet = NULL; in vnet_init_done() 628 curvnet->vnet_state = vs->subsystem; in vnet_sysinit() 647 curvnet->vnet_state = vs->subsystem; in vnet_sysuninit() 724 (vnr->old_vnet == vnr->new_vnet) == (curvnet == old_vnet)) in vnet_log_recursion() 734 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.c | 324 ifindex_table[i].ife_ifnet->if_vnet == curvnet) in sysctl_ifcount() 365 if (curvnet != NULL && ifp != NULL && ifp->if_vnet != curvnet) in ifnet_byindex() 434 MPASS(ifp->if_vnet == curvnet); in if_link_ifnet() 439 curvnet->vnet_ifcnt++; in if_link_ifnet() 455 MPASS(ifp->if_vnet == curvnet); in if_unlink_ifnet() 460 curvnet->vnet_ifcnt--; in if_unlink_ifnet() 498 pending = malloc(sizeof(struct ifnet *) * curvnet->vnet_ifcnt, in vnet_if_return() 544 ifp->if_vnet = curvnet; in if_alloc_domain() 829 ifp->if_vnet = curvnet; in if_attach_internal() 831 ifp->if_home_vnet = curvnet; in if_attach_internal() [all …]
|
| 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 | bpf_ifnet.c | 239 if (bootverbose && IS_DEFAULT_VNET(curvnet)) in bpfattach()
|
| /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/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/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/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 | 173 VNET_ASSERT(curvnet == NULL, in userret() 175 __func__, td, p->p_pid, td->td_name, curvnet, in userret()
|
| H A D | uipc_domain.c | 219 MPASS(IS_DEFAULT_VNET(curvnet)); in domain_add()
|
| /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 | 461 if (!IS_DEFAULT_VNET(curvnet)) in in6_gif_init() 476 if (IS_DEFAULT_VNET(curvnet)) { in in6_gif_uninit()
|
| H A D | ip6_gre.c | 555 if (!IS_DEFAULT_VNET(curvnet)) in in6_gre_init() 566 if (IS_DEFAULT_VNET(curvnet)) { in in6_gre_uninit()
|
| H A D | nd6.c | 261 nd6_slowtimo, curvnet); in nd6_init() 264 callout_reset(&V_nd6_timer_ch, hz, nd6_timer, curvnet); in nd6_init() 267 if (IS_DEFAULT_VNET(curvnet)) { in nd6_init() 284 if (IS_DEFAULT_VNET(curvnet)) { in nd6_destroy() 1106 nd6_timer, curvnet); in nd6_timer() 2152 nd6_slowtimo, curvnet); in nd6_slowtimo()
|
| H A D | in6_ifattach.c | 956 V_ip6_temp_regen_advance) * hz, in6_tmpaddrtimer, curvnet); in in6_tmpaddrtimer() 998 in6_tmpaddrtimer, curvnet); in in6_ifattach_init()
|
| /freebsd/sys/netinet/ |
| H A D | in_gif.c | 430 if (!IS_DEFAULT_VNET(curvnet)) in in_gif_init() 445 if (IS_DEFAULT_VNET(curvnet)) { in in_gif_uninit()
|
| H A D | ip_gre.c | 559 if (!IS_DEFAULT_VNET(curvnet)) in in_gre_init() 570 if (IS_DEFAULT_VNET(curvnet)) { in in_gre_uninit()
|
| H A D | tcp_hostcache.c | 287 tcp_hc_purge, curvnet); in tcp_hc_init() 841 tcp_hc_purge, curvnet); in sysctl_tcp_hc_purgenow()
|
| /freebsd/sys/netlink/ |
| H A D | netlink_module.c | 82 curvnet, &V_nl_ctl); in vnet_nl_init()
|
| /freebsd/sys/netpfil/pf/ |
| H A D | pf_syncookies.c | 279 pf_syncookie_rotate, curvnet); in pf_synflood_check() 402 PF_SYNCOOKIE_SECRET_LIFETIME * hz, pf_syncookie_rotate, curvnet); in pf_syncookie_newkey()
|
| /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 | 225 if (IS_DEFAULT_VNET(curvnet)) { in vnet_ipf_init() 297 if (!IS_DEFAULT_VNET(curvnet)) { in vnet_ipf_uninit()
|