The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
#include <freeradius-devel/io/ring_buffer.h>
#include <freeradius-devel/util/request.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/util/hash.h>
#include <freeradius-devel/util/syserror.h>
#include <freeradius-devel/util/talloc.h>
#include <string.h>
Go to the source code of this file.
Macros | |
#define | ALLOC_SIZE (8) |
#define | ARRAY_SIZE (4 * ALLOC_SIZE) |
Typedefs | |
typedef struct request_s | request_t |
Functions | |
static void | alloc_blocks (fr_ring_buffer_t *rb, uint32_t *seed, UNUSED int *start, int *end) |
static void | free_blocks (fr_ring_buffer_t *rb, UNUSED uint32_t *seed, int *start, int *end) |
int | main (int argc, char *argv[]) |
request_t * | request_alloc (UNUSED TALLOC_CTX *ctx, UNUSED request_init_args_t const *args) |
void | request_verify (UNUSED char const *file, UNUSED int line, UNUSED request_t *request) |
static NEVER_RETURNS void | usage (void) |
Variables | |
static size_t | array [ARRAY_SIZE] |
static uint8_t * | data [ARRAY_SIZE] |
static int | debug_lvl = 0 |
static char const * | seed_string = "foo" |
static size_t | seed_string_len = 3 |
static size_t | used = 0 |
#define ALLOC_SIZE (8) |
Definition at line 37 of file ring_buffer_test.c.
#define ARRAY_SIZE (4 * ALLOC_SIZE) |
Definition at line 38 of file ring_buffer_test.c.
Definition at line 47 of file ring_buffer_test.c.
|
static |
Definition at line 65 of file ring_buffer_test.c.
|
static |
Definition at line 99 of file ring_buffer_test.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
request_t* request_alloc | ( | UNUSED TALLOC_CTX * | ctx, |
UNUSED request_init_args_t const * | args | ||
) |
Definition at line 54 of file ring_buffer_test.c.
Definition at line 59 of file ring_buffer_test.c.
|
static |
|
static |
Definition at line 41 of file ring_buffer_test.c.
|
static |
Definition at line 42 of file ring_buffer_test.c.
|
static |
Definition at line 44 of file ring_buffer_test.c.
|
static |
Definition at line 46 of file ring_buffer_test.c.
|
static |
Definition at line 47 of file ring_buffer_test.c.
|
static |
Definition at line 40 of file ring_buffer_test.c.