unsigned int is_unsigned : 1; //!< hackity hack for dates and time deltas
- unsigned int is_counter : 1; //!< integer attribute is actually an impulse / counter
+ unsigned int counter : 1; //!< integer attribute is actually an impulse / counter
/*
* @todo - if we want to clean these fields up, make
FLAG_SET(array);
FLAG_SET(has_value);
FLAG_SET(virtual);
+ FLAG_SET(counter);
if (dict && !flags->extra && flags->subtype) {
FR_SBUFF_IN_STRCPY_RETURN(&our_out, fr_table_str_by_value(dict->subtype_table, flags->subtype, "?"));
uint32_t shift_is_root, shift_internal;
uint32_t shift_array, shift_has_value;
uint32_t shift_virtual, shift_subtype, shift_extra;
- uint32_t shift_is_counter;
+ uint32_t shift_counter;
fr_dict_attr_t const *v;
/*
SET_FLAG(has_value);
SET_FLAG(virtual);
SET_FLAG(extra);
- SET_FLAG(is_counter);
+ SET_FLAG(counter);
SET_FLAG(subtype);
#define FORBID_OTHER_FLAGS(_flag) do { if (all_flags & ~shift_ ## _flag) { fr_strerror_printf("The '" STRINGIFY(_flag) "' flag cannot be used with any other flag"); return false; } } while (0)
* For other data types, we don't know how to
* automatically add two counters.
*/
- if (flags->is_counter) {
+ if (flags->counter) {
if ((type == FR_TYPE_TIME_DELTA) || (fr_type_is_integer(type) && !fr_type_is_signed(type))) {
- ALLOW_FLAG(is_counter);
+ ALLOW_FLAG(counter);
} else {
fr_strerror_printf("The 'counter' flag cannot be used with '%s'", fr_type_to_str(type));
return false;