The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Functions
paircmp.c File Reference

Valuepair functions that are radiusd-specific and as such do not belong in the library. More...

#include <freeradius-devel/server/paircmp.h>
#include <freeradius-devel/server/regex.h>
#include <freeradius-devel/server/request.h>
#include <freeradius-devel/unlang/xlat.h>
#include <freeradius-devel/util/debug.h>
#include <ctype.h>
+ Include dependency graph for paircmp.c:

Go to the source code of this file.

Functions

int paircmp_pairs (UNUSED request_t *request, fr_pair_t const *check, fr_pair_t *vp)
 Compares check and vp by value. More...
 

Detailed Description

Valuepair functions that are radiusd-specific and as such do not belong in the library.

Id
d133e58a1390dc449109aa2a2c2c13cdbb3f25b4

Definition in file paircmp.c.

Function Documentation

◆ paircmp_pairs()

int paircmp_pairs ( UNUSED request_t request,
fr_pair_t const *  check,
fr_pair_t vp 
)

Compares check and vp by value.

Does not call any per-attribute comparison function, but does honour check.operator. Basically does "vp.value check.op check.value".

Parameters
[in]requestCurrent request.
[in]checkrvalue, and operator.
[in]vplvalue.
Returns
  • 0 if check and vp are equal
  • -1 if vp value is less than check value.
  • 1 is vp value is more than check value.
  • -2 on error.

Definition at line 56 of file paircmp.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: