The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Validation framework to allow protocols to set custom validation rules. More...
#include <freeradius-devel/util/dict_priv.h>
Go to the source code of this file.
Macros | |
#define | ALLOW_FLAG(_flag) do { all_flags &= ~shift_ ## _flag; } while (0) |
#define | FORBID_OTHER_FLAGS(_flag, _allowed) |
#define | SET_FLAG(_flag) do { shift_ ## _flag = 1 << ++bit; if (flags->_flag) all_flags |= (1 << bit); } while (0) |
Functions | |
bool | dict_attr_flags_valid (fr_dict_attr_t *da) |
Validate a set of flags. More... | |
bool | dict_attr_valid (fr_dict_attr_t *da) |
Validate a new attribute definition. More... | |
Validation framework to allow protocols to set custom validation rules.
Definition in file dict_validate.c.
#define FORBID_OTHER_FLAGS | ( | _flag, | |
_allowed | |||
) |
#define SET_FLAG | ( | _flag | ) | do { shift_ ## _flag = 1 << ++bit; if (flags->_flag) all_flags |= (1 << bit); } while (0) |
bool dict_attr_flags_valid | ( | fr_dict_attr_t * | da | ) |
Validate a set of flags.
[in] | da | to check. |
Definition at line 35 of file dict_validate.c.
bool dict_attr_valid | ( | fr_dict_attr_t * | da | ) |
Validate a new attribute definition.
[in] | da | to validate. |
Definition at line 603 of file dict_validate.c.