Lines Matching refs:ifname
131 i_ipadm_init_addr(ipadm_addrobj_t ipaddr, const char *ifname,
135 (void) strlcpy(ipaddr->ipadm_ifname, ifname,
310 ipadm_add_aobjname(ipadm_handle_t iph, const char *ifname, sa_family_t af,
317 (void) strlcpy(larg.ia_ifname, ifname, sizeof (larg.ia_ifname));
333 ipadm_delete_aobjname(ipadm_handle_t iph, const char *ifname, sa_family_t af,
338 i_ipadm_init_addr(&aobj, ifname, aobjname, atype);
349 i_ipadm_active_addr_info(ipadm_handle_t iph, const char *ifname,
384 if (ifname != NULL && strcmp(cifname, ifname) != 0)
682 char *ifname = NULL;
702 err = nvpair_value_string(nvp, &ifname);
718 if (ifa->ifa_name == NULL && (ifa->ifa_name = strdup(ifname)) == NULL)
789 i_ipadm_get_all_addr_info(ipadm_handle_t iph, const char *ifname,
802 status = i_ipadm_active_addr_info(iph, ifname, &ainfo, ipadm_flags,
808 status = i_ipadm_get_db_addr(iph, ifname, NULL, &onvl);
817 * if one was provided in `ifname'.
819 if (ainfo == NULL && ifname != NULL)
1974 * `ifname'. If a hostname is present, it is resolved before the address
1978 i_ipadm_enable_static(ipadm_handle_t iph, const char *ifname, nvlist_t *nvl,
2026 i_ipadm_init_addr(&ipaddr, ifname, aobjname, IPADM_ADDR_STATIC);
2047 * Creates a dhcp address on the interface `ifname' based on the
2051 i_ipadm_enable_dhcp(ipadm_handle_t iph, const char *ifname, nvlist_t *nvl)
2085 i_ipadm_init_addr(&ipaddr, ifname, aobjname, IPADM_ADDR_DHCP);
2096 * Creates auto-configured addresses on the interface `ifname' based on
2100 i_ipadm_enable_addrconf(ipadm_handle_t iph, const char *ifname, nvlist_t *nvl)
2139 i_ipadm_init_addr(&ipaddr, ifname, aobjname, IPADM_ADDR_IPV6_ADDRCONF);
2152 * is of the form `<ifname>/<addressname>'.
2154 * The caller has to minimally provide <ifname>. If <addressname> is not
2164 char ifname[IPADM_AOBJSIZ];
2174 if (strlcpy(ifname, aobjname, IPADM_AOBJSIZ) >= IPADM_AOBJSIZ)
2177 if ((aname = strchr(ifname, '/')) != NULL)
2181 if (!ifparse_ifspec(ifname, &ifsp))
2192 * If the ifname has logical interface number, extract it and assign
2199 cp = strchr(ifname, IPADM_LOGICAL_SEP);
2202 (void) strlcpy(newaddr->ipadm_ifname, ifname,
2207 sizeof (newaddr->ipadm_aobjname), "%s/%s", ifname, aname);
2290 i_ipadm_addr_exists_on_if(ipadm_handle_t iph, const char *ifname,
2302 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name));
2359 * when both `ifname' and `aobjname' are NULL. If an `ifname' is provided,
2360 * it returns all the addresses for the given interface `ifname'.
2365 i_ipadm_get_db_addr(ipadm_handle_t iph, const char *ifname,
2380 if (ifname != NULL)
2381 (void) strlcpy(garg.ia_ifname, ifname, sizeof (garg.ia_ifname));
2397 * interface represented by 'ifname' after doing the required validation.
2421 char *ifname = addr->ipadm_ifname;
2488 is_6to4 = i_ipadm_is_6to4(iph, ifname);
2490 status = i_ipadm_create_if(iph, ifname, af, flags);
2499 status = i_ipadm_create_if(iph, ifname, other_af, flags);
2501 (void) i_ipadm_delete_if(iph, ifname, af, flags);
2516 status = i_ipadm_get_flags(iph, ifname, af, &ifflags);
2602 (void) i_ipadm_delete_if(iph, ifname,
2606 (void) i_ipadm_delete_if(iph, ifname,
2950 char ifname[LIFNAMSIZ];
2955 bzero(&ifname, sizeof (ifname));
2956 i_ipadm_addrobj2lifname(addr, ifname, sizeof (ifname));
2959 request = dhcp_ipc_alloc_request(type, ifname, NULL, 0, DHCP_TYPE_NONE);
3003 ipadm_addr_info(ipadm_handle_t iph, const char *ifname,
3010 if (ifname != NULL &&
3011 (!ifparse_ifspec(ifname, &ifsp) || ifsp.ifsp_lunvalid)) {
3014 return (i_ipadm_get_all_addr_info(iph, ifname, addrinfo,
3402 char *ifname;
3424 ifname = ipaddr->ipadm_ifname;
3426 if (i_ipadm_is_ipmp(iph, ifname) || i_ipadm_is_under_ipmp(iph, ifname))
3430 af_exists = ipadm_if_enabled(iph, ifname, af);
3439 other_af_exists = ipadm_if_enabled(iph, ifname, other_af);
3448 status = i_ipadm_if_pexists(iph, ifname, af, &p_exists);
3462 status = i_ipadm_get_flags(iph, ifname, af, &ifflags);
3468 islo = i_ipadm_is_loopback(ifname);
3469 isvni = i_ipadm_is_vni(ifname);
3485 i_ipadm_is_6to4(iph, ifname)) {