![]() |
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>
Include dependency graph for encode.c: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. | |
| 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_encode_value (fr_dbuff_t *dbuff, UNUSED fr_da_stack_t *da_stack, UNUSED unsigned int depth, fr_dcursor_t *cursor, UNUSED void *encode_ctx) |
| Generic encode value. | |
| 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. | |
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.
Here is the call graph for this function:
Here is the caller graph for this function:| 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_encode_value | ( | fr_dbuff_t * | dbuff, |
| UNUSED fr_da_stack_t * | da_stack, | ||
| UNUSED unsigned int | depth, | ||
| fr_dcursor_t * | cursor, | ||
| UNUSED void * | encode_ctx | ||
| ) |
| 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 115 of file encode.c.
Here is the call graph for this function:
Here is the caller graph for this function:
1.9.8