25RCSID(
"$Id: ce50efcb0b791aca3b6dcb239a22f23269d6335f $")
27#include <freeradius-devel/server/section.h>
29#define IDENT_ANY_CMP(_a, _b) \
30 CMP_PREFER_LARGER((_a) == CF_IDENT_ANY, (_b) == CF_IDENT_ANY)
32#define NULL_CMP(_a, _b) \
33 (((_a) == NULL) < ((_b) == NULL)) - (((_a) == NULL) > ((_b) == NULL))
63 if (ret == 0)
return CMP_EQ;
75 if (ret != 0)
return ret;
78 if (ret != 0)
return CMP(ret, 0);
88 if (ret != 0)
return ret;
#define CMP(_a, _b)
Same as CMP_PREFER_SMALLER use when you don't really care about ordering, you just want an ordering.
fr_cmp_ret_t
Result of an ordering comparison.
#define IDENT_ANY_CMP(_a, _b)
fr_cmp_ret_t section_name_cmp(void const *one, void const *two)
Compare two sections.
char const * name2
Second section name. Usually a packet type like 'access-request', 'access-accept',...
char const * name1
First section name. Usually a verb like 'recv', 'send', etc...