Lines Matching defs:pdp
83 typedef dladm_status_t pd_getf_t(dladm_handle_t, prop_desc_t *pdp,
116 typedef dladm_status_t pd_checkf_t(dladm_handle_t, prop_desc_t *pdp,
903 check_prop(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
912 for (i = 0; i < pdp->pd_noptval; i++) {
914 pdp->pd_optval[i].vd_name) == 0) {
918 if (i == pdp->pd_noptval)
921 (void) memcpy(&vdp[j], &pdp->pd_optval[i], sizeof (val_desc_t));
928 datalink_class_t class, uint32_t media, prop_desc_t *pdp, char **prop_val,
936 if (!(pdp->pd_class & class))
939 if (!DATALINK_MEDIA_ACCEPTED(pdp->pd_dmedia, media))
942 if ((flags & DLADM_OPT_PERSIST) && (pdp->pd_flags & PD_TEMPONLY))
948 if (pdp->pd_set == NULL)
956 if (pdp->pd_check != NULL) {
957 needfree = ((pdp->pd_flags & PD_CHECK_ALLOC) != 0);
958 status = pdp->pd_check(handle, pdp, linkid, prop_val,
960 } else if (pdp->pd_optval != NULL) {
961 status = check_prop(handle, pdp, linkid, prop_val,
974 if (pdp->pd_defval.vd_name == NULL)
978 defval = (strlen(pdp->pd_defval.vd_name) > 0);
979 if ((pdp->pd_flags & PD_CHECK_ALLOC) == 0 && !defval) {
980 status = i_dladm_getset_defval(handle, pdp, linkid,
990 (void) memcpy(vdp, &pdp->pd_defval,
992 } else if (pdp->pd_check != NULL) {
993 needfree = ((pdp->pd_flags & PD_CHECK_ALLOC) != 0);
994 status = pdp->pd_check(handle, pdp, linkid, prop_val,
1000 if (pdp->pd_flags & PD_AFTER_PERM)
1004 status = pdp->pd_set(handle, pdp, linkid, vdp, cnt, flags,
1025 prop_desc_t *pdp = &prop_table[i];
1029 (strcasecmp(prop_name, pdp->pd_name) != 0))
1032 s = i_dladm_set_single_prop(handle, linkid, class, media, pdp,
1111 prop_desc_t *pdp = prop_table;
1114 for (i = 0; i < DLADM_MAX_PROPS; i++, pdp++) {
1115 if (!(pdp->pd_flags & PD_AFTER_PERM))
1118 strcasecmp(prop_name, pdp->pd_name) != 0)
1120 status = pdp->pd_set(handle, pdp, linkid, NULL,
1184 prop_desc_t *pdp;
1219 pdp = &prop_table[i];
1226 if (!(pdp->pd_class & class))
1229 if (!DATALINK_MEDIA_ACCEPTED(pdp->pd_dmedia, media))
1234 status = pdp->pd_get(handle, pdp, linkid, prop_val, val_cntp,
1239 if (pdp->pd_set == NULL) {
1242 status = pdp->pd_get(handle, pdp, linkid, prop_val,
1260 if (pdp->pd_defval.vd_name == NULL) {
1265 if (strlen(pdp->pd_defval.vd_name) == 0) {
1266 status = pdp->pd_get(handle, pdp, linkid, prop_val,
1269 (void) strcpy(*prop_val, pdp->pd_defval.vd_name);
1275 if (pdp->pd_getmod != NULL) {
1276 status = pdp->pd_getmod(handle, pdp, linkid, prop_val,
1280 cnt = pdp->pd_noptval;
1288 pdp->pd_optval[i].vd_name);
1294 if (pdp->pd_flags & PD_TEMPONLY)
1320 prop_desc_t *pdp;
1330 for (pdp = prop_table; pdp < prop_table + DLADM_MAX_PROPS; pdp++)
1331 if (strcasecmp(prop_name, pdp->pd_name) == 0)
1334 if (pdp == prop_table + DLADM_MAX_PROPS)
1337 if (pdp->pd_flags & PD_CHECK_ALLOC)
1345 if (!(pdp->pd_class & class))
1348 if (!DATALINK_MEDIA_ACCEPTED(pdp->pd_dmedia, media))
1363 status = pdp->pd_get(handle, pdp, linkid, prop_val, val_cntp,
1375 if (pdp->pd_defval.vd_name == NULL) {
1380 if (pdp->pd_defval.vd_name[0] != '\0') {
1382 *ret_val = pdp->pd_defval.vd_val;
1386 status = pdp->pd_get(handle, pdp, linkid, prop_val, val_cntp,
1391 if (pdp->pd_flags & PD_TEMPONLY)
1404 if (pdp->pd_check != NULL) {
1411 status = pdp->pd_check(handle, pdp, linkid,
1420 for (i = 0; i < pdp->pd_noptval; i++) {
1421 if (strcmp(pdp->pd_optval[i].vd_name,
1424 pdp->pd_optval[i].vd_val;
1428 if (i == pdp->pd_noptval) {
1533 get_zone(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1544 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
1633 set_zone(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1645 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
1654 if ((status = set_public_prop(handle, pdp, linkid, vdp, val_cnt,
1674 check_zone(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1727 get_maxbw(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1751 check_maxbw(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1800 get_cpus(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1809 if (strcmp(pdp->pd_name, "cpus-effective") == 0) {
1850 check_cpus(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1981 get_pool(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
1988 if (strcmp(pdp->pd_name, "pool-effective") == 0) {
2013 check_pool(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2095 get_priority(dladm_handle_t handle, prop_desc_t *pdp,
2159 check_rings(dladm_handle_t handle, prop_desc_t *pdp,
2182 get_rings_range(dladm_handle_t handle, prop_desc_t *pdp,
2194 if ((dip = i_dladm_buf_alloc_by_name(sz, linkid, pdp->pd_name, flags,
2237 get_rxrings(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2248 if (strcmp(pdp->pd_name, "rxrings-effective") == 0) {
2303 get_txrings(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2315 if (strcmp(pdp->pd_name, "txrings-effective") == 0) {
2373 get_cntavail(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
2380 return (get_uint32(handle, pdp, linkid, prop_val, val_cnt, media,
2386 set_resource(dladm_handle_t handle, prop_desc_t *pdp,
2405 if (strcmp(pdp->pd_name, rp->rp_name) != 0)
2425 get_protection(dladm_handle_t handle, prop_desc_t *pdp,
2457 get_allowedips(dladm_handle_t handle, prop_desc_t *pdp,
2633 check_allowedips(dladm_handle_t handle, prop_desc_t *pdp,
2918 get_allowedcids(dladm_handle_t handle, prop_desc_t *pdp,
2971 check_allowedcids(dladm_handle_t handle, prop_desc_t *pdp,
3007 get_secondary_macs(dladm_handle_t handle, prop_desc_t *pdp,
3015 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
3037 check_secondary_macs(dladm_handle_t handle, prop_desc_t *pdp,
3107 get_autopush(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3118 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
3186 check_autopush(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3228 get_rate_common(dladm_handle_t handle, prop_desc_t *pdp,
3270 get_rate(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3275 return (get_speed(handle, pdp, linkid, prop_val,
3279 return (get_rate_common(handle, pdp, linkid, prop_val, val_cnt,
3285 get_rate_mod(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3298 return (get_rate_common(handle, pdp, linkid, prop_val,
3334 set_rate(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3359 check_rate(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3417 get_channel(dladm_handle_t handle, prop_desc_t *pdp,
3442 get_powermode(dladm_handle_t handle, prop_desc_t *pdp,
3477 set_powermode(dladm_handle_t handle, prop_desc_t *pdp,
3508 get_radio(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3540 set_radio(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3565 check_hoplimit(dladm_handle_t handle, prop_desc_t *pdp,
3588 check_encaplim(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3796 set_public_prop(dladm_handle_t handle, prop_desc_t *pdp,
3807 dip = i_dladm_buf_alloc_by_name(0, linkid, pdp->pd_name, 0, &status);
3811 if (pdp->pd_flags & PD_CHECK_ALLOC)
3889 check_uint32(dladm_handle_t handle, prop_desc_t *pdp,
3904 get_duplex(dladm_handle_t handle, prop_desc_t *pdp,
3932 get_speed(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid,
3957 get_link_state(dladm_handle_t handle, prop_desc_t *pdp,
3986 get_binary(dladm_handle_t handle, prop_desc_t *pdp,
3993 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4005 get_uint32(dladm_handle_t handle, prop_desc_t *pdp,
4012 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4024 get_range(dladm_handle_t handle, prop_desc_t *pdp,
4043 if ((dip = i_dladm_buf_alloc_by_name(sz, linkid, pdp->pd_name, flags,
4103 get_tagmode(dladm_handle_t handle, prop_desc_t *pdp,
4110 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4131 get_flowctl(dladm_handle_t handle, prop_desc_t *pdp,
4138 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4278 i_dladm_getset_defval(dladm_handle_t handle, prop_desc_t *pdp,
4304 * For properties which have pdp->pd_defval.vd_name as a non-empty
4307 * libdladm can copy pdp->pd_defval over to the val_desc_t passed
4313 status = pdp->pd_get(handle, pdp, linkid, prop_vals, &cnt, media,
4318 pdp->pd_class, media, pdp, prop_vals, cnt, flags);
4694 prop_desc_t *pdp = &prop_table[i];
4701 if (strcasecmp(aip->ai_name, pdp->pd_name) != 0)
4708 if (pdp->pd_check != NULL) {
4709 status = pdp->pd_check(handle, pdp, 0, aip->ai_val,
4865 get_linkmode_prop(dladm_handle_t handle, prop_desc_t *pdp,
4873 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4897 get_promisc_filtered(dladm_handle_t handle, prop_desc_t *pdp,
4905 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4922 set_promisc_filtered(dladm_handle_t handle, prop_desc_t *pdp,
4929 dip = i_dladm_buf_alloc_by_name(0, linkid, pdp->pd_name,