All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
proto.h File Reference

Protocol encoder/decoder support functions. More...

#include <freeradius-devel/libradius.h>
#include <freeradius-devel/dict.h>
+ Include dependency graph for proto.h:

Go to the source code of this file.

Macros

#define FR_PROTO_HEX_DUMP(_x, _y, _z)   if (fr_log_fp && (fr_debug_lvl > 3)) fr_proto_print_hex_data(__FILE__, __LINE__, _x, _y, _z)
 
#define FR_PROTO_STACK_PRINT(_x, _y)   if (fr_log_fp && (fr_debug_lvl > 3)) fr_proto_tlv_stack_print( __FILE__, __LINE__, __FUNCTION__, _x, _y)
 
#define FR_PROTO_TRACE(_x,...)   if (fr_log_fp && (fr_debug_lvl > 3)) fr_proto_print(__FILE__, __LINE__, _x, ## __VA_ARGS__)
 

Functions

void fr_proto_print (char const *file, int line, char const *fmt,...) CC_HINT(format(printf
 
void void fr_proto_print_hex_data (char const *file, int line, char const *msg, uint8_t const *data, size_t len)
 
void fr_proto_tlv_stack_build (fr_dict_attr_t const **tlv_stack, fr_dict_attr_t const *da)
 
void fr_proto_tlv_stack_print (char const *file, int line, char const *func, fr_dict_attr_t const **tlv_stack, unsigned int depth)
 

Detailed Description

Protocol encoder/decoder support functions.

Id:
191f48450dd4aded7476570248b771ecf1829dd8

Definition in file proto.h.

Macro Definition Documentation

#define FR_PROTO_HEX_DUMP (   _x,
  _y,
  _z 
)    if (fr_log_fp && (fr_debug_lvl > 3)) fr_proto_print_hex_data(__FILE__, __LINE__, _x, _y, _z)

Definition at line 37 of file proto.h.

#define FR_PROTO_STACK_PRINT (   _x,
  _y 
)    if (fr_log_fp && (fr_debug_lvl > 3)) fr_proto_tlv_stack_print( __FILE__, __LINE__, __FUNCTION__, _x, _y)

Definition at line 38 of file proto.h.

#define FR_PROTO_TRACE (   _x,
  ... 
)    if (fr_log_fp && (fr_debug_lvl > 3)) fr_proto_print(__FILE__, __LINE__, _x, ## __VA_ARGS__)

Definition at line 36 of file proto.h.

Function Documentation

void fr_proto_print ( char const *  file,
int  line,
char const *  fmt,
  ... 
)
void void fr_proto_print_hex_data ( char const *  file,
int  line,
char const *  msg,
uint8_t const *  data,
size_t  len 
)

Definition at line 49 of file proto.c.

+ Here is the call graph for this function:

void fr_proto_tlv_stack_build ( fr_dict_attr_t const **  tlv_stack,
fr_dict_attr_t const *  da 
)

Definition at line 94 of file proto.c.

+ Here is the caller graph for this function:

void fr_proto_tlv_stack_print ( char const *  file,
int  line,
char const *  func,
fr_dict_attr_t const **  tlv_stack,
unsigned int  depth 
)

Definition at line 69 of file proto.c.

+ Here is the call graph for this function: