23 RCSID(
"$Id: ac83ec7d7fb561ab3fde64fefc12698385c2801f $")
25 #include <freeradius-devel/util/stats.h>
42 for (entry = &
stats->table[0]; entry->
name != NULL; entry++) {
45 .counter = entry->
flags.counter,
72 for (entry = &
stats->table[0]; entry->
name != NULL; entry++) {
unsigned int internal
Internal attribute, should not be received in protocol packets, should not be encoded.
fr_dict_t const * fr_dict_by_da(fr_dict_attr_t const *da)
Attempt to locate the protocol dictionary containing an attribute.
fr_dict_t * fr_dict_unconst(fr_dict_t const *dict)
Coerce to non-const.
int fr_dict_attr_add(fr_dict_t *dict, fr_dict_attr_t const *parent, char const *name, unsigned int attr, fr_type_t type, fr_dict_attr_flags_t const *flags))
Add an attribute to the dictionary.
fr_dict_attr_t const * fr_dict_attr_child_by_num(fr_dict_attr_t const *parent, unsigned int attr)
Check if a child attribute exists in a parent using an attribute number.
Values of the encryption flags.
@ FR_TYPE_TIME_DELTA
A period of time measured in nanoseconds.
fr_pair_t * fr_pair_afrom_da(TALLOC_CTX *ctx, fr_dict_attr_t const *da)
Dynamically allocate a new attribute and assign a fr_dict_attr_t.
int fr_pair_append(fr_pair_list_t *list, fr_pair_t *to_add)
Add a VP to the end of the list.
Stores an attribute, a value and various bits of other data.
int fr_stats_pair_add(fr_pair_t *parent, fr_stats_struct_t const *stats, void const *ctx)
Add statistics VPs for a particular struct / context.
int fr_stats_attr_init(fr_dict_attr_t *parent, fr_stats_struct_t const *stats)
Define dictionary attributes for a given statistics structure.
fr_type_t type
data type for this statistics
char const * name
Attribute name.
int number
attribute number, so that numbers are consistent
struct fr_stats_entry_t::@151 flags
size_t offset
from start of the structure
Define a statistics mapping between dictionary attribute and a field in an internal structure.
Define a statistics mapping between a public name and an entire internal structure.
#define fr_strerror_printf(_fmt,...)
Log to thread local error buffer.
#define fr_type_is_structural(_x)
#define fr_type_is_integer(_x)
static int fr_value_box_memcpy_in(fr_value_box_t *vb, void const *in)
Copy a C value value to a value box.