Lines Matching defs:ainfo

547  * `ainfo' is an input as well as output parameter. When an address or an
548 * address property is found, `ainfo' is updated with the information found.
557 i_ipadm_nvl2ainfo_common(nvlist_t *nvl, ipadm_addr_info_t *ainfo)
588 * in `ainfo'.
594 ainfo->ia_pflags |= IA_UP;
603 (void) strlcpy(ainfo->ia_sname, sname,
604 sizeof (ainfo->ia_sname));
608 (void) strlcpy(ainfo->ia_dname, dname,
609 sizeof (ainfo->ia_dname));
618 ainfo->ia_pflags |= IA_UP;
626 * name and the property value. Update the `ainfo->ia_pflags'
631 ainfo->ia_pflags |= IA_DEPRECATED;
634 ainfo->ia_pflags |= IA_PRIVATE;
644 * `ainfo' is an input as well as output parameter. When an address or an
645 * address property is found, `ainfo' is updated with the information found.
654 * care of freeing the fields in `ainfo'.
657 i_ipadm_nvl2ainfo_active(nvlist_t *nvl, ipadm_addr_info_t *ainfo)
659 return (i_ipadm_nvl2ainfo_common(nvl, ainfo));
665 * `ainfo' is an input as well as output parameter. When an address or an
666 * address property is found, `ainfo' is updated with the information found.
670 * All the relevant fields in `ainfo' will be filled by this function based
674 * care of freeing the fields in `ainfo'.
677 i_ipadm_nvl2ainfo_persist(nvlist_t *nvl, ipadm_addr_info_t *ainfo)
694 status = i_ipadm_nvl2ainfo_common(nvl, ainfo);
715 ifa = &ainfo->ia_ifa;
716 (void) strlcpy(ainfo->ia_aobjname, aobjname,
717 sizeof (ainfo->ia_aobjname));
727 ainfo->ia_atype = atype;
759 * `ainfo->ia_ifa.ifa_netmask'.
767 * found a valid `ainfo->ia_ifa.ifa_addr' by now.
796 ipadm_addr_info_t *ainfo = NULL;
802 status = i_ipadm_active_addr_info(iph, ifname, &ainfo, ipadm_flags,
819 if (ainfo == NULL && ifname != NULL)
821 *addrinfo = ainfo;
828 if (ainfo != NULL) {
829 for (curr = ainfo; IA_NEXT(curr) != NULL; curr = IA_NEXT(curr))
839 * If an address A was found in active, we will already have `ainfo',
841 * update `ainfo' with persistent information (`ia_pflags).
853 for (curr = ainfo; curr != NULL; curr = IA_NEXT(curr)) {
859 * We did not find this address object in `ainfo'.
862 * details and append to `ainfo'.
871 ainfo = curr;
886 *addrinfo = ainfo;
892 ipadm_free_addr_info(ainfo);
3022 ipadm_free_addr_info(ipadm_addr_info_t *ainfo)
3024 freeifaddrs((struct ifaddrs *)ainfo);