Home
last modified time | relevance | path

Searched refs:iface_name (Results 1 – 3 of 3) sorted by relevance

/freebsd/usr.bin/netstat/
H A Dnhops.c240 char iface_name[128]; in print_nhop_entry_sysctl() local
256 memset(iface_name, 0, sizeof(iface_name)); in print_nhop_entry_sysctl()
258 strlcpy(iface_name, ifmap[nh->ifindex].ifname, in print_nhop_entry_sysctl()
259 sizeof(iface_name)); in print_nhop_entry_sysctl()
260 if (*iface_name == '\0') in print_nhop_entry_sysctl()
261 strlcpy(iface_name, "---", sizeof(iface_name)); in print_nhop_entry_sysctl()
276 snprintf(gw_addr, sizeof(gw_addr), "%s/resolve", iface_name); in print_nhop_entry_sysctl()
279 nhop_map_update(&global_nhop_map, nh->nh_idx, gw_addr, iface_name); in print_nhop_entry_sysctl()
294 xo_emit("{t:interface-name/%*s}", wid_if, iface_name); in print_nhop_entry_sysctl()
296 xo_emit("{t:interface-name/%*.*s}", wid_if, wid_if, iface_name); in print_nhop_entry_sysctl()
[all …]
H A Dnhgrp.c282 char iface_name[128]; in update_global_map() local
290 memset(iface_name, 0, sizeof(iface_name)); in update_global_map()
292 strlcpy(iface_name, ifmap[nh->ifindex].ifname, in update_global_map()
293 sizeof(iface_name)); in update_global_map()
294 if (*iface_name == '\0') in update_global_map()
295 strlcpy(iface_name, "---", sizeof(iface_name)); in update_global_map()
303 snprintf(gw_addr, sizeof(gw_addr), "%s/resolve", iface_name); in update_global_map()
305 nhop_map_update(&global_nhop_map, nh->nh_idx, gw_addr, iface_name); in update_global_map()
/freebsd/tests/atf_python/sys/net/
H A Dvnet.py52 def __init__(self, iface_alias: str, iface_name: str):
53 self.name = iface_name
60 if iface_name.startswith("lo"):
98 def create_iface(cls, alias_name: str, iface_name: str) -> List["VnetInterface"]:
99 name = run_cmd("/sbin/ifconfig {} create".format(iface_name)).rstrip()
101 raise Exception("Unable to create iface {}".format(iface_name))
157 def _register_iface(self, iface_name: str):
159 f.write(iface_name + "\n")
171 def create_iface(self, alias_name: str, iface_name: str) -> List[VnetInterface]:
172 ifaces = VnetInterface.create_iface(alias_name, iface_name)
[all …]