]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
we only need "continuation", so call it that.
authorAlan T. DeKok <aland@freeradius.org>
Mon, 26 Apr 2021 22:57:10 +0000 (18:57 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 26 Apr 2021 22:57:10 +0000 (18:57 -0400)
at some point later we can add more flags, if we so care

src/lib/util/dict.h
src/lib/util/dict_tokenize.c
src/protocols/radius/decode.c
src/protocols/radius/encode.c

index f5d68b42ad41fe7c659b5426a7d0cfa15b36c990..38a9cdc4aa14214c0f8d3a6c0503959eb3de7297 100644 (file)
@@ -208,9 +208,9 @@ typedef struct {
  */
 typedef struct {
        uint32_t                pen;                            //!< Private enterprise number.
+       bool                    continuation;                   //!< we only have one flag for now, for WiMAX
        size_t                  type;                           //!< Length of type data
        size_t                  length;                         //!< Length of length data
-       size_t                  flags;                          //!< Vendor flags.
        char const              *name;                          //!< Vendor name.
 } fr_dict_vendor_t;
 
index b4a0fea2dd6be37321196e366a25dc6c80f5f9bd..60b2f2cc3735b4d86184cbb72e255d0e868a8063 100644 (file)
@@ -1541,7 +1541,7 @@ static int dict_read_process_vendor(fr_dict_t *dict, char **argv, int argc)
        mutable = UNCONST(fr_dict_vendor_t *, dv);
        mutable->type = type;
        mutable->length = length;
-       mutable->flags = continuation;
+       mutable->continuation = continuation;
 
        return 0;
 }
index 4b39ee8234a9401e03945c593e9f456cc41dbd3f..91951df2ccc9b2659a1361dfc5e8fa9d9dfbc8e8 100644 (file)
@@ -939,7 +939,7 @@ static ssize_t  CC_HINT(nonnull) decode_vsa(TALLOC_CTX *ctx, fr_dcursor_t *curso
        /*
         *      WiMAX craziness
         */
-       if (dv->flags) {
+       if (dv->continuation) {
                ret = decode_wimax(ctx, cursor, dict, vendor_da, data, attr_len, packet_len, packet_ctx);
                return ret;
        }
index efd521b2597100e9279d8d4258fd6f0b6c7e4126..e215bb33d42a82941c7e948563c2c01a10db2c82 100644 (file)
@@ -1127,7 +1127,7 @@ static ssize_t encode_vendor(fr_dbuff_t *dbuff,
         *      done.
         */
        if (da_stack->da[depth + 1]) {
-               if (dv && dv->flags) {
+               if (dv && dv->continuation) {
                        return encode_wimax(dbuff, da_stack, depth, cursor, encode_ctx);
                }
 
@@ -1145,7 +1145,7 @@ static ssize_t encode_vendor(fr_dbuff_t *dbuff,
        while ((vp = fr_dcursor_current(&child_cursor)) != NULL) {
                fr_proto_da_stack_build(da_stack, vp->da);
 
-               if (dv && dv->flags) {
+               if (dv && dv->continuation) {
                        slen = encode_wimax(&work_dbuff, da_stack, depth, &child_cursor, encode_ctx);
                } else {
                        slen = encode_vendor_attr(&work_dbuff, da_stack, depth, &child_cursor, encode_ctx);