/freebsd/contrib/wpa/src/drivers/ |
H A D | linux_ioctl.c | 28 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_set_iface_flags() 68 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_iface_up() 86 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_get_ifhwaddr() 109 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_set_ifhwaddr() 160 os_strlcpy(ifr.ifr_name, brname, IFNAMSIZ); in linux_br_add_if() 164 char in_br[IFNAMSIZ]; in linux_br_add_if() 194 os_strlcpy(ifr.ifr_name, brname, IFNAMSIZ); in linux_br_del_if() 221 os_strlcpy(brname, pos, IFNAMSIZ); in linux_br_get() 244 os_strlcpy(master_ifname, pos, IFNAMSIZ); in linux_master_get()
|
H A D | driver_wired_common.c | 45 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in driver_wired_get_ifflags() 70 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in driver_wired_set_ifflags() 99 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in driver_wired_multi() 203 os_strlcpy(ifmr.ifm_name, ifname, IFNAMSIZ); in driver_wired_get_ifstatus()
|
H A D | driver_wext.h | 19 char ifname[IFNAMSIZ + 1]; 40 char mlmedev[IFNAMSIZ + 1];
|
/freebsd/sys/net/ |
H A D | if.h | 55 #define IFNAMSIZ IF_NAMESIZE macro 427 char ifan_name[IFNAMSIZ]; /* if name, e.g. "en0" */ 458 char ifr_name[IFNAMSIZ]; /* if name, e.g. "en0" */ 508 char ifra_name[IFNAMSIZ]; /* if name, e.g. "en0" */ 517 char ifra_name[IFNAMSIZ]; 524 char ifm_name[IFNAMSIZ]; /* if name, e.g. "en0" */ 534 char ifd_name[IFNAMSIZ]; /* if name, e.g. "en0" */ 549 char ifs_name[IFNAMSIZ]; /* if name, e.g. "en0" */ 579 char ifgrqu_group[IFNAMSIZ]; 580 char ifgrqu_member[IFNAMSIZ]; [all …]
|
H A D | if_lagg.h | 124 char rp_ifname[IFNAMSIZ]; /* name of the lagg */ 125 char rp_portname[IFNAMSIZ]; /* name of the port */ 140 char ra_ifname[IFNAMSIZ]; /* name of the lagg */ 156 char rf_ifname[IFNAMSIZ]; /* name of the lagg */ 164 char ro_ifname[IFNAMSIZ]; /* name of the lagg */ 207 char ifr_name[IFNAMSIZ];
|
H A D | if_pfsync.h | 138 char ifname[IFNAMSIZ]; 251 char pfsyncr_syncdev[IFNAMSIZ]; 260 char syncdev[IFNAMSIZ];
|
H A D | if_clone.c | 58 #define IFCLOSIZ (IFNAMSIZ - 5) 386 char name[IFNAMSIZ]; in if_clone_createif_nl() 650 char name[IFNAMSIZ]; in if_clone_simple() 654 snprintf(name, IFNAMSIZ, "%s%d", ifc->ifc_name, unit); in if_clone_simple() 724 outbuf = malloc(IFNAMSIZ*buf_count, M_CLONE, M_WAITOK | M_ZERO); in if_clone_list() 738 ifc = LIST_NEXT(ifc, ifc_list), count--, buf += IFNAMSIZ) { in if_clone_list() 739 strlcpy(buf, ifc->ifc_name, IFNAMSIZ); in if_clone_list() 745 err = copyout(outbuf, dst, buf_count*IFNAMSIZ); 832 char name[IFNAMSIZ]; in ifc_alloc_unit_specific() 840 snprintf(name, IFNAMSIZ, " in ifc_alloc_unit_specific() [all...] |
H A D | netmap_legacy.h | 151 char nr_name[IFNAMSIZ]; 242 char nifr_name[IFNAMSIZ];
|
/freebsd/sbin/ifconfig/ |
H A D | ifgroup.c | 50 strlcpy(ifgr.ifgr_name, ctx->ifname, IFNAMSIZ); in setifgroup() 55 if (strlcpy(ifgr.ifgr_group, group_name, IFNAMSIZ) >= IFNAMSIZ) in setifgroup() 66 strlcpy(ifgr.ifgr_name, ctx->ifname, IFNAMSIZ); in unsetifgroup() 71 if (strlcpy(ifgr.ifgr_group, group_name, IFNAMSIZ) >= IFNAMSIZ) in unsetifgroup()
|
H A D | ifclone.c | 62 name < cloners + cloners_count * IFNAMSIZ; in list_cloners() 63 name += IFNAMSIZ) { in list_cloners() 74 char ifprefix[IFNAMSIZ]; 91 strlcpy(dcp->ifprefix, ifprefix, IFNAMSIZ-1); in clone_setdefcallback_prefix()
|
H A D | ifvlan.c | 110 char ifname[IFNAMSIZ]; in vlan_parse_ethervid() 114 strlcpy(ifname, name, IFNAMSIZ); in vlan_parse_ethervid() 143 strlcpy(params.vlr_parent, ifname, IFNAMSIZ); in vlan_parse_ethervid() 210 strlcpy(params.vlr_parent, vreq.vlr_parent, IFNAMSIZ); in setvlantag() 252 strlcpy(params.vlr_parent, vreq.vlr_parent, IFNAMSIZ); in setvlanproto()
|
/freebsd/tests/sys/net/if_ovpn/ |
H A D | if_ovpn_c.c | 33 static char ovpn_ifname[IFNAMSIZ]; 45 snprintf(ifr.ifr_name, IFNAMSIZ, "ovpn"); in create_interface() 50 snprintf(ovpn_ifname, IFNAMSIZ, "%s", ifr.ifr_name); in create_interface() 68 snprintf(ifr.ifr_name, IFNAMSIZ, "%s", ovpn_ifname); in destroy_interface() 115 snprintf(drv.ifd_name, IFNAMSIZ, "%s", ovpn_ifname); in ATF_TC_BODY()
|
/freebsd/contrib/ntp/include/ |
H A D | ntif.h | 67 #define IFNAMSIZ 16 macro 68 char ifr_name[IFNAMSIZ]; /* if name, e.g. "en0" */ 70 char nt_mask[IFNAMSIZ]; /* new field to store mask returned from nt lookup l. kahn */
|
/freebsd/tools/tools/net80211/wlanwds/ |
H A D | wlanwds.c | 78 char ifname[IFNAMSIZ]; /* vap interface name */ 187 getparent(const char *ifname, char parent[IFNAMSIZ+1]) in getparent() 194 parentlen = IFNAMSIZ; in getparent() 337 char ifname[IFNAMSIZ+1]; in scanforvaps() 348 strlcpy(p->ifname, ifname, IFNAMSIZ); in scanforvaps() 508 if (strncmp(p->ifname, ifname, IFNAMSIZ) == 0) in wds_destroy() 550 strncpy(cp.icp_parent, parent, IFNAMSIZ); in wds_vap_create() 569 strncpy(ifr.ifr_name, "wlan", IFNAMSIZ); in wds_vap_create() 576 strlcpy(p->ifname, ifr.ifr_name, IFNAMSIZ); in wds_vap_create() 603 strncpy(ifr.i_name, ifname, IFNAMSIZ); in wds_vap_destroy()
|
/freebsd/usr.sbin/flowctl/ |
H A D | flowctl.c | 269 char src_if[IFNAMSIZ], dst_if[IFNAMSIZ]; in flow_cache_print() 303 char src_if[IFNAMSIZ], dst_if[IFNAMSIZ]; in flow_cache_print6() 337 char src_if[IFNAMSIZ], dst_if[IFNAMSIZ]; in flow_cache_print_verbose() 380 char src_if[IFNAMSIZ], dst_if[IFNAMSIZ]; in flow_cache_print6_verbose()
|
/freebsd/contrib/wpa/src/ap/ |
H A D | vlan_full.c | 40 char ifname[IFNAMSIZ + 1]; 326 os_strlcpy(ifr.ifr_name, br_name, IFNAMSIZ); in br_addbr() 391 char vlan_ifname[IFNAMSIZ]; in vlan_newlink_tagged() 427 os_strlcpy(br_name, vlan->bridge, IFNAMSIZ); in vlan_bridge_name() 430 ret = os_snprintf(br_name, IFNAMSIZ, "%s%d", in vlan_bridge_name() 433 ret = os_snprintf(br_name, IFNAMSIZ, "br%s.%d", in vlan_bridge_name() 436 ret = os_snprintf(br_name, IFNAMSIZ, "brvlan%d", vid); in vlan_bridge_name() 438 if (ret >= IFNAMSIZ) in vlan_bridge_name() 463 char br_name[IFNAMSIZ]; in vlan_newlink() 517 char vlan_ifname[IFNAMSIZ]; in vlan_dellink_tagged() [all …]
|
/freebsd/lib/libpfctl/ |
H A D | libpfctl.h | 56 char ifname[IFNAMSIZ]; 94 char ifname[IFNAMSIZ]; 115 char bridge_to[IFNAMSIZ]; 168 char ifname[IFNAMSIZ]; 223 char rcv_ifname[IFNAMSIZ]; 311 char ifname[IFNAMSIZ]; 347 char ifname[IFNAMSIZ]; 348 char orig_ifname[IFNAMSIZ]; 367 char rt_ifname[IFNAMSIZ]; 466 char ifname[IFNAMSIZ];
|
/freebsd/usr.sbin/bsnmpd/modules/snmp_bridge/ |
H A D | bridge_snmp.c | 75 static char bif_default_name[IFNAMSIZ] = "bridge0"; 117 if (len >= IFNAMSIZ) in bridge_set_default_name() 154 if ((ctx->scratch->int1 = strlen(bridge_default)) >= IFNAMSIZ) in bridge_default_name_save() 157 if ((ctx->scratch->ptr1 = malloc(IFNAMSIZ)) == NULL) in bridge_default_name_save()
|
H A D | bridge_sys.c | 139 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_get_conf_param() 226 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_get_op_param() 285 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_set_priority() 328 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_set_maxage() 350 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_set_hello_time() 372 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_set_forward_delay() 394 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_set_aging_time() 416 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_set_max_cache() 441 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_set_tx_hold_count() 463 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); in bridge_set_stp_version() [all …]
|
/freebsd/usr.sbin/rtadvctl/ |
H A D | rtadvctl.c | 309 char argv_disable[IFNAMSIZ + sizeof(":disable=")]; in action_disable() 330 char argv_enable[IFNAMSIZ + sizeof(":enable=")]; in action_enable() 351 char argv_reload[IFNAMSIZ + sizeof(":reload=")]; in action_reload() 410 char argv_ifi[IFNAMSIZ + sizeof(":ifi=")]; in action_show() 411 char argv_rai[IFNAMSIZ + sizeof(":rai=")]; in action_show() 412 char argv_rti[IFNAMSIZ + sizeof(":rti=")]; in action_show() 413 char argv_pfx[IFNAMSIZ + sizeof(":pfx=")]; in action_show() 414 char argv_ifi_ra_timer[IFNAMSIZ + sizeof(":ifi_ra_timer=")]; in action_show() 415 char argv_rdnss[IFNAMSIZ + sizeof(":rdnss=")]; in action_show() 416 char argv_dnssl[IFNAMSIZ in action_show() [all...] |
/freebsd/contrib/wireguard-tools/ |
H A D | set.c | 28 strncpy(device->name, argv[1], IFNAMSIZ - 1); in set_main() 29 device->name[IFNAMSIZ - 1] = '\0'; in set_main()
|
/freebsd/lib/libc/net/ |
H A D | linkaddr.c | 122 _Static_assert(sizeof(obuf) >= IFNAMSIZ + 20, "obuf is too small"); in link_ntoa() 127 namelen = (sdl->sdl_nlen <= IFNAMSIZ) ? sdl->sdl_nlen : IFNAMSIZ; in link_ntoa()
|
/freebsd/sys/netpfil/pf/ |
H A D | pf_altq.h | 121 char ifname[IFNAMSIZ]; 159 char ifname[IFNAMSIZ]; 194 char ifname[IFNAMSIZ];
|
H A D | pf.h | 254 char pfik_name[IFNAMSIZ]; 258 char pfik_name[IFNAMSIZ]; 286 char ifname[IFNAMSIZ]; 315 char ifname[IFNAMSIZ]; 353 char ifname[IFNAMSIZ]; 502 char ifname[IFNAMSIZ];
|
/freebsd/contrib/netbsd-tests/net/icmp/ |
H A D | t_ping.c | 68 char ifname[IFNAMSIZ]; in ATF_TC_BODY() 206 char ifname[IFNAMSIZ]; in ATF_TC_BODY() 242 char ifname[IFNAMSIZ]; in ATF_TC_BODY() 275 char ifname[IFNAMSIZ]; in ATF_TC_BODY() 328 char ifname[IFNAMSIZ]; in ATF_TC_BODY()
|