Home
last modified time | relevance | path

Searched refs:numvalues (Results 1 – 8 of 8) sorted by relevance

/illumos-gate/usr/src/lib/libnwam/common/
H A Dlibnwam_values.c72 nwam_value_create(nwam_value_type_t value_type, void *values, uint_t numvalues, in nwam_value_create() argument
89 newvalue->nwv_value_numvalues = numvalues; in nwam_value_create()
95 calloc(numvalues, sizeof (boolean_t))) == NULL) { in nwam_value_create()
99 for (i = 0; i < numvalues; i++) in nwam_value_create()
105 calloc(numvalues, sizeof (int64_t))) == NULL) { in nwam_value_create()
109 for (i = 0; i < numvalues; i++) in nwam_value_create()
115 calloc(numvalues, sizeof (uint64_t))) == NULL) { in nwam_value_create()
119 for (i = 0; i < numvalues; i++) in nwam_value_create()
125 calloc(numvalues, sizeof (char *))) == NULL) { in nwam_value_create()
129 for (i = 0; i < numvalues; i++) { in nwam_value_create()
[all …]
H A Dlibnwam_util.c551 uint_t i, numvalues; in nwam_valid_condition() local
555 if (nwam_value_get_string_array(value, &conditions, &numvalues) in nwam_valid_condition()
559 for (i = 0; i < numvalues; i++) { in nwam_valid_condition()
576 uint_t i, numvalues; in nwam_valid_boolean() local
578 if (nwam_value_get_boolean_array(value, &val, &numvalues) in nwam_valid_boolean()
582 for (i = 0; i < numvalues; i++) { in nwam_valid_boolean()
594 uint_t i, numvalues; in nwam_valid_uint64() local
596 if (nwam_value_get_int64_array(value, &val, &numvalues) in nwam_valid_uint64()
600 for (i = 0; i < numvalues; i++) { in nwam_valid_uint64()
612 uint_t i, numvalues; in nwam_valid_domain() local
[all …]
H A Dlibnwam_loc.c514 uint_t i, numvalues; in valid_loc_condition() local
518 if (nwam_value_get_string_array(value, &conditions, &numvalues) in valid_loc_condition()
522 for (i = 0; i < numvalues; i++) { in valid_loc_condition()
543 uint_t i, numvalues; in valid_nameservices() local
545 if (nwam_value_get_uint64_array(value, &nameservices, &numvalues) in valid_nameservices()
549 for (i = 0; i < numvalues; i++) { in valid_nameservices()
560 uint_t i, numvalues; in valid_configsrc() local
562 if (nwam_value_get_uint64_array(value, &configsrcs, &numvalues) in valid_configsrc()
566 for (i = 0; i < numvalues; i++) { in valid_configsrc()
610 uint_t i, numvalues; in nwam_loc_validate_one_nameservice() local
[all …]
H A Dlibnwam_object.c630 uint_t numvalues; in nwam_validate_prop_internal() local
633 if ((err = nwam_value_get_numvalues(value, &numvalues)) in nwam_validate_prop_internal()
644 if (numvalues < pte->prop_min_numvalues || in nwam_validate_prop_internal()
645 numvalues > pte->prop_max_numvalues) { in nwam_validate_prop_internal()
648 if (numvalues < 1) in nwam_validate_prop_internal()
654 if (numvalues > 0) { in nwam_validate_prop_internal()
655 for (i = 0; i < numvalues; i++) { in nwam_validate_prop_internal()
719 uint64_t type, uint64_t class, const char ***prop_list, uint_t *numvalues) in nwam_get_default_proplist() argument
726 assert(prop_list != NULL && numvalues != NULL); in nwam_get_default_proplist()
732 *numvalues = 0; in nwam_get_default_proplist()
[all …]
H A Dlibnwam_ncp.c1600 uint_t i, numvalues; in valid_ip_version() local
1602 if (nwam_value_get_uint64_array(value, &versions, &numvalues) in valid_ip_version()
1606 for (i = 0; i < numvalues; i++) { in valid_ip_version()
1618 uint_t i, numvalues; in valid_addrsrc_v4() local
1620 if (nwam_value_get_uint64_array(value, &addrsrc, &numvalues) in valid_addrsrc_v4()
1624 for (i = 0; i < numvalues; i++) { in valid_addrsrc_v4()
1636 uint_t i, numvalues; in valid_addrsrc_v6() local
1639 if (nwam_value_get_uint64_array(value, &addrsrc, &numvalues) in valid_addrsrc_v6()
1643 for (i = 0; i < numvalues; i++) { in valid_addrsrc_v6()
1694 const char ***prop_list, uint_t *numvalues) in nwam_ncu_get_default_proplist() argument
[all …]
H A Dlibnwam_enm.c388 uint_t i, numvalues; in nwam_enm_validate() local
445 &numvalues) != NWAM_SUCCESS) { in nwam_enm_validate()
455 for (i = 0; i < numvalues; i++) { in nwam_enm_validate()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/routeadm/
H A Drouteadm.c470 int numvalues, i; in main() local
652 numvalues = 1; in main()
672 vals = realloc(vals, ++numvalues in main()
674 vals[numvalues - 1] = ++keyend; in main()
681 raprop.prop_numvalues = numvalues; in main()
1378 int i, ret, numvalues = 0; in ra_get_set_opt_common_cb() local
1398 RA_PG_ROUTEADM, RA_PROP_PROTO, B_TRUE, B_FALSE, NULL, &numvalues, in ra_get_set_opt_common_cb()
1414 for (i = 0; i < numvalues; i++) { in ra_get_set_opt_common_cb()
1422 ra_free_prop_values(numvalues, protolist); in ra_get_set_opt_common_cb()
1430 for (i = 0; i < numvalues; i++) { in ra_get_set_opt_common_cb()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dncu.c531 uint_t numvalues; in ncu_create_init_fini_event() local
542 if ((err = nwamd_get_ncu_uint(ncuh, &typeval, &type, &numvalues, in ncu_create_init_fini_event()
620 uint_t numvalues; in populate_common_ncu_properties() local
644 &numvalues, NWAM_NCU_PROP_PARENT_NCP)) != NWAM_SUCCESS) { in populate_common_ncu_properties()
664 uint_t numvalues; in populate_link_ncu_properties() local
667 if ((err = nwamd_get_ncu_uint(ncuh, &ncu_prop, &uintval, &numvalues, in populate_link_ncu_properties()
683 &numvalues, NWAM_NCU_PROP_PRIORITY_MODE)) in populate_link_ncu_properties()
695 &numvalues, NWAM_NCU_PROP_PRIORITY_GROUP)) in populate_link_ncu_properties()
708 if ((err = nwamd_get_ncu_string(ncuh, &ncu_prop, &mac_addr, &numvalues, in populate_link_ncu_properties()
721 if ((err = nwamd_get_ncu_uint(ncuh, &ncu_prop, &uintval, &numvalues, in populate_link_ncu_properties()
[all …]