The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Generic functions for decoding protocols. More...
#include <freeradius-devel/io/test_point.h>
#include <freeradius-devel/util/proto.h>
#include <freeradius-devel/util/encode.h>
Go to the source code of this file.
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... | |
Generic functions for decoding protocols.
Definition in file encode.c.
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.