24RCSIDH(packet_h,
"$Id: 99b4344a827e345c7660130ceaf5c83398c0f6bd $")
30#include <freeradius-devel/build.h>
31#include <freeradius-devel/missing.h>
32#include <freeradius-devel/util/inet.h>
33#include <freeradius-devel/util/pair.h>
34#include <freeradius-devel/util/rb.h>
35#include <freeradius-devel/util/socket.h>
36#include <freeradius-devel/util/talloc.h>
37#include <freeradius-devel/util/time.h>
40# define PACKET_VERIFY(_x) (void) talloc_get_type_abort_const(_x, fr_packet_t)
42# define PACKET_VERIFY(_x) fr_cond_assert(_x)
45#define RADIUS_AUTH_VECTOR_LENGTH 16
void fr_packet_free(fr_packet_t **)
Free a fr_packet_t.
fr_rb_node_t node
Allows insertion into the list.c rbtree, may be removed in future.
unsigned int code
Packet code (type).
fr_socket_t socket
This packet was received on.
int id
Packet ID (used to link requests/responses).
uint8_t * data
Packet data (body).
fr_packet_t * fr_packet_alloc_reply(TALLOC_CTX *ctx, fr_packet_t *)
Allocate a new fr_packet_t response.
fr_packet_t * fr_packet_alloc(TALLOC_CTX *ctx, bool new_vector)
Allocate a new fr_packet_t.
size_t data_len
Length of packet data.
#define RADIUS_AUTH_VECTOR_LENGTH
fr_time_t timestamp
When we received the packet.
Holds information necessary for binding or connecting to a socket.