The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Typedefs | Enumerations
listen.h File Reference

Listener API. More...

#include <freeradius-devel/server/client.h>
#include <freeradius-devel/server/socket.h>
#include <freeradius-devel/server/stats.h>
#include <freeradius-devel/util/event.h>
#include <freeradius-devel/util/packet.h>
#include <freeradius-devel/util/pcap.h>
+ Include dependency graph for listen.h:

Go to the source code of this file.

Data Structures

struct  rad_listen
 

Typedefs

typedef void(* rad_listen_debug_t) (request_t *, fr_packet_t *, fr_pair_list_t *, bool received)
 
typedef int(* rad_listen_decode_t) (rad_listen_t *, request_t *)
 
typedef int(* rad_listen_encode_t) (rad_listen_t *, request_t *)
 
typedef int(* rad_listen_error_t) (rad_listen_t *, int)
 
typedef int(* rad_listen_print_t) (rad_listen_t const *, char *, size_t)
 
typedef int(* rad_listen_recv_t) (rad_listen_t *)
 
typedef int(* rad_listen_send_t) (rad_listen_t *, request_t *)
 
typedef enum RAD_LISTEN_STATUS RAD_LISTEN_STATUS
 
typedef struct rad_listen rad_listen_t
 
typedef enum RAD_LISTEN_TYPE RAD_LISTEN_TYPE
 
typedef struct rad_protocol_s rad_protocol_t
 

Enumerations

enum  RAD_LISTEN_STATUS {
  RAD_LISTEN_STATUS_INIT = 0 ,
  RAD_LISTEN_STATUS_KNOWN ,
  RAD_LISTEN_STATUS_FROZEN ,
  RAD_LISTEN_STATUS_EOL ,
  RAD_LISTEN_STATUS_REMOVE_NOW
}
 
enum  RAD_LISTEN_TYPE {
  RAD_LISTEN_NONE = 0 ,
  RAD_LISTEN_PROXY ,
  RAD_LISTEN_AUTH ,
  RAD_LISTEN_ACCT ,
  RAD_LISTEN_DETAIL ,
  RAD_LISTEN_VQP ,
  RAD_LISTEN_DHCP ,
  RAD_LISTEN_COMMAND ,
  RAD_LISTEN_COA ,
  RAD_LISTEN_MAX
}
 

Detailed Description

Listener API.

Id
c3f60b1c0f9dae95bf38c0b619ecfe418fc2ffc7

Binds sockets to protocol encoders/decoders.

Definition in file listen.h.


Data Structure Documentation

◆ rad_listen

struct rad_listen

Definition at line 76 of file listen.h.

+ Collaboration diagram for rad_listen:
Data Fields
fr_rb_tree_t * children
int count
CONF_SECTION const * cs
void * data
rad_listen_debug_t debug
rad_listen_decode_t decode
bool dual
rad_listen_encode_t encode
rad_listen_error_t error
int fd
rad_listen_t * next
bool nodup
bool old_style
rad_listen_t * parent
rad_listen_print_t print
rad_protocol_t const * proto
rad_listen_recv_t recv
rad_listen_send_t send
char const * server Name of the virtual server that the listener is associated with.
CONF_SECTION * server_cs Virtual server that the listener is associated with.
RAD_LISTEN_STATUS status
RAD_LISTEN_TYPE type

Typedef Documentation

◆ rad_listen_debug_t

typedef void(* rad_listen_debug_t) (request_t *, fr_packet_t *, fr_pair_list_t *, bool received)

Definition at line 72 of file listen.h.

◆ rad_listen_decode_t

typedef int(* rad_listen_decode_t) (rad_listen_t *, request_t *)

Definition at line 74 of file listen.h.

◆ rad_listen_encode_t

typedef int(* rad_listen_encode_t) (rad_listen_t *, request_t *)

Definition at line 73 of file listen.h.

◆ rad_listen_error_t

typedef int(* rad_listen_error_t) (rad_listen_t *, int)

Definition at line 70 of file listen.h.

◆ rad_listen_print_t

typedef int(* rad_listen_print_t) (rad_listen_t const *, char *, size_t)

Definition at line 71 of file listen.h.

◆ rad_listen_recv_t

typedef int(* rad_listen_recv_t) (rad_listen_t *)

Definition at line 68 of file listen.h.

◆ rad_listen_send_t

typedef int(* rad_listen_send_t) (rad_listen_t *, request_t *)

Definition at line 69 of file listen.h.

◆ RAD_LISTEN_STATUS

◆ rad_listen_t

typedef struct rad_listen rad_listen_t

Definition at line 1 of file listen.h.

◆ RAD_LISTEN_TYPE

◆ rad_protocol_t

Definition at line 1 of file listen.h.

Enumeration Type Documentation

◆ RAD_LISTEN_STATUS

Enumerator
RAD_LISTEN_STATUS_INIT 
RAD_LISTEN_STATUS_KNOWN 
RAD_LISTEN_STATUS_FROZEN 
RAD_LISTEN_STATUS_EOL 
RAD_LISTEN_STATUS_REMOVE_NOW 

Definition at line 57 of file listen.h.

◆ RAD_LISTEN_TYPE

Enumerator
RAD_LISTEN_NONE 
RAD_LISTEN_PROXY 
RAD_LISTEN_AUTH 
RAD_LISTEN_ACCT 
RAD_LISTEN_DETAIL 
RAD_LISTEN_VQP 
RAD_LISTEN_DHCP 
RAD_LISTEN_COMMAND 
RAD_LISTEN_COA 
RAD_LISTEN_MAX 

Definition at line 44 of file listen.h.