]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Shorten the name of the protocol encapsulation attribute
authorNick Porter <nick@portercomputing.co.uk>
Thu, 25 Aug 2022 14:59:24 +0000 (15:59 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 25 Aug 2022 16:10:41 +0000 (17:10 +0100)
share/dictionary/freeradius/dictionary.freeradius.internal
src/lib/util/dict_util.c

index e578adb26382af9aabfe09e77889f7f103f4f9d2..97d155b3860d247ca09ce9d46918123dd6e98151 100644 (file)
@@ -281,7 +281,7 @@ VALUE       Listen-Socket-Type              coa                     8
 ATTRIBUTE      Outer-Realm-Name                        1251    string
 ATTRIBUTE      Inner-Realm-Name                        1252    string
 ATTRIBUTE      Request-Lifetime                        1253    integer
-ATTRIBUTE      Protocol-Encapsulation                  1254    tlv
+ATTRIBUTE      Proto                                   1254    tlv
 
 #
 #      Range:  1255 - 1699
index fd3c5f553a8c41090ad577fb689dffce60efd378..dde5faa40c06fbc6022fab126a7b7527c305d828 100644 (file)
@@ -890,7 +890,7 @@ int dict_protocol_add(fr_dict_t *dict)
                fr_dict_attr_t const *da;
                fr_dict_attr_flags_t flags = { 0 };
 
-               if (!dict_gctx->attr_protocol_encapsulation) dict_gctx->attr_protocol_encapsulation = fr_dict_attr_by_name(NULL, dict_gctx->internal->root, "Protocol-Encapsulation");
+               if (!dict_gctx->attr_protocol_encapsulation) dict_gctx->attr_protocol_encapsulation = fr_dict_attr_by_name(NULL, dict_gctx->internal->root, "Proto");
                fr_assert(dict_gctx->attr_protocol_encapsulation != NULL);
 
                da = fr_dict_attr_child_by_num(dict_gctx->attr_protocol_encapsulation, dict->root->attr);