Home
last modified time | relevance | path

Searched refs:vnet (Results 1 – 25 of 165) sorted by relevance

1234567

/freebsd-14.2/sys/net/
H A Dvnet.c105 struct vnet *vnet0;
234 struct vnet *
237 struct vnet *vnet; in vnet_alloc() local
240 vnet = malloc(sizeof(struct vnet), M_VNET, M_WAITOK | M_ZERO); in vnet_alloc()
242 SDT_PROBE2(vnet, functions, vnet_alloc, alloc, __LINE__, vnet); in vnet_alloc()
268 return (vnet); in vnet_alloc()
275 vnet_destroy(struct vnet *vnet) in vnet_destroy() argument
467 struct vnet *vnet; in vnet_data_copy() local
484 struct vnet *vnet; in vnet_register_sysinit() local
555 struct vnet *vnet; in vnet_deregister_sysuninit() local
[all …]
H A Dvnet.h69 struct vnet { struct
169 struct vnet *vnet_alloc(void);
170 void vnet_destroy(struct vnet *vnet);
199 struct vnet *saved_vnet = curvnet; \
224 struct vnet *saved_vnet = curvnet; \
244 extern struct vnet *vnet0;
256 LIST_HEAD(vnet_list_head, vnet);
301 #define VNET_VNET_PTR(vnet, n) _VNET_PTR((vnet)->vnet_data_base, n) argument
302 #define VNET_VNET(vnet, n) (*VNET_VNET_PTR((vnet), n)) argument
430 #define VNET_VNET_PTR(vnet, n) (&(n)) argument
[all …]
/freebsd-14.2/tests/sys/netinet6/
H A Dtest_ip6_output.py13 from atf_python.sys.net.vnet import run_cmd
83 vnet.pipe.send(ll_data)
87 vnet.pipe.send(tx_obj)
91 def vnet2_handler(self, vnet): argument
93 self._vnet2_handler(vnet, ip, None)
177 vnet = self.vnet
224 def vnet2_handler(self, vnet): argument
261 def vnet2_handler(self, vnet): argument
266 self._vnet2_handler(vnet, ip, None)
299 def vnet2_handler(self, vnet): argument
[all …]
/freebsd-14.2/sys/ofed/include/rdma/
H A Dib_addr_freebsd.h34 ip_ifp_find(struct vnet *vnet, uint32_t addr) in ip_ifp_find() argument
46 CURVNET_SET_QUIET(vnet); in ip_ifp_find()
62 ip6_ifp_find(struct vnet *vnet, struct in6_addr addr, uint16_t scope_id) in ip6_ifp_find() argument
79 CURVNET_SET_QUIET(vnet); in ip6_ifp_find()
94 dev_get_by_index(struct vnet *vnet, int if_index) in dev_get_by_index() argument
100 CURVNET_SET(vnet); in dev_get_by_index()
/freebsd-14.2/tests/examples/
H A Dtest_examples.py4 from atf_python.sys.net.vnet import SingleVnetTestTemplate
5 from atf_python.sys.net.vnet import VnetTestTemplate
6 from atf_python.sys.net.vnet import VnetInstance
136 vnet = self.vnet_map["vnet1"]
137 iface = vnet.iface_alias_map["if1"]
138 print("Iface {} inside vnet {}".format(iface.name, vnet.name))
173 def vnet2_handler(self, vnet: VnetInstance):
182 iface_alias = self.wait_object(vnet.pipe, None)
184 os_ifname = vnet.iface_alias_map[iface_alias].name
185 self.send_object(vnet.pipe, self._get_iface_stat(os_ifname))
/freebsd-14.2/tests/atf_python/sys/net/
H A Dvnet.py351 vnet.attach()
354 vnet.set_pipe(pipe)
359 if not vnet.need_dad:
360 vnet.disable_dad()
361 for iface in vnet.ifaces:
387 handler(vnet)
427 print("# vnet {} -> {}".format(vnet.alias, vnet.name), end="")
474 vnet,
480 vnet.set_subprocess(p)
485 main_vnet = vnet
[all …]
/freebsd-14.2/lib/libkvm/
H A Dkvm_vnet.c64 struct vnet vnet; in _kvm_vnet_selectpid() local
194 if (kvm_read(kd, (uintptr_t)prison.pr_vnet, &vnet, sizeof(vnet)) != in _kvm_vnet_selectpid()
195 sizeof(vnet)) { in _kvm_vnet_selectpid()
199 if (vnet.vnet_magic_n != VNET_MAGIC_N) { in _kvm_vnet_selectpid()
207 kd->vnet_base = vnet.vnet_data_base; in _kvm_vnet_selectpid()
/freebsd-14.2/tests/sys/net/routing/
H A Dtest_routing_l3.py10 from atf_python.sys.net.vnet import SingleVnetTestTemplate
11 from atf_python.sys.net.vnet import VnetTestTemplate
25 vnet = self.vnet_map["vnet1"]
26 first_iface = vnet.iface_alias_map["if1"]
27 second_iface = vnet.iface_alias_map["if2"]
60 vnet = self.vnet_map["vnet1"]
61 first_iface = vnet.iface_alias_map["if1"]
/freebsd-14.2/sys/dev/wg/
H A Dwg_cookie.c41 struct vnet *vnet; member
75 static int ratelimit_allow(struct ratelimit *, struct sockaddr *, struct vnet *);
230 void *buf, size_t len, bool check_cookie, struct sockaddr *sa, struct vnet *vnet) in cookie_checker_validate_macs() argument
257 return ratelimit_allow(&ratelimit_v4, sa, vnet); in cookie_checker_validate_macs()
260 return ratelimit_allow(&ratelimit_v6, sa, vnet); in cookie_checker_validate_macs()
420 ratelimit_allow(struct ratelimit *rl, struct sockaddr *sa, struct vnet *vnet) in ratelimit_allow() argument
426 struct ratelimit_key key = { .vnet = vnet }; in ratelimit_allow()
H A Dwg_cookie.h20 struct vnet;
66 struct vnet *);
/freebsd-14.2/sys/compat/linuxkpi/common/include/net/
H A Dip.h45 inet_get_local_port_range(struct vnet *vnet, int *low, int *high) in inet_get_local_port_range() argument
48 CURVNET_SET_QUIET(vnet); in inet_get_local_port_range()
/freebsd-14.2/tests/sys/netlink/
H A Dtest_rtnl_ifaddr.py6 from atf_python.sys.net.vnet import SingleVnetTestTemplate
191 iface = self.vnet.iface_alias_map["if1"]
238 iface = self.vnet.iface_alias_map["if1"]
271 iface = self.vnet.iface_alias_map["if1"]
294 iface = self.vnet.iface_alias_map["if1"]
313 iface = self.vnet.iface_alias_map["if1"]
341 iface = self.vnet.iface_alias_map["if1"]
366 iface = self.vnet.iface_alias_map["if1"]
401 iface = self.vnet.iface_alias_map["if1"]
494 iface = self.vnet.iface_alias_map["if1"]
[all …]
/freebsd-14.2/tests/sys/netpfil/pf/
H A Dsctp.py7 from atf_python.sys.net.vnet import VnetTestTemplate
120 def accept(self, vnet): argument
145 vnet.pipe.send(rcvd)
254 def vnet2_handler(self, vnet): argument
256 ifname = vnet.iface_alias_map["if1"].name
262 srv.accept(vnet)
304 % self.vnet.iface_alias_map["if1"].name)
403 def vnet2_handler(self, vnet): argument
405 ifname = vnet.iface_alias_map["if1"].name
411 srv.accept(vnet)
[all …]
H A Dfrag6.py7 from atf_python.sys.net.vnet import VnetTestTemplate
29 def vnet2_handler(self, vnet): argument
57 packets = sp.sniff(iface=self.vnet.iface_alias_map["if1"].name,
/freebsd-14.2/share/examples/jails/
H A DVIMAGE23 options VIMAGE # vnet paravirtualization
26 # Netgraph based bridging for vnet jails
38 # if_bridge based bridging for vnet jails
H A Djail.xxx.conf13 vnet;
15 vnet.interface = "ng0_xxx"; # vnet interface(s)
H A Drc.conf.jails36 #jail_{name}_vnet_interfaces="ng0_{name}" # vnet interface(s)
49 #jail_{name}_vnet_interfaces="e0b_{name}" # vnet interface(s)
62 jail_XXX_vnet_interface="ng0_XXX" # vnet interface(s)
66 #jail_XXX_vnet_interface="e0b_XXX" # vnet interface(s)
/freebsd-14.2/tools/regression/ipfw/fwd/
H A Dvimage-fwd.sh188 ljid=`jail -i -c -n lef$$ host.hostname=left.example.net vnet persist`
191 mjid=`jail -i -c -n mid$$ host.hostname=center.example.net vnet persist`
194 rjid=`jail -i -c -n right$$ host.hostname=right.example.net vnet persist`
209 ifconfig ${lmep}a vnet ${ljid}
210 ifconfig ${lmep}b vnet ${mjid}
229 ifconfig ${mrep}a vnet ${mjid}
230 ifconfig ${mrep}b vnet ${rjid}
/freebsd-14.2/sys/compat/linsysfs/
H A Dlinsysfs_net.c57 struct vnet *vnet; member
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-14.2/contrib/flex/src/
H A Dtables.c285 flex_uint32_t vnet; in yytbl_write32() local
288 vnet = htonl (v); in yytbl_write32()
290 rv = (int) fwrite (&vnet, (size_t) bytes, 1, wr->out); in yytbl_write32()
304 flex_uint16_t vnet; in yytbl_write16() local
307 vnet = htons (v); in yytbl_write16()
309 rv = (int) fwrite (&vnet, (size_t) bytes, 1, wr->out); in yytbl_write16()
/freebsd-14.2/sys/ddb/
H A Ddb_sym.c260 struct vnet *vnet; in db_value_of_name_vnet() local
263 vnet = db_vnet; in db_value_of_name_vnet()
265 vnet = curvnet; in db_value_of_name_vnet()
273 *valuep = (db_expr_t)((uintptr_t)value + vnet->vnet_data_base); in db_value_of_name_vnet()
/freebsd-14.2/sys/ofed/drivers/infiniband/core/
H A Dib_cma.c158 static struct cma_pernet *cma_pernet_ptr(struct vnet *vnet) in cma_pernet_ptr() argument
213 static int cma_ps_alloc(struct vnet *vnet, enum rdma_port_space ps, in cma_ps_alloc() argument
1384 static bool validate_ipv4_net_dev_addr(struct vnet *vnet, in validate_ipv4_net_dev_addr() argument
1585 struct vnet *vnet = id_priv->id.route.addr.dev_addr.net; in sdp_match_private_data() local
1619 struct vnet *vnet = id_priv->id.route.addr.dev_addr.net; in cma_match_private_data() local
1815 struct vnet *vnet = id_priv->id.route.addr.dev_addr.net; in cma_cancel_operation() local
2063 struct vnet *vnet = listen_id->route.addr.dev_addr.net; in cma_new_conn_id() local
2122 struct vnet *vnet = listen_id->route.addr.dev_addr.net; in cma_new_udp_id() local
3078 struct vnet *vnet = id->route.addr.dev_addr.net; in rdma_resolve_addr() local
3261 struct vnet *vnet; in cma_check_port() local
[all …]
/freebsd-14.2/tests/sys/netinet/
H A Dcarp.py3 from atf_python.sys.net.vnet import VnetTestTemplate
45 if1 = self.vnet.iface_alias_map["if1"]
/freebsd-14.2/sys/netipsec/
H A Dxform.h78 struct vnet *vnet; member
/freebsd-14.2/tests/sys/common/
H A Dvnet.subr86 vnet_interfaces="${vnet_interfaces} vnet.interface=${ifname}"
89 jail -c name=${jailname} persist vnet ${vnet_interfaces}
99 ifconfig ${ifname} vnet ${jailname}

1234567