The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Macros | Functions | Variables
rbmonkey.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <netdb.h>
#include <freeradius-devel/util/rb.c>
#include <freeradius-devel/util/rand.h>
+ Include dependency graph for rbmonkey.c:

Go to the source code of this file.

Data Structures

struct  fr_rb_tree_test_node_t
 

Macros

#define MAXSIZE   1024
 
#define REPS   10
 

Functions

static int8_t comp (void const *a, void const *b)
 
static int filter_cb (void *i, void *uctx)
 
static void freenode (void *data)
 
int main (UNUSED int argc, UNUSED char *argv[])
 
static int qsort_comp (void const *a, void const *b)
 
static int rbcount (fr_rb_tree_t *t)
 

Variables

static int cb_stored = 0
 
static uint32_t mask
 
static fr_rb_tree_test_node_t rvals [MAXSIZE]
 

Data Structure Documentation

◆ fr_rb_tree_test_node_t

struct fr_rb_tree_test_node_t

Definition at line 30 of file rb_tests.c.

+ Collaboration diagram for fr_rb_tree_test_node_t:
Data Fields
fr_rb_node_t node
uint32_t num

Macro Definition Documentation

◆ MAXSIZE

#define MAXSIZE   1024

Definition at line 34 of file rbmonkey.c.

◆ REPS

#define REPS   10

Definition at line 125 of file rbmonkey.c.

Function Documentation

◆ comp()

static int8_t comp ( void const *  a,
void const *  b 
)
static

Definition at line 13 of file rbmonkey.c.

+ Here is the caller graph for this function:

◆ filter_cb()

static int filter_cb ( void *  i,
void *  uctx 
)
static

Definition at line 41 of file rbmonkey.c.

+ Here is the caller graph for this function:

◆ freenode()

static void freenode ( void *  data)
static

Definition at line 127 of file rbmonkey.c.

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

◆ main()

int main ( UNUSED int  argc,
UNUSED char *  argv[] 
)

Definition at line 132 of file rbmonkey.c.

+ Here is the call graph for this function:

◆ qsort_comp()

static int qsort_comp ( void const *  a,
void const *  b 
)
static

Definition at line 20 of file rbmonkey.c.

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

◆ rbcount()

static int rbcount ( fr_rb_tree_t t)
static

Definition at line 53 of file rbmonkey.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ cb_stored

int cb_stored = 0
static

Definition at line 36 of file rbmonkey.c.

◆ mask

uint32_t mask
static

Definition at line 39 of file rbmonkey.c.

◆ rvals

Definition at line 37 of file rbmonkey.c.