Home
last modified time | relevance | path

Searched refs:if_name (Results 1 – 25 of 135) sorted by relevance

123456

/freebsd/contrib/wpa/src/ap/
H A Dvlan_ioctl.c19 int vlan_rem(const char *if_name) in vlan_rem() argument
24 wpa_printf(MSG_DEBUG, "VLAN: vlan_rem(%s)", if_name); in vlan_rem()
25 if ((os_strlen(if_name) + 1) > sizeof(if_request.device1)) { in vlan_rem()
27 if_name); in vlan_rem()
39 os_strlcpy(if_request.device1, if_name, sizeof(if_request.device1)); in vlan_rem()
44 "%s", __func__, if_name, strerror(errno)); in vlan_rem()
62 int vlan_add(const char *if_name, int vid, const char *vlan_if_name) in vlan_add() argument
68 if_name, vid); in vlan_add()
69 ifconfig_up(if_name); in vlan_add()
71 if ((os_strlen(if_name) + 1) > sizeof(if_request.device1)) { in vlan_add()
[all …]
H A Dvlan_util.c24 int vlan_add(const char *if_name, int vid, const char *vlan_if_name) in vlan_add() argument
32 "vlan_if_name=%s)", if_name, vid, vlan_if_name); in vlan_add()
34 if ((os_strlen(if_name) + 1) > IFNAMSIZ) { in vlan_add()
36 if_name); in vlan_add()
59 err = rtnl_link_get_kernel(handle, 0, if_name, &rlink); in vlan_add()
63 if_name); in vlan_add()
108 vlan_if_name, vid, if_name, if_idx, in vlan_add()
124 int vlan_rem(const char *if_name) in vlan_rem() argument
130 wpa_printf(MSG_DEBUG, "VLAN: vlan_rem(if_name=%s)", if_name); in vlan_rem()
145 err = rtnl_link_get_kernel(handle, 0, if_name, &rlink); in vlan_rem()
[all …]
H A Dvlan_ifconfig.c19 int ifconfig_helper(const char *if_name, int up) in ifconfig_helper() argument
31 os_strlcpy(ifr.ifr_name, if_name, IFNAMSIZ); in ifconfig_helper()
36 __func__, if_name, strerror(errno)); in ifconfig_helper()
49 __func__, if_name, up, strerror(errno)); in ifconfig_helper()
59 int ifconfig_up(const char *if_name) in ifconfig_up() argument
61 wpa_printf(MSG_DEBUG, "VLAN: Set interface %s up", if_name); in ifconfig_up()
62 return ifconfig_helper(if_name, 1); in ifconfig_up()
H A Dvlan_util.h16 int vlan_add(const char *if_name, int vid, const char *vlan_if_name);
17 int vlan_rem(const char *if_name);
20 int ifconfig_helper(const char *if_name, int up);
21 int ifconfig_up(const char *if_name);
H A Dvlan_full.c120 static int ifconfig_down(const char *if_name) in ifconfig_down() argument
122 wpa_printf(MSG_DEBUG, "VLAN: Set interface %s down", if_name); in ifconfig_down()
123 return ifconfig_helper(if_name, 0); in ifconfig_down()
133 static int br_delif(const char *br_name, const char *if_name) in br_delif() argument
140 wpa_printf(MSG_DEBUG, "VLAN: br_delif(%s, %s)", br_name, if_name); in br_delif()
147 if (linux_br_del_if(fd, br_name, if_name) == 0) in br_delif()
150 if_index = if_nametoindex(if_name); in br_delif()
155 __func__, if_name); in br_delif()
170 "%s", __func__, br_name, if_name, strerror(errno)); in br_delif()
188 static int br_addif(const char *br_name, const char *if_name) in br_addif() argument
[all …]
/freebsd/contrib/hyperv/tools/
H A Dhv_kvp_daemon.c572 kvp_if_name_to_mac(char *if_name) in kvp_if_name_to_mac() argument
587 (strcmp(ifaddrs_ptr->ifa_name, if_name) == 0)) { in kvp_if_name_to_mac()
605 char *if_name = NULL; in kvp_mac_to_if_name() local
626 if_name = strdup(ifaddrs_ptr->ifa_name); in kvp_mac_to_if_name()
636 return (if_name); in kvp_mac_to_if_name()
676 kvp_get_ipconfig_info(char *if_name, struct hv_kvp_ipaddr_value *buffer) in kvp_get_ipconfig_info() argument
686 snprintf(cmd, sizeof(cmd), "netstat -rn | grep %s | awk '/default/ {print $2 }'", if_name); in kvp_get_ipconfig_info()
696 snprintf(cmd, sizeof(cmd), "netstat -rn inet6 | grep %s | awk '/default/ {print $2 }'", if_name); in kvp_get_ipconfig_info()
732 "sh /usr/libexec/hyperv/hv_get_dhcp_info", if_name); in kvp_get_ipconfig_info()
808 kvp_get_ip_info(int family, char *if_name, int op, in kvp_get_ip_info() argument
[all …]
/freebsd/sys/netinet6/
H A Din6_ifattach.c366 if_name(ifp0))); in get_ifid()
373 if_name(ifp0), if_name(altifp))); in get_ifid()
391 if_name(ifp0), if_name(ifp))); in get_ifid()
400 if_name(ifp0))); in get_ifid()
404 printf("%s: failed to get interface identifier\n", if_name(ifp0)); in get_ifid()
409 if_name(ifp0), in6->s6_addr[8], in6->s6_addr[9], in6->s6_addr[10], in get_ifid()
444 "%s: no ifid available\n", if_name(ifp))); in in6_ifattach_linklocal()
473 if_name(ifp), error)); in in6_ifattach_linklocal()
486 "disappeared\n", __func__, if_name(ifp))); in in6_ifattach_linklocal()
562 if_name(ifp), error)); in in6_ifattach_loopback()
[all …]
H A Dmld6.c471 CTR3(KTR_MLD, "%s: called for ifp %p(%s)", __func__, ifp, if_name(ifp)); in mld_domifattach()
514 if_name(ifp)); in mld_ifdetach()
561 __func__, ifp, if_name(ifp)); in mld_domifdetach()
574 __func__, ifp, if_name(ifp)); in mli_delete_locked()
620 ifp, if_name(ifp)); in mld_v1_input_query()
631 ifp, if_name(ifp)); in mld_v1_input_query()
679 ifp, if_name(ifp)); in mld_v1_input_query()
696 ifp, if_name(ifp)); in mld_v1_input_query()
733 if_name(inm->in6m_ifp), timer); in mld_v1_update_group()
796 ifp, if_name(ifp)); in mld_v2_input_query()
[all …]
H A Dip6_forward.c122 if_name(m->m_pkthdr.rcvif)); in ip6_forward()
231 if_name(m->m_pkthdr.rcvif), if_name(nh->nh_ifp)); in ip6_forward()
303 ip6->ip6_nxt, if_name(m->m_pkthdr.rcvif), in ip6_forward()
304 if_name(nh->nh_ifp)); in ip6_forward()
H A Dnd6_nbr.c153 ip6_sprintf(ip6bufd, &ip6->ip6_dst), if_name(ifp))); in nd6_ns_input()
689 ip6_sprintf(ip6bufd, &ip6->ip6_dst), if_name(ifp))); in nd6_na_input()
1319 ifa->ifa_ifp ? if_name(ifa->ifa_ifp) : "???"); in nd6_dad_start()
1327 nd6log((LOG_DEBUG, "%s: starting DAD for %s\n", if_name(ifa->ifa_ifp), in nd6_dad_start()
1401 ifa->ifa_ifp ? if_name(ifa->ifa_ifp) : "???"); in nd6_dad_timer()
1408 ifa->ifa_ifp ? if_name(ifa->ifa_ifp) : "???"); in nd6_dad_timer()
1418 if_name(ifa->ifa_ifp))); in nd6_dad_timer()
1450 if_name(ifa->ifa_ifp), in nd6_dad_timer()
1475 if_name(ifa->ifa_ifp), in nd6_dad_timer()
1481 if_name(ifa->ifa_ifp), in nd6_dad_timer()
[all …]
H A Dnd6_rtr.c187 ip6_sprintf(ip6bufd, &ip6->ip6_dst), if_name(ifp))); in nd6_rs_input()
387 ip6_sprintf(ip6bufd, &ip6->ip6_dst), if_name(ifp))); in nd6_ra_input()
463 if_name(ifp), ndi->chlim, nd_ra->nd_ra_curhoplimit); in nd6_ra_input()
1228 __func__, if_name(ifp), prefixlen, 128 - plen0)); in in6_ifadd()
1283 if_name(ifp), error)); in in6_ifadd()
1389 pr->ndpr_plen, if_name(pr->ndpr_ifp), error)); in nd6_prelist_add()
1447 pr->ndpr_plen, if_name(pr->ndpr_ifp), e)); in nd6_prefix_del()
1522 pr->ndpr_plen, if_name(pr->ndpr_ifp), in prelist_update()
1542 new->ndpr_plen, if_name(new->ndpr_ifp), error)); in prelist_update()
1733 if_name(ifp)); in prelist_update()
[all …]
/freebsd/cddl/usr.sbin/dwatch/libexec/
H A Dip23 this string if_name;
49 this->if_name = args[3]->if_name;
63 this->if_name,
/freebsd/sys/netipsec/
H A Dipsec_offload.c266 if_name(ifp)); in ipsec_accel_sa_install_match()
284 if_name(ifp), ifp->if_ipsec_accel_m->if_sa_newkey, in ipsec_accel_sa_newkey_cb()
289 strcmp(tq->sav->accel_ifname, if_name(ifp)) != 0) { in ipsec_accel_sa_newkey_cb()
297 "drv_spi if %s spi %#x\n", if_name(ifp), in ipsec_accel_sa_newkey_cb()
307 if_name(ifp), be32toh(tq->sav->spi)); in ipsec_accel_sa_newkey_cb()
314 error, if_name(ifp), be32toh(tq->sav->spi)); in ipsec_accel_sa_newkey_cb()
324 if_name(ifp), be32toh(tq->sav->spi)); in ipsec_accel_sa_newkey_cb()
459 if_name(ifp), sav, be32toh(sav->spi), i->flags); in ipsec_accel_forget_handle_sav()
635 strcmp(sp->accel_ifname, if_name(ifp)) != 0) in ipsec_accel_spdadd_match()
653 if_name(ifp), ifp->if_ipsec_accel_m->if_spdadd, sp, inp); in ipsec_accel_spdadd_cb()
[all …]
/freebsd/contrib/wpa/hostapd/
H A Dmain.c358 hostapd_interface_init(struct hapd_interfaces *interfaces, const char *if_name, in hostapd_interface_init() argument
369 if (if_name) { in hostapd_interface_init()
370 os_strlcpy(iface->conf->bss[0]->iface, if_name, in hostapd_interface_init()
663 char *if_name, *tmp, **nnames; in hostapd_get_interface_names() local
668 if_name = strtok_r(arg, ",", &tmp); in hostapd_get_interface_names()
670 while (if_name) { in hostapd_get_interface_names()
677 (*if_names)[*if_names_size] = os_strdup(if_name); in hostapd_get_interface_names()
681 if_name = strtok_r(NULL, ",", &tmp); in hostapd_get_interface_names()
949 char *if_name = NULL; in main() local
952 if_name = if_names[i]; in main()
[all …]
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_nat.c93 char if_name[IF_NAMESIZE]; /* interface name */ member
120 if (strncmp(ptr->if_name, ifp->if_xname, IF_NAMESIZE) != 0) in ifaddr_change()
534 strlcpy(ptr->if_name, ucfg->if_name, sizeof(ptr->if_name)); in nat44_config()
667 strlcpy(ucfg->if_name, ptr->if_name, sizeof(ucfg->if_name)); in export_nat_cfg()
922 char if_name[IF_NAMESIZE]; member
961 strlcpy(ucfg->if_name, cfg->if_name, sizeof(ucfg->if_name)); in ipfw_nat_cfg()
1070 strlcpy(ucfg->if_name, n->if_name, sizeof(ucfg->if_name)); in ipfw_nat_get_cfg()
/freebsd/sys/security/mac_ipacl/
H A Dmac_ipacl.c121 char if_name[IFNAMSIZ]; member
186 strlcpy(rule->if_name, tok, strlen(tok) + 1); in parse_rule_element()
346 if (strcmp(rule->if_name, "\0") && in rules_check()
347 strcmp(rule->if_name, if_name(ifp))) in rules_check()
/freebsd/sbin/ipf/ipftest/
H A Dip_fil.c136 sprintf(fname, "/tmp/%s%d", ifp->if_name, ifp->if_unit);
298 ifp->if_name = (char *)malloc(s - name + 1);
299 (void) strncpy(ifp->if_name, name, s - name);
300 ifp->if_name[s - name] = '\0';
302 ifp->if_name = strdup(name);
326 sprintf(ifname, "%s%d", ifp->if_name, ifp->if_unit);
328 strcpy(ifname, ifp->if_name);
357 sprintf(fname, "/tmp/%s%d", ifp->if_name, ifp->if_unit); in init_ifp()
/freebsd/lib/libc/net/
H A Dif_nameindex.c126 ifni2->if_name = cp; in if_nameindex()
136 ifni2->if_name = NULL; in if_nameindex()
/freebsd/sys/netlink/route/
H A Diface.c128 if_name(ifp), error); in get_operstate_ether()
296 NL_LOG(LOG_DEBUG3, "dumping interface %s data", if_name(ifp)); in dump_iface()
315 nlattr_add_string(nw, IFLA_IFNAME, if_name(ifp)); in dump_iface()
370 NL_LOG(LOG_DEBUG, "unable to dump interface %s state (ENOMEM)", if_name(ifp)); in dump_iface()
427 if (attrs->ifla_ifname != NULL && strcmp(attrs->ifla_ifname, if_name(ifp))) in match_iface()
551 NLP_LOG(LOG_DEBUG3, nlp, "mapped ifindex %u to %s", attrs.ifi_index, if_name(ifp)); in rtnl_handle_dellink()
554 error = if_clone_destroy(if_name(ifp)); in rtnl_handle_dellink()
557 NLP_LOG(LOG_DEBUG2, nlp, "deleting interface %s returned %d", if_name(ifp), error); in rtnl_handle_dellink()
963 ifa, rib_print_family(sa->sa_family), sa->sa_family, if_name(ifp)); in dump_iface_addr()
993 nlattr_add_string(nw, IFA_LABEL, if_name(ifp)); in dump_iface_addr()
[all …]
H A Diface_drivers.c122 int ifname_len = strlen(if_name(ifp)); in _nl_store_ifp_cookie()
141 strlcpy(NLA_DATA(nla), if_name(ifp), ifname_len + 1); in _nl_store_ifp_cookie()
/freebsd/sbin/ipfw/
H A Dnptv6.c230 if (strlen(*av) >= sizeof(cfg->if_name)) in nptv6_create()
234 strncpy(cfg->if_name, *av, sizeof(cfg->if_name)); in nptv6_create()
368 printf("ext_if %s ", cfg->if_name); in nptv6_show_cb()
/freebsd/sys/netinet/
H A Dip_carp.c540 if_name(m->m_pkthdr.rcvif)); in carp_input()
566 vh->vrrp_version, if_name(m->m_pkthdr.rcvif)); in carp_input()
577 if_name(m->m_pkthdr.rcvif)); in carp_input()
600 if_name(m->m_pkthdr.rcvif)); in carp_input()
645 __func__, if_name(m->m_pkthdr.rcvif)); in carp6_input()
672 vh->vrrp_version, if_name(m->m_pkthdr.rcvif)); in carp6_input()
683 if_name(m->m_pkthdr.rcvif)); in carp6_input()
707 if_name(m->m_pkthdr.rcvif)); in carp6_input()
813 if_name(ifp)); in carp_find_ifa()
850 CARP_DEBUG("%s: invalid version %d\n", if_name(ifp), in carp_input_c()
[all …]
/freebsd/sys/net/
H A Droute.c380 char if_name[IF_NAMESIZE]; in info_get_ifp() local
385 bzero(if_name, sizeof(if_name)); in info_get_ifp()
386 memcpy(if_name, sdl->sdl_data, sdl->sdl_nlen); in info_get_ifp()
387 return (ifunit(if_name)); in info_get_ifp()
/freebsd/contrib/libpcap/
H A Dpcap-dlpi.c1838 char if_name[sizeof(ifnet.if_name) + 1]; local
1868 dlpi_kread(kd, (off_t)ifnet.if_name,
1869 if_name, sizeof(ifnet.if_name), ebuf) < 0) {
1873 if_name[sizeof(ifnet.if_name)] = '\0';
1874 if (strcmp(if_name, ifname) == 0 && ifnet.if_unit == unit) {
/freebsd/sys/dev/hyperv/netvsc/
H A Dif_hn.c1237 devctl_notify("HYPERV_NIC_VF", if_name(hn_ifp), in hn_rxvf_change()
1242 rxvf ? "to" : "from", if_name(ifp)); in hn_rxvf_change()
1292 strlcpy(ifr.ifr_name, if_name(vf_ifp), sizeof(ifr.ifr_name)); in hn_xpnt_vf_iocsetflags()
1458 ("%s: synthetic parts are not attached", if_name(sc->hn_ifp))); in hn_vf_rss_fixup()
1477 strlcpy(ifrk.ifrk_name, if_name(vf_ifp), sizeof(ifrk.ifrk_name)); in hn_vf_rss_fixup()
1481 if_name(vf_ifp), error); in hn_vf_rss_fixup()
1486 if_name(vf_ifp), ifrk.ifrk_func); in hn_vf_rss_fixup()
1491 if_name(vf_ifp), ifrk.ifrk_keylen); in hn_vf_rss_fixup()
1499 strlcpy(ifrh.ifrh_name, if_name(vf_ifp), sizeof(ifrh.ifrh_name)); in hn_vf_rss_fixup()
1503 if_name(vf_if in hn_vf_rss_fixup()
[all...]

123456