Lines Matching defs:pval

398     ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
416 pval = val;
420 mtu = (uint_t)strtol(pval, &endp, 10);
438 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
451 metric = (uint_t)strtol(pval, &endp, 10);
471 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
480 pval = IPADM_NONESTR;
486 if (strcmp(pval, IPADM_NONESTR) != 0 &&
487 !i_ipadm_validate_ifname(iph, pval))
495 if (strcmp(pval, IPADM_NONESTR) != 0) {
496 if ((ifindex = if_nametoindex(pval)) == 0)
521 i_ipadm_hostmodel_str2val(const char *pval)
527 strcmp(pval, esm_arr[i].esm_str) == 0) {
535 i_ipadm_hostmodel_val2str(ip_hostmodel_t pval)
540 if (esm_arr[i].esm_val == pval)
549 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
555 hostmodel = i_ipadm_hostmodel_str2val(pval);
559 pval = val;
561 return (i_ipadm_set_prop(iph, NULL, pdp, pval, proto, flags));
607 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
618 pval = ifname;
622 (void) strlcpy(lifr.lifr_groupname, pval, sizeof (lifr.lifr_groupname));
712 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
725 pval = IPADM_ONSTR;
728 pval = IPADM_OFFSTR;
734 if (strcmp(pval, IPADM_ONSTR) == 0)
736 else if (strcmp(pval, IPADM_OFFSTR) == 0)
785 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
792 assert(pval == NULL);
793 return (i_ipadm_set_prop(iph, arg, pdp, pval, proto, flags));
797 if ((buf = strdupa(pval)) == NULL)
836 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
849 assert(pval == NULL);
850 status = i_ipadm_set_prop(iph, arg, pdp, pval, proto, flags);
861 if ((err = ipadm_str2nvlist(pval, &algsnvl, IPADM_NORVAL)) != 0)
941 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
945 status = i_ipadm_set_prop(iph, arg, pdp, pval, proto, flags);
950 status = ipadm_cong_persist_propval(NULL, pdp->ipd_name, pval,
987 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
997 status = i_ipadm_set_ifprop_flags(iph, ifname, pdp, pval,
1003 * if the caller is IH_LEGACY, `pval' already contains
1009 if (strcmp(pval, IPADM_ONSTR) == 0)
1011 else if (strcmp(pval, IPADM_OFFSTR) == 0)
1015 pval = val;
1018 status = i_ipadm_set_prop(iph, ifname, pdp, pval, proto, flags);
1027 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
1032 /* if IH_LEGACY is set, `pval' already contains numeric values */
1035 if (strcmp(pval, ecn_sack_vals[i]) == 0)
1041 pval = val;
1044 return (i_ipadm_set_prop(iph, arg, pdp, pval, proto, flags));
1386 ipadm_prop_desc_t *pdp, const char *pval, const void *object)
1396 if (pval != NULL)
1397 (void) strlcpy(pargp->ia_pval, pval, sizeof (pargp->ia_pval));
1630 * `pval' will be NULL and it instructs the kernel to reset the current
1635 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
1654 if (pval != NULL) {
1655 valsize = strlen(pval);
1675 if (pval != NULL)
1676 bcopy(pval, mip->mpr_val, valsize);
2031 const char *pval, const void *object, uint_t flags)
2037 i_ipadm_populate_proparg(iph, &parg, pdp, pval, object);