Lines Matching defs:pval

373     ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
391 pval = val;
395 mtu = (uint_t)strtol(pval, &endp, 10);
413 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
426 metric = (uint_t)strtol(pval, &endp, 10);
446 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
455 pval = IPADM_NONESTR;
461 if (strcmp(pval, IPADM_NONESTR) != 0 &&
462 !i_ipadm_validate_ifname(iph, pval))
470 if (strcmp(pval, IPADM_NONESTR) != 0) {
471 if ((ifindex = if_nametoindex(pval)) == 0)
496 i_ipadm_hostmodel_str2val(const char *pval)
502 strcmp(pval, esm_arr[i].esm_str) == 0) {
510 i_ipadm_hostmodel_val2str(ip_hostmodel_t pval)
515 if (esm_arr[i].esm_val == pval)
524 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
530 hostmodel = i_ipadm_hostmodel_str2val(pval);
534 pval = val;
536 return (i_ipadm_set_prop(iph, NULL, pdp, pval, proto, flags));
584 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
597 pval = IPADM_ONSTR;
599 pval = IPADM_OFFSTR;
605 if (strcmp(pval, IPADM_ONSTR) == 0)
607 else if (strcmp(pval, IPADM_OFFSTR) == 0)
644 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
653 assert(pval == NULL);
654 return (i_ipadm_set_prop(iph, arg, pdp, pval, proto, flags));
657 if ((err = ipadm_str2nvlist(pval, &portsnvl, IPADM_NORVAL)) != 0)
696 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
706 status = i_ipadm_set_ifprop_flags(iph, ifname, pdp, pval,
712 * if the caller is IPH_LEGACY, `pval' already contains
718 if (strcmp(pval, IPADM_ONSTR) == 0)
720 else if (strcmp(pval, IPADM_OFFSTR) == 0)
724 pval = val;
727 status = i_ipadm_set_prop(iph, ifname, pdp, pval, proto, flags);
736 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
741 /* if IPH_LEGACY is set, `pval' already contains numeric values */
744 if (strcmp(pval, ecn_sack_vals[i]) == 0)
750 pval = val;
753 return (i_ipadm_set_prop(iph, arg, pdp, pval, proto, flags));
1103 const char *pval, const void *object)
1111 if (pval != NULL)
1112 (void) strlcpy(pargp->ia_pval, pval, sizeof (pargp->ia_pval));
1293 * `pval' will be NULL and it instructs the kernel to reset the current
1298 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags)
1317 if (pval != NULL) {
1318 valsize = strlen(pval);
1338 if (pval != NULL)
1339 bcopy(pval, mip->mpr_val, valsize);
1664 const char *pval, const void *object, uint_t flags)
1670 i_ipadm_populate_proparg(&parg, pdp, pval, object);