Lines Matching refs:grinfop
150 * in.mpathd into `grinfop' before the current time becomes `endtp'. Returns
151 * an IPMP error code. On failure, `grinfop' will have its original contents.
154 ipmp_readgroupinfo_lists(ipmp_state_t *statep, ipmp_groupinfo_t *grinfop,
171 grinfop->gr_iflistp = iflistp;
172 grinfop->gr_adlistp = adlistp;
264 ipmp_groupinfo_t *grinfop;
267 grinfop = ipmp_snap_getgroupinfo(statep->st_snap, name);
268 if (grinfop == NULL)
271 *grinfopp = ipmp_groupinfo_clone(grinfop);
291 * Free the group information pointed to by `grinfop'.
294 ipmp_freegroupinfo(ipmp_groupinfo_t *grinfop)
296 ipmp_freeaddrlist(grinfop->gr_adlistp);
297 ipmp_freeiflist(grinfop->gr_iflistp);
298 free(grinfop);
412 ipmp_groupinfo_t *grinfop;
462 grinfop = (ipmp_groupinfo_t *)value;
466 if (!hasnulbyte(grinfop->gr_name, LIFGRNAMSIZ))
646 ipmp_groupinfo_t *grinfop;
648 grinfop = malloc(sizeof (ipmp_groupinfo_t));
649 if (grinfop == NULL)
652 grinfop->gr_sig = sig;
653 grinfop->gr_fdt = fdt;
654 grinfop->gr_state = state;
655 grinfop->gr_iflistp = ipmp_iflist_create(nif, ifs);
656 grinfop->gr_adlistp = ipmp_addrlist_create(naddr, addrs);
657 if (grinfop->gr_iflistp == NULL || grinfop->gr_adlistp == NULL) {
658 ipmp_freegroupinfo(grinfop);
661 (void) strlcpy(grinfop->gr_name, name, LIFGRNAMSIZ);
662 (void) strlcpy(grinfop->gr_ifname, grifname, LIFNAMSIZ);
663 (void) strlcpy(grinfop->gr_m4ifname, m4ifname, LIFNAMSIZ);
664 (void) strlcpy(grinfop->gr_m6ifname, m6ifname, LIFNAMSIZ);
665 (void) strlcpy(grinfop->gr_bcifname, bcifname, LIFNAMSIZ);
667 return (grinfop);
671 * Clone the group information named by `grinfop'. Returns a pointer to
675 ipmp_groupinfo_clone(ipmp_groupinfo_t *grinfop)
677 ipmp_addrlist_t *adlistp = grinfop->gr_adlistp;
679 return (ipmp_groupinfo_create(grinfop->gr_name, grinfop->gr_sig,
680 grinfop->gr_fdt, grinfop->gr_state, grinfop->gr_iflistp->il_nif,
681 grinfop->gr_iflistp->il_ifs, grinfop->gr_ifname,
682 grinfop->gr_m4ifname, grinfop->gr_m6ifname, grinfop->gr_bcifname,
852 * Add the group information in `grinfop' to the snapshot named by `snap'.
856 ipmp_snap_addgroupinfo(ipmp_snap_t *snap, ipmp_groupinfo_t *grinfop)
864 if (ipmp_snap_getgroupinfo(snap, grinfop->gr_name) != NULL)
871 grlp->grl_grinfop = grinfop;