#include <freeradius-devel/libradius.h>
#include <fcntl.h>
Go to the source code of this file.
|
int | fr_is_inaddr_any (fr_ipaddr_t *ipaddr) |
| Determine if an address is the INADDR_ANY address for its address family. More...
|
|
int | fr_packet_cmp (RADIUS_PACKET const *a, RADIUS_PACKET const *b) |
|
void | fr_packet_header_print (FILE *fp, RADIUS_PACKET *packet, bool received) |
|
fr_packet_list_t * | fr_packet_list_create (int alloc_id) |
|
int | fr_packet_list_fd_set (fr_packet_list_t *pl, fd_set *set) |
|
RADIUS_PACKET ** | fr_packet_list_find (fr_packet_list_t *pl, RADIUS_PACKET *request) |
|
RADIUS_PACKET ** | fr_packet_list_find_byreply (fr_packet_list_t *pl, RADIUS_PACKET *reply) |
|
void | fr_packet_list_free (fr_packet_list_t *pl) |
|
bool | fr_packet_list_id_alloc (fr_packet_list_t *pl, int proto, RADIUS_PACKET **request_p, void **pctx) |
|
bool | fr_packet_list_id_free (fr_packet_list_t *pl, RADIUS_PACKET *request, bool yank) |
|
bool | fr_packet_list_insert (fr_packet_list_t *pl, RADIUS_PACKET **request_p) |
|
uint32_t | fr_packet_list_num_elements (fr_packet_list_t *pl) |
|
uint32_t | fr_packet_list_num_incoming (fr_packet_list_t *pl) |
|
uint32_t | fr_packet_list_num_outgoing (fr_packet_list_t *pl) |
|
RADIUS_PACKET * | fr_packet_list_recv (fr_packet_list_t *pl, fd_set *set) |
|
bool | fr_packet_list_socket_add (fr_packet_list_t *pl, int sockfd, int proto, fr_ipaddr_t *dst_ipaddr, uint16_t dst_port, void *ctx) |
|
bool | fr_packet_list_socket_del (fr_packet_list_t *pl, int sockfd) |
|
bool | fr_packet_list_socket_freeze (fr_packet_list_t *pl, int sockfd) |
|
bool | fr_packet_list_socket_thaw (fr_packet_list_t *pl, int sockfd) |
|
int | fr_packet_list_walk (fr_packet_list_t *pl, void *ctx, rb_walker_t callback) |
|
bool | fr_packet_list_yank (fr_packet_list_t *pl, RADIUS_PACKET *request) |
|
void | fr_request_from_reply (RADIUS_PACKET *request, RADIUS_PACKET const *reply) |
|
int | fr_socket (fr_ipaddr_t *ipaddr, uint16_t port) |
|
static fr_packet_socket_t * | fr_socket_find (fr_packet_list_t *pl, int sockfd) |
|
static int | packet_entry_cmp (void const *one, void const *two) |
|
struct fr_packet_socket_t |
Definition at line 241 of file packet.c.
Data Fields |
void * |
ctx |
|
bool |
dont_use |
|
int |
dst_any |
|
fr_ipaddr_t |
dst_ipaddr |
|
uint16_t |
dst_port |
|
uint8_t |
id[32] |
|
uint32_t |
num_outgoing |
|
int |
proto |
|
int |
sockfd |
|
int |
src_any |
|
fr_ipaddr_t |
src_ipaddr |
|
uint16_t |
src_port |
|
#define FNV_MAGIC_PRIME (0x01000193) |
#define ID_j ((j + start_j) & 0x1f) |
#define ID_k ((k + start_k) & 0x07) |
#define MAX_SOCKETS (256) |
Determine if an address is the INADDR_ANY address for its address family.
- Parameters
-
- Returns
- 0 if it's not.
- 1 if it is.
- -1 on error.
Definition at line 91 of file packet.c.
void fr_packet_header_print |
( |
FILE * |
fp, |
|
|
RADIUS_PACKET * |
packet, |
|
|
bool |
received |
|
) |
| |
bool fr_packet_list_socket_add |
( |
fr_packet_list_t * |
pl, |
|
|
int |
sockfd, |
|
|
int |
proto, |
|
|
fr_ipaddr_t * |
dst_ipaddr, |
|
|
uint16_t |
dst_port, |
|
|
void * |
ctx |
|
) |
| |
static int packet_entry_cmp |
( |
void const * |
one, |
|
|
void const * |
two |
|
) |
| |
|
static |