Lines Matching defs:pval

252     char *pval, uint_t *psize)
271 *psize = snprintf(pval, *psize, "%s", rval.lpr_pval);
299 i_lldp_get_tlv(const char *laname, lldp_prop_desc_t *pdp, char *pval,
307 return (i_lldp_getvalue_from_daemon(laname, pdp, pval, psize));
337 i_lldp_get_apt(const char *laname, lldp_prop_desc_t *pdp, char *pval,
344 status = i_lldp_getvalue_from_daemon(laname, pdp, pval,
348 *psize = snprintf(pval, *psize, "--");
356 i_lldp_set_apt(const char *laname, lldp_prop_desc_t *pdp, void *pval,
362 (void) strlcpy(lpval.lpv_strval, pval, sizeof (lpval.lpv_strval));
370 i_lldp_set_tlv(const char *laname, lldp_prop_desc_t *pdp, void *pval,
377 status = lldp_str2mask(pdp->lpd_name, pval, &tlvmask);
390 char *pval, uint_t *psize, uint_t valtype)
397 return (i_lldp_getvalue_from_daemon(laname, pdp, pval, psize));
401 i_lldp_set_admin_status(const char *laname, lldp_prop_desc_t *pdp, void *pval,
408 /* check if the pval is one of the possible values */
411 if (strcmp(vd->lvd_name, pval) == 0)
422 i_lldp_get_str(const char *laname, lldp_prop_desc_t *pdp, char *pval,
430 return (i_lldp_getvalue_from_daemon(laname, pdp, pval, psize));
434 i_lldp_set_gstr(const char *laname, lldp_prop_desc_t *pdp, void *pval,
440 (void) strlcpy(lpval.lpv_strval, pval, sizeof (lpval.lpv_strval));
452 i_lldp_get_onoff(const char *laname, lldp_prop_desc_t *pdp, char *pval,
463 status = i_lldp_getvalue_from_daemon(laname, pdp, pval, &valsize);
466 bval = atoi(pval);
467 *psize = snprintf(pval, *psize, "%s",
477 i_lldp_set_onoff(const char *laname, lldp_prop_desc_t *pdp, void *pval,
485 /* check if the pval is one of the possible values */
488 if (strcmp(vd->lvd_name, pval) == 0)
503 char *pval, uint_t *psize, uint_t valtype)
510 return (i_lldp_getvalue_from_daemon(laname, pdp, pval, psize));
514 i_lldp_set_syscapab(const char *laname, lldp_prop_desc_t *pdp, void *pval,
521 if ((status = lldp_str2syscapab(pval, &capab)) != LLDP_STATUS_OK)
530 char *pval, uint_t *psize, uint_t valtype)
543 status = i_lldp_getvalue_from_daemon(laname, tmp, pval, psize);
546 status = i_lldp_getvalue_from_daemon(laname, pdp, pval, psize);
588 i_lldp_setprop_common(const char *laname, const char *pname, char *pval,
596 if (pname == NULL || (!reset && pval == NULL) ||
637 pval = pdp->lpd_defval.lvd_name;
640 return (pdp->lpd_setf(laname, pdp, pval, pflags));
644 lldp_set_agentprop(const char *laname, const char *pname, char *pval,
650 return (i_lldp_setprop_common(laname, pname, pval, LLDP_PROPCLASS_AGENT,
655 lldp_set_global_tlvprop(const char *tlvname, const char *pname, char *pval,
663 return (i_lldp_setprop_common(NULL, pname, pval, pclass, pflags));
668 const char *pname, char *pval, uint_t pflags)
678 return (i_lldp_setprop_common(laname, pname, pval, pclass, pflags));
728 i_lldp_getprop_common(const char *laname, const char *pname, char *pval,
735 if (pname == NULL || (pval == NULL && *psize != 0))
754 bzero(pval, *psize);
758 status = i_lldp_pd2permstr(pdp, pval, &bufsize);
761 status = pdp->lpd_getf(laname, pdp, pval, &bufsize,
769 bufsize = strlcpy(pval, pdp->lpd_defval.lvd_name, bufsize);
774 status = pdp->lpd_getf(laname, pdp, pval, &bufsize,
781 nbytes = snprintf(pval, bufsize, "%s",
784 nbytes = snprintf(pval, bufsize, "%s,",
793 pval = NULL;
796 pval += nbytes;
817 lldp_get_agentprop(const char *laname, const char *pname, char *pval,
823 return (i_lldp_getprop_common(laname, pname, pval, psize,
828 lldp_get_global_tlvprop(const char *tlvname, const char *pname, char *pval,
836 return (i_lldp_getprop_common(NULL, pname, pval, psize, valtype,
842 const char *pname, char *pval, uint_t *psize, uint_t valtype)
852 return (i_lldp_getprop_common(laname, pname, pval, psize, valtype,
1077 char pval[LLDP_MAXPROPVALLEN];
1078 uint_t psize = sizeof (pval);
1082 status = i_lldp_getvalue_from_daemon(laname, pdp, pval, &psize);
1085 return (strcmp(pval, "disable") != 0);