*/
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;
mutable = UNCONST(fr_dict_vendor_t *, dv);
mutable->type = type;
mutable->length = length;
- mutable->flags = continuation;
+ mutable->continuation = continuation;
return 0;
}
/*
* 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;
}
* 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);
}
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);