Lines Matching refs:prop_val

904     char **prop_val, uint_t *val_cntp, uint_t flags, val_desc_t **vdpp,
913 if (strcasecmp(prop_val[j],
928 datalink_class_t class, uint32_t media, prop_desc_t *pdp, char **prop_val,
951 if (prop_val != NULL) {
958 status = pdp->pd_check(handle, pdp, linkid, prop_val,
961 status = check_prop(handle, pdp, linkid, prop_val,
994 status = pdp->pd_check(handle, pdp, linkid, prop_val,
1017 const char *prop_name, char **prop_val, uint_t val_cnt, uint_t flags,
1033 prop_val, val_cnt, flags);
1061 prop_name, prop_val, val_cnt, flags);
1074 const char *prop_name, char **prop_val, uint_t val_cnt, uint_t flags)
1082 (prop_val == NULL && val_cnt > 0) ||
1083 (prop_val != NULL && val_cnt == 0) ||
1084 (prop_name == NULL && prop_val != NULL)) {
1096 status = i_dladm_set_linkprop(handle, linkid, prop_name, prop_val,
1108 prop_val, val_cnt);
1178 dladm_prop_type_t type, const char *prop_name, char **prop_val,
1195 prop_val == NULL || val_cntp == NULL || *val_cntp == 0)
1209 prop_name, prop_val, val_cntp));
1212 prop_name, prop_val, val_cntp, type,
1234 status = pdp->pd_get(handle, pdp, linkid, prop_val, val_cntp,
1242 status = pdp->pd_get(handle, pdp, linkid, prop_val,
1246 *prop_val[0] = '\0';
1249 (void) dladm_perm2str(perm_flags, *prop_val);
1266 status = pdp->pd_get(handle, pdp, linkid, prop_val,
1269 (void) strcpy(*prop_val, pdp->pd_defval.vd_name);
1276 status = pdp->pd_getmod(handle, pdp, linkid, prop_val,
1287 (void) strcpy(prop_val[i],
1297 prop_val, val_cntp);
1323 char **prop_val;
1351 prop_val = malloc(*val_cntp * sizeof (*prop_val) +
1353 if (prop_val == NULL)
1356 prop_val[valc] = (char *)(prop_val + *val_cntp) +
1363 status = pdp->pd_get(handle, pdp, linkid, prop_val, val_cntp,
1383 free(prop_val);
1386 status = pdp->pd_get(handle, pdp, linkid, prop_val, val_cntp,
1395 prop_name, prop_val, val_cntp);
1412 prop_val, val_cntp, 0, &vdp, media);
1422 prop_val[valc]) == 0) {
1436 free(prop_val);
1534 char **prop_val, uint_t *val_cnt, datalink_media_t media,
1555 (void) strncpy(*prop_val, zone_name, DLADM_PROP_VAL_MAX);
1557 *prop_val[0] = '\0';
1675 char **prop_val, uint_t *val_cntp, uint_t flags, val_desc_t **vdpp,
1692 zone_name = (prop_val != NULL) ? *prop_val : GLOBAL_ZONENAME;
1728 char **prop_val, uint_t *val_cnt, datalink_media_t media,
1744 (void) dladm_bw2str(mrp.mrp_maxbw, prop_val[0]);
1752 char **prop_val, uint_t *val_cntp, uint_t flags, val_desc_t **vdpp,
1767 status = dladm_str2bw(*prop_val, maxbw);
1801 char **prop_val, uint_t *val_cnt, datalink_media_t media,
1836 err = dladm_range2strs(pv_range, prop_val);
1851 char **prop_val, uint_t *val_cntp, uint_t flags, val_desc_t **vdpp,
1877 status = dladm_strs2range(prop_val, val_cnt, MAC_PROPVAL_UINT32,
1982 char **prop_val, uint_t *val_cnt, datalink_media_t media,
2001 (*prop_val)[0] = '\0';
2003 (void) snprintf(*prop_val, DLADM_PROP_VAL_MAX,
2014 char **prop_val, uint_t *val_cntp, uint_t flags, val_desc_t **vdpp,
2053 if ((pool = pool_get_pool(poolconf, *prop_val)) == NULL) {
2062 (void) strlcpy(poolname, *prop_val, sizeof (mrp.mrp_pool));
2096 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
2111 (void) dladm_pri2str(pri, prop_val[0]);
2160 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
2168 if (strncasecmp(prop_val[0], "hw", strlen("hw")) == 0) {
2170 } else if (strncasecmp(prop_val[0], "sw", strlen("sw")) == 0) {
2173 v->vd_val = strtoul(prop_val[0], NULL, 0);
2183 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
2207 (*prop_val)[0] = '\0';
2214 (void) snprintf(prop_val[0], DLADM_PROP_VAL_MAX, "sw,hw");
2220 (void) snprintf(prop_val[0], DLADM_PROP_VAL_MAX, "sw,hw,%d",
2227 (void) snprintf(prop_val[0], DLADM_PROP_VAL_MAX,
2238 char **prop_val, uint_t *val_cnt, datalink_media_t media,
2275 (void) snprintf(*prop_val, DLADM_PROP_VAL_MAX, "hw");
2277 (void) snprintf(*prop_val, DLADM_PROP_VAL_MAX, "sw");
2279 (void) snprintf(*prop_val, DLADM_PROP_VAL_MAX, "%ld", nrings);
2304 char **prop_val, uint_t *val_cnt, datalink_media_t media,
2345 (void) snprintf(*prop_val, DLADM_PROP_VAL_MAX, "hw");
2347 (void) snprintf(*prop_val, DLADM_PROP_VAL_MAX, "sw");
2349 (void) snprintf(*prop_val, DLADM_PROP_VAL_MAX, "%ld", nrings);
2374 char **prop_val, uint_t *val_cnt, datalink_media_t media, uint_t flags,
2380 return (get_uint32(handle, pdp, linkid, prop_val, val_cnt, media,
2426 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
2449 (void) dladm_protect2str(setbits[i], prop_val[i]);
2458 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
2485 (void) dladm_ipv4addr2str(&v4addr, prop_val[i]);
2488 prop_val[i]);
2490 len = strlen(prop_val[i]);
2491 (void) sprintf(prop_val[i] + len, "/%d",
2634 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
2653 status = check_single_ip(prop_val[i], addr);
2919 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
2943 dladm_cid2str(cid, prop_val[i]);
2972 datalink_id_t linkid, char **prop_val, uint_t *val_cntp,
2991 status = dladm_str2cid(prop_val[i], cid);
3008 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
3025 (const unsigned char *)&sa.ms_addrs[i], prop_val[i]) ==
3038 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
3052 addr = _link_aton(prop_val[i], (int *)&len);
3108 char **prop_val, uint_t *val_cnt, datalink_media_t media,
3129 (void) snprintf(*prop_val + len,
3133 (void) snprintf(*prop_val + len, DLADM_PROP_VAL_MAX - len,
3137 (void) snprintf(*prop_val + len,
3187 char **prop_val, uint_t *val_cntp, uint_t flags, val_desc_t **vdpp,
3201 if (prop_val != NULL) {
3208 bcopy(*prop_val, val, DLADM_PROP_VAL_MAX);
3229 datalink_id_t linkid, char **prop_val, uint_t *val_cnt, uint_t id,
3251 prop_val[0][0] = '\0';
3257 (void) snprintf(prop_val[i], DLADM_STRSIZE, "%.*f",
3271 char **prop_val, uint_t *val_cnt, datalink_media_t media,
3275 return (get_speed(handle, pdp, linkid, prop_val,
3279 return (get_rate_common(handle, pdp, linkid, prop_val, val_cnt,
3286 char **prop_val, uint_t *val_cnt, datalink_media_t media,
3298 return (get_rate_common(handle, pdp, linkid, prop_val,
3360 char **prop_val, uint_t *val_cntp, uint_t flags, val_desc_t **vdpp,
3393 if (strcasecmp(*prop_val, modval[i]) == 0) {
3395 (atof(*prop_val) * 2);
3418 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
3434 (void) snprintf(*prop_val, DLADM_STRSIZE, "%u", channel);
3443 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
3469 (void) snprintf(*prop_val, DLADM_STRSIZE, "%s", s);
3509 char **prop_val, uint_t *val_cnt, datalink_media_t media,
3532 (void) snprintf(*prop_val, DLADM_STRSIZE, "%s", s);
3566 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
3578 hlim = strtol(*prop_val, &ep, 10);
3579 if (errno != 0 || ep == *prop_val || hlim < 1 ||
3589 char **prop_val, uint_t *val_cntp, uint_t flags, val_desc_t **vdpp,
3604 elim = strtol(*prop_val, &ep, 10);
3605 if (errno != 0 || ep == *prop_val || elim < 0 ||
3614 const char *prop_name, char **prop_val, uint_t val_cnt)
3637 (void) strlcat(buf, prop_val[i], MAXLINELEN);
3654 const char *prop_name, char **prop_val, uint_t *val_cntp)
3675 (void) strlcpy(prop_val[cnt++], str, DLADM_PROP_VAL_MAX);
3890 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
3898 v->vd_val = strtoul(prop_val[0], NULL, 0);
3905 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
3917 (void) strcpy(*prop_val, "full");
3920 (void) strcpy(*prop_val, "half");
3923 (void) strcpy(*prop_val, "unknown");
3933 char **prop_val, uint_t *val_cnt, datalink_media_t media, uint_t flags,
3944 (void) snprintf(*prop_val, DLADM_PROP_VAL_MAX,
3947 (void) snprintf(*prop_val, DLADM_PROP_VAL_MAX,
3958 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
3970 (void) strcpy(*prop_val, "up");
3973 (void) strcpy(*prop_val, "down");
3976 (void) strcpy(*prop_val, "unknown");
3987 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
3998 (void) snprintf(*prop_val, DLADM_PROP_VAL_MAX, "%d", (uint_t)(v > 0));
4006 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4017 (void) snprintf(*prop_val, DLADM_PROP_VAL_MAX, "%ld", v);
4025 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4069 (void) snprintf(prop_val[0], DLADM_PROP_VAL_MAX, "--");
4082 (void) snprintf(prop_val[i], DLADM_PROP_VAL_MAX,
4085 (void) snprintf(prop_val[i], DLADM_PROP_VAL_MAX,
4104 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4117 (void) strlcpy(*prop_val, "normal", DLADM_PROP_VAL_MAX);
4120 (void) strlcpy(*prop_val, "vlanonly", DLADM_PROP_VAL_MAX);
4123 (void) strlcpy(*prop_val, "unknown", DLADM_PROP_VAL_MAX);
4132 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4145 (void) sprintf(*prop_val, "no");
4148 (void) sprintf(*prop_val, "rx");
4151 (void) sprintf(*prop_val, "tx");
4154 (void) sprintf(*prop_val, "bi");
4165 const char *prop_name, char **prop_val, uint_t val_cnt, uint_t flags)
4174 if ((prop_name == NULL && prop_val != NULL) ||
4175 (prop_val != NULL && val_cnt == 0))
4189 bufsize += strlen(prop_val[i]) + 1;
4192 if (prop_val == NULL) {
4200 (prop_val != NULL ? 0 : DLD_PROP_DEFAULT), &status);
4207 if (prop_val == NULL) {
4214 plen = strlen(prop_val[i]);
4215 bcopy(prop_val[i], dp, plen);
4234 const char *prop_name, char **prop_val, uint_t *val_cnt,
4241 if ((prop_name == NULL && prop_val != NULL) ||
4242 (prop_val != NULL && val_cnt == 0))
4260 (void) dladm_perm2str(dip->pr_perm_flags, *prop_val);
4262 *prop_val[0] = '\0';
4264 (void) strncpy(*prop_val, dip->pr_val,
4330 char **prop_val, uint_t *val_cnt, datalink_media_t media, uint_t flags,
4348 prop_val, val_cnt) != DLADM_STATUS_OK)
4349 (void) strlcpy(*prop_val, pd->pd_defval.vd_name,
4354 (void) strlcpy(*prop_val, "?", DLADM_PROP_VAL_MAX);
4358 (void) strlcpy(*prop_val, pd->pd_defval.vd_name,
4364 (void) strlcpy(*prop_val, pd->pd_optval[i].vd_name,
4369 (void) snprintf(*prop_val, DLADM_PROP_VAL_MAX, "%u", (unsigned)val);
4395 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
4406 if (prop_val == NULL) {
4412 if (iscost && strcmp(prop_val[0], "auto") == 0) {
4417 vdp->vd_val = strtoul(prop_val[0], &cp, 0);
4459 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4472 prop_val, val_cnt) != DLADM_STATUS_OK)
4473 (void) strlcpy(*prop_val, pd->pd_defval.vd_name,
4478 (void) snprintf(*prop_val, DLADM_PROP_VAL_MAX, "%u", val);
4480 (void) strlcpy(*prop_val, "?", DLADM_PROP_VAL_MAX);
4496 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4514 (void) snprintf(*prop_val, DLADM_PROP_VAL_MAX, "%u", pvid);
4516 (void) strlcpy(*prop_val, "?", DLADM_PROP_VAL_MAX);
4549 datalink_id_t linkid, char **prop_val, uint_t *val_cntp, uint_t flags,
4559 if (prop_val == NULL) {
4563 vdp->vd_val = strtoul(prop_val[0], &cp, 0);
4866 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4889 (void) snprintf(prop_val[0], DLADM_STRSIZE, "%s", s);
4898 datalink_id_t linkid, char **prop_val, uint_t *val_cnt,
4914 (void) snprintf(prop_val[0], DLADM_STRSIZE, "%s", s);