/freebsd/sys/net/ |
H A D | vnet.c | 105 struct vnet *vnet0; 215 SDT_PROVIDER_DEFINE(vnet); 216 SDT_PROBE_DEFINE1(vnet, functions, vnet_alloc, entry, "int"); 217 SDT_PROBE_DEFINE2(vnet, functions, vnet_alloc, alloc, "int", 219 SDT_PROBE_DEFINE2(vnet, functions, vnet_alloc, return, 221 SDT_PROBE_DEFINE2(vnet, functions, vnet_destroy, entry, 223 SDT_PROBE_DEFINE1(vnet, functions, vnet_destroy, return, 239 struct vnet * 242 struct vnet *vnet; in vnet_alloc() local 244 SDT_PROBE1(vnet, functions, vnet_alloc, entry, __LINE__); in vnet_alloc() [all …]
|
H A D | vnet.h | 69 struct vnet { struct 70 LIST_ENTRY(vnet) vnet_le; /* all vnets list */ 169 struct vnet *vnet_alloc(void); 170 void vnet_destroy(struct vnet *vnet); 193 void vnet_log_recursion(struct vnet *, const char *, int); 199 struct vnet *saved_vnet = curvnet; \ 224 struct vnet *saved_vnet = curvnet; \ 244 extern struct vnet *vnet0; 256 LIST_HEAD(vnet_list_head, vnet); 269 #define VNET_ITERATOR_DECL(arg) struct vnet *arg [all …]
|
/freebsd/tests/sys/netinet6/ |
H A D | test_ip6_output.py | 13 from atf_python.sys.net.vnet import run_cmd 14 from atf_python.sys.net.vnet import SingleVnetTestTemplate 15 from atf_python.sys.net.vnet import VnetTestTemplate 76 def _vnet2_handler(self, vnet, ip: str, os_ifname: str = None): argument 83 vnet.pipe.send(ll_data) 86 tx_obj["dst_iface_alias"] = vnet.iface_map[tx_obj["dst_iface"]].alias 87 vnet.pipe.send(tx_obj) 91 def vnet2_handler(self, vnet): argument 92 ip = str(vnet.iface_alias_map["if2"].first_ipv6.ip) 93 self._vnet2_handler(vnet, ip, None) [all …]
|
/freebsd/sys/ofed/include/rdma/ |
H A D | ib_addr_freebsd.h | 34 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/tests/sys/netpfil/pf/ |
H A D | icmp.py | 31 from atf_python.sys.net.vnet import VnetTestTemplate 49 def vnet2_handler(self, vnet): argument 50 ifname = vnet.iface_alias_map["if1"].name 51 if2name = vnet.iface_alias_map["if2"].name 65 def vnet3_handler(self, vnet): argument 69 ifname = vnet.iface_alias_map["if2"].name 86 vnet.pipe.send("Got ICMP destination unreachable packet") 91 vnet = self.vnet_map["vnet1"] 93 sendif = vnet.iface_alias_map["if1"].name 138 p = sp.sr1(packet, iface=self.vnet.iface_alias_map["if1"].name,
|
H A D | nat66.py | 35 from atf_python.sys.net.vnet import VnetTestTemplate 59 def vnet2_handler(self, vnet): argument 60 ifname = vnet.iface_alias_map["if1"].name 62 outifname = vnet.iface_alias_map["if2"].name 74 def vnet3_handler(self, vnet): argument 87 packets = sp.sniff(iface=self.vnet.iface_alias_map["if1"].name, 124 packets = sp.sniff(iface=self.vnet.iface_alias_map["if1"].name,
|
H A D | frag6.py | 8 from atf_python.sys.net.vnet import VnetTestTemplate 30 def vnet2_handler(self, vnet): argument 31 ifname = vnet.iface_alias_map["if1"].name 62 packets = sp.sniff(iface=self.vnet.iface_alias_map["if1"].name, 108 def vnet2_handler(self, vnet): argument 139 packets = sp.sniff(iface=self.vnet.iface_alias_map["if1"].name,
|
H A D | sctp.py | 7 from atf_python.sys.net.vnet import VnetTestTemplate 120 def accept(self, vnet): argument 131 # Receive a single message, and inform the other vnet about it. 145 vnet.pipe.send(rcvd) 254 def vnet2_handler(self, vnet): argument 256 ifname = vnet.iface_alias_map["if1"].name 259 # Start an SCTP server process, pipe the ppid + data back to the other vnet? 262 srv.accept(vnet) 305 % self.vnet.iface_alias_map["if1"].name) 513 def vnet2_handler(self, vnet) 437 vnet2_handler(self, vnet) global() argument [all...] |
H A D | nat64.py | 32 from atf_python.sys.net.vnet import VnetTestTemplate 44 def vnet3_handler(self, vnet): argument 86 def vnet2_handler(self, vnet): argument 87 ifname = vnet.iface_alias_map["if1"].name
|
/freebsd/tests/atf_python/sys/net/ |
H A D | vnet.py | 345 def _setup_vnet(self, vnet: VnetInstance, obj_map: Dict, pipe): 350 vnet.attach() 351 print("# setup_vnet({})".format(vnet.name)) 353 vnet.set_pipe(pipe) 358 if not vnet.need_dad: 359 vnet.disable_dad() 360 for iface in vnet.ifaces: 364 idx = iface_map.vnet_aliases.index(vnet.alias) 380 handler = self._get_vnet_handler(vnet.alias) 386 handler(vnet) [all …]
|
/freebsd/tests/examples/ |
H A D | test_examples.py | 4 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/lib/libkvm/ |
H A D | kvm_vnet.c | 63 struct vnet vnet; in _kvm_vnet_selectpid() local 193 if (kvm_read(kd, (uintptr_t)prison.pr_vnet, &vnet, sizeof(vnet)) != in _kvm_vnet_selectpid() 194 sizeof(vnet)) { in _kvm_vnet_selectpid() 198 if (vnet.vnet_magic_n != VNET_MAGIC_N) { in _kvm_vnet_selectpid() 206 kd->vnet_base = vnet.vnet_data_base; in _kvm_vnet_selectpid()
|
/freebsd/tests/sys/net/routing/ |
H A D | test_routing_l3.py | 10 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/sys/dev/wg/ |
H A D | wg_cookie.c | 41 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() 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) 426 struct ratelimit_key key = { .vnet in ratelimit_allow() 231 cookie_checker_validate_macs(struct cookie_checker * cc,struct cookie_macs * macs,void * buf,size_t len,bool check_cookie,struct sockaddr * sa,struct vnet * vnet) cookie_checker_validate_macs() argument 421 ratelimit_allow(struct ratelimit * rl,struct sockaddr * sa,struct vnet * vnet) ratelimit_allow() argument [all...] |
/freebsd/tests/sys/netlink/ |
H A D | test_rtnl_ifaddr.py | 6 from atf_python.sys.net.vnet import SingleVnetTestTemplate 57 ifname = self.vnet.iface_alias_map["if1"].name 63 epair_ifname = self.vnet.iface_alias_map["if1"].name 102 epair_ifname = self.vnet.iface_alias_map["if1"].name 132 epair_ifname = self.vnet.iface_alias_map["if1"].name 154 epair_ifname = self.vnet.iface_alias_map["if1"].name 170 epair_ifname = self.vnet.iface_alias_map["if1"].name 191 iface = self.vnet.iface_alias_map["if1"] 238 iface = self.vnet.iface_alias_map["if1"] 271 iface = self.vnet.iface_alias_map["if1"] [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/net/ |
H A D | ip.h | 45 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/share/examples/jails/ |
H A D | VIMAGE | 23 options VIMAGE # vnet paravirtualization 26 # Netgraph based bridging for vnet jails 38 # if_bridge based bridging for vnet jails
|
H A D | rc.conf.jails | 36 #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)
|
H A D | jail.xxx.conf | 13 vnet; 15 vnet.interface = "ng0_xxx"; # vnet interface(s)
|
/freebsd/tests/sys/netinet/ |
H A D | carp.py | 3 from atf_python.sys.net.vnet import VnetTestTemplate 46 if1 = self.vnet.iface_alias_map["if1"] 60 if1 = self.vnet.iface_alias_map["if1"]
|
/freebsd/tools/regression/ipfw/fwd/ |
H A D | vimage-fwd.sh | 188 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/sys/compat/linsysfs/ |
H A D | linsysfs_net.c | 57 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/usr.sbin/syslogd/tests/ |
H A D | syslogd_test.sh | 351 syslogd_mkjail syslogd_allowed_peer vnet 352 syslogd_mkjail syslogd_client vnet 358 atf_check ifconfig ${epair}a vnet syslogd_allowed_peer 359 atf_check ifconfig ${epair}b vnet syslogd_client 510 syslogd_mkjail syslogd_server vnet 511 atf_check ifconfig ${epair}a vnet syslogd_server 516 syslogd_mkjail syslogd_client vnet 517 atf_check ifconfig ${epair}b vnet syslogd_client
|
/freebsd/contrib/flex/src/ |
H A D | tables.c | 285 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/sys/ddb/ |
H A D | db_sym.c | 260 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()
|