Lines Matching refs:adinfop
359 ipmp_addrinfo_t *adinfop;
364 adinfop = ipmp_snap_getaddrinfo(statep->st_snap, grname, addrp);
365 if (adinfop == NULL)
368 *adinfopp = ipmp_addrinfo_clone(adinfop);
381 * Free the address information pointed to by `adinfop'.
384 ipmp_freeaddrinfo(ipmp_addrinfo_t *adinfop)
386 free(adinfop);
734 ipmp_addrinfo_t *adinfop;
736 adinfop = malloc(sizeof (ipmp_addrinfo_t));
737 if (adinfop == NULL)
740 adinfop->ad_addr = *addrp;
741 adinfop->ad_state = state;
742 (void) strlcpy(adinfop->ad_group, group, LIFGRNAMSIZ);
743 (void) strlcpy(adinfop->ad_binding, binding, LIFNAMSIZ);
745 return (adinfop);
749 * Clone the address information named by `adinfop'. Returns a pointer to
753 ipmp_addrinfo_clone(ipmp_addrinfo_t *adinfop)
755 return (ipmp_addrinfo_create(&adinfop->ad_addr, adinfop->ad_state,
756 adinfop->ad_group, adinfop->ad_binding));
908 * Add the address information in `adinfop' to the snapshot named by `snap'.
912 ipmp_snap_addaddrinfo(ipmp_snap_t *snap, ipmp_addrinfo_t *adinfop)
919 if (ipmp_snap_getaddrinfo(snap, adinfop->ad_group,
920 &adinfop->ad_addr) != NULL)
927 adlp->adl_adinfop = adinfop;