#include <freeradius-devel/io/listen.h>
#include <freeradius-devel/io/schedule.h>
#include <freeradius-devel/radius/defs.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/util/inet.h>
#include <freeradius-devel/util/md5.h>
#include <freeradius-devel/util/syserror.h>
#include <sys/event.h>
#include <stdio.h>
#include <string.h>
#include <pthread.h>
Go to the source code of this file.
|
static void | entry_point_set (UNUSED void const *ctx, request_t *request) |
|
int | main (int argc, char *argv[]) |
|
static int | test_decode (void const *instance, request_t *request, uint8_t *const data, size_t data_len) |
|
static ssize_t | test_encode (void const *instance, request_t *request, uint8_t *buffer, size_t buffer_len) |
|
static int | test_fd (void const *ctx) |
|
static size_t | test_nak (void const *ctx, UNUSED void *packet_ctx, uint8_t *const packet, size_t packet_len, UNUSED uint8_t *reply, UNUSED size_t reply_len) |
|
static int | test_open (void *ctx, UNUSED void const *master_ctx) |
|
static rlm_rcode_t | test_process (UNUSED void const *instance, request_t *request, fr_io_action_t action) |
|
static ssize_t | test_read (void *ctx, UNUSED void **packet_ctx, fr_time_t **recv_time, uint8_t *buffer, size_t buffer_len, size_t *leftover, uint32_t *priority, bool *is_dup) |
|
static ssize_t | test_write (void *ctx, UNUSED void *packet_ctx, UNUSED fr_time_t request_time, uint8_t *buffer, size_t buffer_len, UNUSED size_t written) |
|
static NEVER_RETURNS void | usage (void) |
|
◆ fr_listen_test_t
◆ fr_test_packet_ctx_t
struct fr_test_packet_ctx_t |
◆ MPRINT1
◆ entry_point_set()
static void entry_point_set |
( |
UNUSED void const * |
ctx, |
|
|
request_t * |
request |
|
) |
| |
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ test_decode()
◆ test_encode()
◆ test_fd()
static int test_fd |
( |
void const * |
ctx | ) |
|
|
static |
◆ test_nak()
◆ test_open()
static int test_open |
( |
void * |
ctx, |
|
|
UNUSED void const * |
master_ctx |
|
) |
| |
|
static |
◆ test_process()
◆ test_read()
◆ test_write()
◆ usage()
◆ app_io
Initial value:= {
.name = "schedule-test",
.default_message_size = 4096,
}
static ssize_t test_encode(void const *instance, request_t *request, uint8_t *buffer, size_t buffer_len)
static ssize_t test_read(void *ctx, UNUSED void **packet_ctx, fr_time_t **recv_time, uint8_t *buffer, size_t buffer_len, size_t *leftover, uint32_t *priority, bool *is_dup)
static int test_open(void *ctx, UNUSED void const *master_ctx)
static size_t test_nak(void const *ctx, UNUSED void *packet_ctx, uint8_t *const packet, size_t packet_len, UNUSED uint8_t *reply, UNUSED size_t reply_len)
static int test_fd(void const *ctx)
static ssize_t test_write(void *ctx, UNUSED void *packet_ctx, UNUSED fr_time_t request_time, uint8_t *buffer, size_t buffer_len, UNUSED size_t written)
static int test_decode(void const *instance, request_t *request, uint8_t *const data, size_t data_len)
Definition at line 183 of file radius_schedule_test.c.
◆ debug_lvl
◆ my_ipaddr
◆ my_port
◆ secret
char const* secret = "testing123" |
|
static |
◆ start_time
◆ test_app
Initial value:= {
}
static void entry_point_set(UNUSED void const *ctx, request_t *request)
Definition at line 200 of file radius_schedule_test.c.
◆ tpc