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) |
Protocol module API.
Definition in file protocol.h.
struct fr_protocol_t |
Definition at line 39 of file protocol.h.
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 | ||
CONF_PARSER * | proto_config | |
rad_listen_recv_t | recv | |
rad_listen_send_t | send | |
rad_listen_size_t | size | |
bool | tls | |
uint32_t | transports |
#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 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.
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 | ||
) |