The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Protocol encoder support functions. More...
#include <freeradius-devel/util/pair.h>
#include <freeradius-devel/util/dbuff.h>
#include <freeradius-devel/util/proto.h>
Go to the source code of this file.
Macros | |
#define | PROTO_ENCODE_FUNC(_name) |
Typedefs | |
typedef ssize_t(* | fr_encode_dbuff_t) (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, unsigned int depth, fr_dcursor_t *cursor, void *encode_ctx) |
Typedefs for simplifying the use and declaration of protocol encoders. More... | |
Functions | |
ssize_t | fr_pair_array_to_network (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, int depth, fr_dcursor_t *cursor, void *encode_ctx, fr_encode_dbuff_t encode_value)) |
Encode an array of values from the network. More... | |
ssize_t | fr_pair_cursor_to_network (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, unsigned int depth, fr_dcursor_t *cursor, void *encode_ctx, fr_encode_dbuff_t encode_pair)) |
ssize_t | fr_pair_ref_to_network (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, unsigned int depth, fr_dcursor_t *cursor) |
Encode a foreign reference to the network. More... | |
#define PROTO_ENCODE_FUNC | ( | _name | ) |
typedef ssize_t(* fr_encode_dbuff_t) (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, unsigned int depth, fr_dcursor_t *cursor, void *encode_ctx) |
ssize_t fr_pair_array_to_network | ( | fr_dbuff_t * | dbuff, |
fr_da_stack_t * | da_stack, | ||
int | depth, | ||
fr_dcursor_t * | cursor, | ||
void * | encode_ctx, | ||
fr_encode_dbuff_t | encode_value | ||
) |
Encode an array of values from the network.
[out] | dbuff | buffer to write the TLV to. |
[in] | da_stack | Describing nesting of options. |
[in] | depth | in the da_stack. |
[in,out] | cursor | Current attribute we're encoding. |
[in] | encode_ctx | Containing DHCPv4 dictionary. |
[in] | encode_value | Function to perform encoding of a single value. |
Definition at line 42 of file encode.c.
ssize_t fr_pair_cursor_to_network | ( | fr_dbuff_t * | dbuff, |
fr_da_stack_t * | da_stack, | ||
unsigned int | depth, | ||
fr_dcursor_t * | cursor, | ||
void * | encode_ctx, | ||
fr_encode_dbuff_t | encode_pair | ||
) |
ssize_t fr_pair_ref_to_network | ( | fr_dbuff_t * | dbuff, |
fr_da_stack_t * | da_stack, | ||
unsigned int | depth, | ||
fr_dcursor_t * | cursor | ||
) |
Encode a foreign reference to the network.
[out] | dbuff | buffer to write the TLV to. |
[in] | da_stack | Describing nesting of options. |
[in] | depth | in the da_stack. |
[in,out] | cursor | Current attribute we're encoding. |
Definition at line 123 of file encode.c.