Functions to encode BFD packets.
More...
#include <freeradius-devel/util/dbuff.h>
#include <freeradius-devel/util/struct.h>
#include <freeradius-devel/io/test_point.h>
#include <freeradius-devel/internal/internal.h>
#include "attrs.h"
Go to the source code of this file.
|
| static int | encode_test_ctx (void **out, TALLOC_CTX *ctx, UNUSED fr_dict_t const *dict, UNUSED fr_dict_attr_t const *root_da) |
| |
| static ssize_t | encode_value (fr_dbuff_t *dbuff, fr_da_stack_t *da_stack, unsigned int depth, fr_dcursor_t *cursor, void *encode_ctx) |
| | Encodes the data portion of an attribute.
|
| |
| ssize_t | fr_bfd_encode (uint8_t *out, size_t outlen, UNUSED uint8_t const *original, char const *secret, size_t secret_len, fr_pair_list_t *vps) |
| | Encode VPS into a BFD packet.
|
| |
| static ssize_t | fr_bfd_encode_proto (UNUSED TALLOC_CTX *ctx, fr_pair_list_t *vps, uint8_t *data, size_t data_len, void *proto_ctx) |
| |
| void * | fr_bfd_next_encodable (fr_dlist_head_t *list, void *to_eval, void *uctx) |
| |
Functions to encode BFD packets.
- Id
- 3c4a19a523e3ff8bd03d55b8b31091b9938b7397
- Copyright
- 2023 Network RADIUS SAS (legal.nosp@m.@net.nosp@m.workr.nosp@m.adiu.nosp@m.s.com)
Definition in file encode.c.
◆ encode_test_ctx()
◆ encode_value()
Encodes the data portion of an attribute.
- Returns
- > 0, Length of the data portion. = 0, we could not encode anything, skip this attribute (and don't encode the header) unless it's one of a list of exceptions. < 0, How many additional bytes we'd need as a negative integer. PAIR_ENCODE_FATAL_ERROR - Abort encoding the packet.
Definition at line 43 of file encode.c.
◆ fr_bfd_encode()
Encode VPS into a BFD packet.
Definition at line 100 of file encode.c.
◆ fr_bfd_encode_proto()
◆ fr_bfd_next_encodable()
| void * fr_bfd_next_encodable |
( |
fr_dlist_head_t * |
list, |
|
|
void * |
to_eval, |
|
|
void * |
uctx |
|
) |
| |
|
extern |
◆ bfd_tp_encode_proto
Initial value:= {
}
static ssize_t fr_bfd_encode_proto(UNUSED TALLOC_CTX *ctx, fr_pair_list_t *vps, uint8_t *data, size_t data_len, void *proto_ctx)
static int encode_test_ctx(void **out, TALLOC_CTX *ctx, UNUSED fr_dict_t const *dict, UNUSED fr_dict_attr_t const *root_da)
Definition at line 213 of file encode.c.