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

Functions to support RADIUS bio handlers for server udp sockets. More...

#include <freeradius-devel/bio/packet.h>
#include <freeradius-devel/radius/server_udp.h>
#include <freeradius-devel/radius/server_priv.h>
+ Include dependency graph for server_udp.c:

Go to the source code of this file.

Functions

fr_bio_packet_tfr_radius_server_udp_bio_alloc (TALLOC_CTX *ctx, fr_radius_server_config_t *cfg, fr_bio_fd_config_t const *fd_cfg)
 Allocate a RADIUS bio for receiving packets from clients. More...
 
static int fr_radius_server_udp_bio_read (fr_bio_packet_t *bio, void **packet_ctx_p, fr_packet_t **packet_p, TALLOC_CTX *out_ctx, fr_pair_list_t *out)
 
static fr_bio_dedup_entry_tradius_server_dedup_get_item (UNUSED fr_bio_t *bio, void *packet_ctx)
 
static bool radius_server_dedup_receive (fr_bio_t *bio, fr_bio_dedup_entry_t *dedup_ctx, void *packet_ctx)
 
static void radius_server_dedup_release (fr_bio_t *bio, fr_bio_dedup_entry_t *dedup_ctx, UNUSED fr_bio_dedup_release_reason_t reason)
 

Detailed Description

Functions to support RADIUS bio handlers for server udp sockets.

Id
f753e259b5d9826882fc06effa42bff7bdd8ca74

Definition in file server_udp.c.

Function Documentation

◆ fr_radius_server_udp_bio_alloc()

fr_bio_packet_t* fr_radius_server_udp_bio_alloc ( TALLOC_CTX *  ctx,
fr_radius_server_config_t cfg,
fr_bio_fd_config_t const *  fd_cfg 
)

Allocate a RADIUS bio for receiving packets from clients.

It also verifies that the packets we receive are valid for RADIUS.

Definition at line 107 of file server_udp.c.

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

◆ fr_radius_server_udp_bio_read()

static int fr_radius_server_udp_bio_read ( fr_bio_packet_t bio,
void **  packet_ctx_p,
fr_packet_t **  packet_p,
TALLOC_CTX *  out_ctx,
fr_pair_list_t out 
)
static

Definition at line 76 of file server_udp.c.

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

◆ radius_server_dedup_get_item()

static fr_bio_dedup_entry_t* radius_server_dedup_get_item ( UNUSED fr_bio_t bio,
void *  packet_ctx 
)
static

Definition at line 60 of file server_udp.c.

+ Here is the caller graph for this function:

◆ radius_server_dedup_receive()

static bool radius_server_dedup_receive ( fr_bio_t bio,
fr_bio_dedup_entry_t dedup_ctx,
void *  packet_ctx 
)
static

Definition at line 31 of file server_udp.c.

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

◆ radius_server_dedup_release()

static void radius_server_dedup_release ( fr_bio_t bio,
fr_bio_dedup_entry_t dedup_ctx,
UNUSED fr_bio_dedup_release_reason_t  reason 
)
static

Definition at line 67 of file server_udp.c.

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