All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
protocol.h File Reference

Protocol module API. More...

Go to the source code of this file.

Data Structures

struct  fr_protocol_t
 

Macros

#define TRANSPORT_DUAL   (TRANSPORT_UDP | TRANSPORT_TCP)
 
#define TRANSPORT_TCP   (1 << IPPROTO_TCP)
 
#define TRANSPORT_UDP   (1 << IPPROTO_UDP)
 

Typedefs

typedef struct fr_protocol_t fr_protocol_t
 
typedef void(* rad_listen_free_t )(rad_listen_t *)
 
typedef int(* rad_listen_parse_t )(CONF_SECTION *, rad_listen_t *)
 
typedef ssize_t(* rad_listen_size_t )(uint8_t const *data, size_t data_len)
 

Functions

void common_packet_debug (REQUEST *request, RADIUS_PACKET *packet, bool received)
 
int common_socket_open (CONF_SECTION *cs, rad_listen_t *this)
 
int common_socket_parse (CONF_SECTION *cs, rad_listen_t *this)
 
int common_socket_print (rad_listen_t const *this, char *buffer, size_t bufsize)
 

Detailed Description

Protocol module API.

Id:
b0d31a8b4bf5f53462736f0d83e7c234558caf7b

Definition in file protocol.h.


Data Structure Documentation

struct fr_protocol_t

Definition at line 39 of file protocol.h.

+ Collaboration diagram for fr_protocol_t:
Data Fields
rad_listen_debug_t debug
rad_listen_decode_t decode
rad_listen_encode_t encode
rad_listen_free_t free
size_t inst_size
uint64_t magic Used to validate loaded library.
char const * name The name of the protocol.
rad_listen_parse_t open
rad_listen_parse_t parse
rad_listen_print_t print
CONF_PARSER * proto_config
rad_listen_recv_t recv
rad_listen_send_t send
rad_listen_size_t size
bool tls
uint32_t transports

Macro Definition Documentation

#define TRANSPORT_DUAL   (TRANSPORT_UDP | TRANSPORT_TCP)

Definition at line 63 of file protocol.h.

#define TRANSPORT_TCP   (1 << IPPROTO_TCP)

Definition at line 61 of file protocol.h.

#define TRANSPORT_UDP   (1 << IPPROTO_UDP)

Definition at line 62 of file protocol.h.

Typedef Documentation

typedef struct fr_protocol_t fr_protocol_t
typedef void(* rad_listen_free_t)(rad_listen_t *)

Definition at line 36 of file protocol.h.

typedef int(* rad_listen_parse_t)(CONF_SECTION *, rad_listen_t *)

Definition at line 35 of file protocol.h.

typedef ssize_t(* rad_listen_size_t)(uint8_t const *data, size_t data_len)

Definition at line 37 of file protocol.h.

Function Documentation

void common_packet_debug ( REQUEST request,
RADIUS_PACKET packet,
bool  received 
)

Definition at line 1153 of file listen.c.

+ Here is the call graph for this function:

int common_socket_open ( CONF_SECTION cs,
rad_listen_t this 
)

Definition at line 1599 of file listen.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int common_socket_parse ( CONF_SECTION cs,
rad_listen_t this 
)

Definition at line 1274 of file listen.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int common_socket_print ( rad_listen_t const *  this,
char *  buffer,
size_t  bufsize 
)

Definition at line 1021 of file listen.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: