Lines Matching refs:aobjname

149     const char *aobjname, ipadm_addr_type_t atype)
154 (void) strlcpy(ipaddr->ipadm_aobjname, aobjname,
293 char *aobjname = ipaddr->ipadm_aobjname;
303 status = i_ipadm_get_db_addr(iph, NULL, aobjname, &onvl);
309 * this aobjname's entry in the db. Verify that that nvlist contains
371 char *aobjname = ipaddr->ipadm_aobjname;
374 status = i_ipadm_get_db_addr(iph, NULL, aobjname, &onvl);
430 const char *aobjname, ipadm_addr_type_t atype, int lnum)
437 (void) strlcpy(larg.ia_aobjname, aobjname, sizeof (larg.ia_aobjname));
453 const char *aobjname, ipadm_addr_type_t atype, int lnum)
457 i_ipadm_init_addr(&aobj, ifname, aobjname, atype);
823 char *aobjname = NULL;
843 err = nvpair_value_string(nvp, &aobjname);
855 (void) strlcpy(ainfo->ia_aobjname, aobjname,
940 char *aobjname, aprofile[NETCFG_PROFILE_LEN];
1004 &aobjname) != 0)
1007 if (strcmp(curr->ia_aobjname, aobjname) == 0)
1595 * object with name `aobjname'.
1612 uint_t *bufsize, const char *aobjname, uint_t valtype)
1625 if (iph == NULL || pname == NULL || aobjname == NULL ||
1635 * For the given aobjname, get the addrobj it represents and
1638 i_ipadm_init_addr(&ipaddr, "", aobjname, IPADM_ADDR_NONE);
1699 * address object with name `aobjname'.
1703 const char *pval, const char *aobjname, uint_t pflags)
1717 if (iph == NULL || pname == NULL || aobjname == NULL || pflags == 0 ||
1737 * For the given aobjname, get the addrobj it represents and
1740 i_ipadm_init_addr(&ipaddr, "", aobjname, IPADM_ADDR_NONE);
1904 * the rules of an aobjname. This function will be used to validate
1927 i_ipadm_is_user_aobjname_valid(const char *aobjname)
1929 return (i_ipadm_is_aobjname_valid_common(aobjname,
2131 * for the specified aobjname.
2134 ipadm_get_interface_id(ipadm_handle_t iph, const char *aobjname,
2145 if (aobjname == NULL || strlcpy(ipaddr.ipadm_aobjname, aobjname,
2194 /* Get the addrobj for this aobjname */
2314 * for the specified aobjname.
2568 * If the `aobjname' already exists in the daemon's `aobjmap' then
2572 * daemon will generate an `aobjname' for the given `ipaddr'.
2594 /* copy the daemon generated `aobjname' into `ipadddr' */
2645 char *cidraddr, *aobjname = NULL;
2662 err = nvpair_value_string(nvp, &aobjname);
2676 i_ipadm_init_addr(&ipaddr, ifname, aobjname, IPADM_ADDR_STATIC);
2706 char *aobjname;
2715 IPADM_NVP_AOBJNAME, &aobjname)) != 0) {
2722 i_ipadm_init_addr(&ipaddr, ifname, aobjname, IPADM_ADDR_DHCP);
2749 char *aobjname;
2753 if ((err = nvlist_lookup_string(nvl, IPADM_NVP_AOBJNAME, &aobjname))
2782 (void) strlcpy(ipaddr->ipadm_aobjname, aobjname,
2808 * the provided `type'. `aobjname' represents the address object name, which
2815 ipadm_create_addrobj(ipadm_addr_type_t type, const char *aobjname,
2828 if (aobjname == NULL || aobjname[0] == '\0')
2831 if (strlcpy(ifname, aobjname, IPADM_AOBJSIZ) >= IPADM_AOBJSIZ)
2899 * Returns `aobjname' from the address object in `ipaddr'.
2902 ipadm_get_aobjname(ipadm_addrobj_t ipaddr, char *aobjname, size_t len)
2904 if (ipaddr == NULL || aobjname == NULL)
2906 if (strlcpy(aobjname, ipaddr->ipadm_aobjname, len) >= len)
3015 * when both `ifname' and `aobjname' are NULL. If an `ifname' is provided,
3017 * If an `aobjname' is specified, then the address line corresponding to
3022 const char *aobjname, nvlist_t **onvl)
3034 if (aobjname != NULL)
3035 (void) strlcpy(garg.ia_aobjname, aobjname,
3146 * aobjname to `addr'.
3450 * Removes the address object identified by `aobjname' from both active and
3468 ipadm_delete_addr(ipadm_handle_t iph, const char *aobjname, uint32_t flags)
3486 if (aobjname == NULL || strlcpy(ipaddr.ipadm_aobjname, aobjname,
4292 * Retrieves the address object corresponding to `aobjname' from ipmgmtd
4297 i_ipadm_updown_common(ipadm_handle_t iph, const char *aobjname,
4308 if (aobjname == NULL || strlcpy(ipaddr->ipadm_aobjname, aobjname,
4333 * Marks the address in the address object `aobjname' up. This operation is
4339 ipadm_up_addr(ipadm_handle_t iph, const char *aobjname, uint32_t ipadm_flags)
4346 status = i_ipadm_updown_common(iph, aobjname, &ipaddr, ipadm_flags,
4472 * Marks the address in the address object `aobjname' down. This operation is
4478 ipadm_down_addr(ipadm_handle_t iph, const char *aobjname, uint32_t ipadm_flags)
4485 status = i_ipadm_updown_common(iph, aobjname, &ipaddr, ipadm_flags,
4516 * Refreshes the address in the address object `aobjname'. If the address object
4526 ipadm_refresh_addr(ipadm_handle_t iph, const char *aobjname,
4544 if (aobjname == NULL || strlcpy(ipaddr.ipadm_aobjname, aobjname,
4718 * Re-enables the address object `aobjname' based on the saved
4719 * configuration for `aobjname'.
4722 ipadm_enable_addr(ipadm_handle_t iph, const char *aobjname, uint32_t flags)
4738 if (aobjname == NULL || strlcpy(ipaddr.ipadm_aobjname, aobjname,
4750 status = i_ipadm_get_db_addr(iph, NULL, aobjname, &nvl);
4773 * Disables the address object in `aobjname' from the active configuration.
4777 ipadm_disable_addr(ipadm_handle_t iph, const char *aobjname, uint32_t flags)
4783 return (ipadm_delete_addr(iph, aobjname, IPADM_OPT_ACTIVE|flags));