The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Functions | Variables
decode.c File Reference

Functions to decode BFD packets. More...

#include <freeradius-devel/util/struct.h>
#include <freeradius-devel/io/test_point.h>
#include <freeradius-devel/internal/internal.h>
#include "attrs.h"
+ Include dependency graph for decode.c:

Go to the source code of this file.

Functions

static int decode_test_ctx (void **out, TALLOC_CTX *ctx)
 
static ssize_t decode_value (TALLOC_CTX *ctx, fr_pair_list_t *out, fr_dict_attr_t const *parent, uint8_t const *data, size_t const data_len, UNUSED void *decode_ctx)
 
ssize_t fr_bfd_decode (TALLOC_CTX *ctx, fr_pair_list_t *out, uint8_t const *packet, size_t packet_len, char const *secret, UNUSED size_t secret_len)
 Decode a raw BFD packet into VPs. More...
 
static ssize_t fr_bfd_decode_proto (TALLOC_CTX *ctx, fr_pair_list_t *out, uint8_t const *data, size_t data_len, void *proto_ctx)
 

Variables

fr_test_point_proto_decode_t bfd_tp_decode_proto
 

Detailed Description

Functions to decode BFD packets.

Id
81e33fdf9ddf629533b7ee705542dd8d3cc817ed

Definition in file decode.c.

Function Documentation

◆ decode_test_ctx()

static int decode_test_ctx ( void **  out,
TALLOC_CTX *  ctx 
)
static

Definition at line 102 of file decode.c.

◆ decode_value()

static ssize_t decode_value ( TALLOC_CTX *  ctx,
fr_pair_list_t out,
fr_dict_attr_t const *  parent,
uint8_t const *  data,
size_t const  data_len,
UNUSED void *  decode_ctx 
)
static

Definition at line 33 of file decode.c.

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

◆ fr_bfd_decode()

ssize_t fr_bfd_decode ( TALLOC_CTX *  ctx,
fr_pair_list_t out,
uint8_t const *  packet,
size_t  packet_len,
char const *  secret,
UNUSED size_t  secret_len 
)

Decode a raw BFD packet into VPs.

Definition at line 64 of file decode.c.

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

◆ fr_bfd_decode_proto()

static ssize_t fr_bfd_decode_proto ( TALLOC_CTX *  ctx,
fr_pair_list_t out,
uint8_t const *  data,
size_t  data_len,
void *  proto_ctx 
)
static

Definition at line 115 of file decode.c.

+ Here is the call graph for this function:

Variable Documentation

◆ bfd_tp_decode_proto

fr_test_point_proto_decode_t bfd_tp_decode_proto
Initial value:
= {
.test_ctx = decode_test_ctx,
}
static int decode_test_ctx(void **out, TALLOC_CTX *ctx)
Definition: decode.c:102
static ssize_t fr_bfd_decode_proto(TALLOC_CTX *ctx, fr_pair_list_t *out, uint8_t const *data, size_t data_len, void *proto_ctx)
Definition: decode.c:115

Definition at line 204 of file decode.c.