Lines Matching refs:mip
1338 mod_ioc_prop_t *mip;
1344 if ((mip = calloc(1, iocsize)) == NULL)
1347 mip->mpr_version = MOD_PROP_VERSION;
1348 mip->mpr_flags = valtype;
1349 mip->mpr_proto = proto;
1351 (void) strlcpy(mip->mpr_ifname, ifname,
1352 sizeof (mip->mpr_ifname));
1354 (void) strlcpy(mip->mpr_name, pname, sizeof (mip->mpr_name));
1355 mip->mpr_valsize = *bufsize;
1357 if (i_ipadm_strioctl(iph->ih_sock, SIOCGETPROP, (char *)mip,
1362 *bufsize = mip->mpr_valsize;
1366 assert(mip->mpr_valsize < *bufsize);
1367 bcopy(mip->mpr_val, buf, *bufsize);
1368 *bufsize = mip->mpr_valsize;
1371 free(mip);
1639 mod_ioc_prop_t *mip;
1662 if ((mip = calloc(1, iocsize)) == NULL)
1665 mip->mpr_version = MOD_PROP_VERSION;
1666 mip->mpr_flags = iocflags;
1667 mip->mpr_proto = proto;
1669 (void) strlcpy(mip->mpr_ifname, ifname,
1670 sizeof (mip->mpr_ifname));
1673 (void) strlcpy(mip->mpr_name, pname, sizeof (mip->mpr_name));
1674 mip->mpr_valsize = valsize;
1676 bcopy(pval, mip->mpr_val, valsize);
1678 if (i_ipadm_strioctl(iph->ih_sock, SIOCSETPROP, (char *)mip,
1685 free(mip);