The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Functions
packet.c File Reference

fr_packet_t alloc/free functions More...

#include <freeradius-devel/util/misc.h>
#include <freeradius-devel/util/packet.h>
#include <freeradius-devel/util/rand.h>
+ Include dependency graph for packet.c:

Go to the source code of this file.

Functions

fr_packet_tfr_packet_alloc (TALLOC_CTX *ctx, bool new_vector)
 Allocate a new fr_packet_t. More...
 
fr_packet_tfr_packet_alloc_reply (TALLOC_CTX *ctx, fr_packet_t *packet)
 Allocate a new fr_packet_t response. More...
 
void fr_packet_free (fr_packet_t **packet_p)
 Free a fr_packet_t. More...
 

Detailed Description

fr_packet_t alloc/free functions

Definition in file packet.c.

Function Documentation

◆ fr_packet_alloc()

fr_packet_t* fr_packet_alloc ( TALLOC_CTX *  ctx,
bool  new_vector 
)

Allocate a new fr_packet_t.

Parameters
ctxthe context in which the packet is allocated. May be NULL if the packet is not associated with a request_t.
new_vectorif true a new request authenticator will be generated.
Returns

Definition at line 38 of file packet.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fr_packet_alloc_reply()

fr_packet_t* fr_packet_alloc_reply ( TALLOC_CTX *  ctx,
fr_packet_t packet 
)

Allocate a new fr_packet_t response.

Parameters
ctxthe context in which the packet is allocated. May be NULL if the packet is not associated with a request_t.
packetThe request packet.
Returns

Definition at line 63 of file packet.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fr_packet_free()

void fr_packet_free ( fr_packet_t **  packet_p)

Free a fr_packet_t.

Definition at line 89 of file packet.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: