From: Nick Porter Date: Wed, 3 Aug 2022 18:24:57 +0000 (+0100) Subject: Add deeper nested attributes to test dictionary X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=131d18bef80444fdd08ceb89c1323c13c52e9826;p=thirdparty%2Ffreeradius-server.git Add deeper nested attributes to test dictionary --- diff --git a/src/lib/util/dict_test.c b/src/lib/util/dict_test.c index 9a9c04903be..05fa379721b 100644 --- a/src/lib/util/dict_test.c +++ b/src/lib/util/dict_test.c @@ -73,6 +73,11 @@ fr_dict_attr_t const *fr_dict_attr_test_vendor_string; fr_dict_attr_t const *fr_dict_attr_test_group; +fr_dict_attr_t const *fr_dict_attr_test_nested_top_tlv; +fr_dict_attr_t const *fr_dict_attr_test_nested_child_tlv; +fr_dict_attr_t const *fr_dict_attr_test_nested_leaf_string; +fr_dict_attr_t const *fr_dict_attr_test_nested_leaf_int32; + fr_dict_attr_t const *fr_dict_attr_test_enum; fr_dict_test_attr_t const fr_dict_test_attrs[] = { @@ -131,6 +136,14 @@ fr_dict_test_attr_t const fr_dict_test_attrs[] = { { .attr = FR_TEST_ATTR_GROUP, .da = &fr_dict_attr_test_group, .name = "Test-Group", .type = FR_TYPE_GROUP }, + /* + * Deeper nesting + */ + { .attr = FR_TEST_ATTR_NESTED_TOP_TLV, .da = &fr_dict_attr_test_nested_top_tlv, .name = "Test-Nested-Top-TLV", .type = FR_TYPE_TLV }, + { .attr = FR_TEST_ATTR_NESTED_CHILD_TLV, .parent = &fr_dict_attr_test_nested_top_tlv, .da = &fr_dict_attr_test_nested_child_tlv, .name = "Child-TLV", .type = FR_TYPE_TLV }, + { .attr = FR_TEST_ATTR_NESTED_LEAF_STRING, .parent = &fr_dict_attr_test_nested_child_tlv, .da = &fr_dict_attr_test_nested_leaf_string, .name = "Leaf-String", .type = FR_TYPE_STRING }, + { .attr = FR_TEST_ATTR_NESTED_LEAF_INT32, .parent = &fr_dict_attr_test_nested_child_tlv, .da = &fr_dict_attr_test_nested_leaf_int32, .name = "Leaf-Int32", .type = FR_TYPE_INT32 }, + /* * Enumeration */ diff --git a/src/lib/util/dict_test.h b/src/lib/util/dict_test.h index 747f066fd20..0520c195807 100644 --- a/src/lib/util/dict_test.h +++ b/src/lib/util/dict_test.h @@ -78,6 +78,11 @@ typedef enum { FR_TEST_ATTR_GROUP, + FR_TEST_ATTR_NESTED_TOP_TLV, + FR_TEST_ATTR_NESTED_CHILD_TLV, + FR_TEST_ATTR_NESTED_LEAF_STRING, + FR_TEST_ATTR_NESTED_LEAF_INT32, + FR_TEST_ATTR_ENUM } fr_dict_test_attr_number_t; @@ -146,6 +151,11 @@ extern fr_dict_attr_t const *fr_dict_attr_test_vendor_string; extern fr_dict_attr_t const *fr_dict_attr_test_group; +extern fr_dict_attr_t const *fr_dict_attr_test_nested_top_tlv; +extern fr_dict_attr_t const *fr_dict_attr_test_nested_child_tlv; +extern fr_dict_attr_t const *fr_dict_attr_test_nested_leaf_string; +extern fr_dict_attr_t const *fr_dict_attr_test_nested_leaf_int32; + extern fr_dict_attr_t const *fr_dict_attr_test_enum; extern fr_dict_test_attr_t const fr_dict_test_attrs[];