Lines Matching refs:ifname
305 i_ipadm_get_index(ipadm_handle_t iph, const char *ifname, sa_family_t af, in i_ipadm_get_index() argument
312 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in i_ipadm_get_index()
476 i_ipadm_is_loopback(const char *ifname) in i_ipadm_is_loopback() argument
480 return (strncmp(ifname, LOOPBACK_IF, len) == 0 && in i_ipadm_is_loopback()
481 (ifname[len] == '\0' || ifname[len] == IPADM_LOGICAL_SEP)); in i_ipadm_is_loopback()
493 i_ipadm_is_vni(const char *ifname) in i_ipadm_is_vni() argument
497 return (ifparse_ifspec(ifname, &ifsp) && in i_ipadm_is_vni()
505 i_ipadm_is_6to4(ipadm_handle_t iph, char *ifname) in i_ipadm_is_6to4() argument
516 dlstatus = dladm_name2info(iph->iph_dlh, ifname, &linkid, NULL, in i_ipadm_is_6to4()
535 ipadm_if_enabled(ipadm_handle_t iph, const char *ifname, sa_family_t af) in ipadm_if_enabled() argument
542 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name)); in ipadm_if_enabled()
569 char *protostr = NULL, *ifname = NULL, *pval = NULL; in i_ipadm_init_ifprop() local
577 if ((err = nvpair_value_string(nvp, &ifname)) != 0) in i_ipadm_init_ifprop()
592 return (ipadm_set_ifprop(iph, ifname, pname, pval, proto, in i_ipadm_init_ifprop()
605 char *aobjname = NULL, *pval = NULL, *ifname = NULL; in i_ipadm_init_addrobj() local
615 if ((err = nvpair_value_string(nvp, &ifname)) != 0) in i_ipadm_init_addrobj()
633 status = i_ipadm_enable_static(iph, ifname, nvl, af); in i_ipadm_init_addrobj()
636 status = i_ipadm_enable_dhcp(iph, ifname, nvl); in i_ipadm_init_addrobj()
641 status = i_ipadm_enable_addrconf(iph, ifname, nvl); in i_ipadm_init_addrobj()
659 i_ipadm_init_ifobj(ipadm_handle_t iph, const char *ifname, nvlist_t *ifnvl) in i_ipadm_init_ifobj() argument
673 (void) strlcpy(newifname, ifname, sizeof (newifname)); in i_ipadm_init_ifobj()
851 i_ipadm_validate_ifname(ipadm_handle_t iph, const char *ifname) in i_ipadm_validate_ifname() argument
855 if (ifname == NULL || ifname[0] == '\0' || in i_ipadm_validate_ifname()
856 !ifparse_ifspec(ifname, &ifsp)) in i_ipadm_validate_ifname()