The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Macros | Functions
dict_print.c File Reference

Print dictionary attributes, flags, etc... More...

#include <freeradius-devel/util/dict_priv.h>
#include <freeradius-devel/util/print.h>
#include <freeradius-devel/util/proto.h>
#include <ctype.h>
+ Include dependency graph for dict_print.c:

Go to the source code of this file.

Data Structures

struct  fr_dict_attr_debug_t
 

Macros

#define FLAG_SET(_flag)   if (flags->_flag) FR_SBUFF_IN_STRCPY_LITERAL_RETURN(&our_out, STRINGIFY(_flag)",")
 

Functions

static int dict_attr_debug (fr_dict_attr_t const *da, void *uctx)
 
static int dict_attr_export (fr_dict_attr_t const *da, void *uctx)
 
void fr_dict_attr_debug (fr_dict_attr_t const *da)
 
static void fr_dict_attr_export (fr_dict_attr_t const *da)
 
ssize_t fr_dict_attr_flags_print (fr_sbuff_t *out, fr_dict_t const *dict, fr_type_t type, fr_dict_attr_flags_t const *flags)
 
ssize_t fr_dict_attr_oid_print (fr_sbuff_t *out, fr_dict_attr_t const *ancestor, fr_dict_attr_t const *da, bool numeric)
 Build the da_stack for the specified DA and encode the path by name in OID form. More...
 
void fr_dict_debug (fr_dict_t const *dict)
 
void fr_dict_export (fr_dict_t const *dict)
 Export in the standard form: ATTRIBUTE name oid flags. More...
 
void fr_dict_namespace_debug (fr_dict_attr_t const *da)
 

Detailed Description

Print dictionary attributes, flags, etc...

Definition in file dict_print.c.


Data Structure Documentation

◆ fr_dict_attr_debug_t

struct fr_dict_attr_debug_t

Definition at line 179 of file dict_print.c.

+ Collaboration diagram for fr_dict_attr_debug_t:
Data Fields
fr_dict_t const * dict
char flags[256]
char oid[256]
char prefix[256]
unsigned int start_depth

Macro Definition Documentation

◆ FLAG_SET

#define FLAG_SET (   _flag)    if (flags->_flag) FR_SBUFF_IN_STRCPY_LITERAL_RETURN(&our_out, STRINGIFY(_flag)",")

Function Documentation

◆ dict_attr_debug()

static int dict_attr_debug ( fr_dict_attr_t const *  da,
void *  uctx 
)
static

Definition at line 187 of file dict_print.c.

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

◆ dict_attr_export()

static int dict_attr_export ( fr_dict_attr_t const *  da,
void *  uctx 
)
static

Definition at line 263 of file dict_print.c.

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

◆ fr_dict_attr_debug()

void fr_dict_attr_debug ( fr_dict_attr_t const *  da)

Definition at line 250 of file dict_print.c.

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

◆ fr_dict_attr_export()

static void fr_dict_attr_export ( fr_dict_attr_t const *  da)
static

Definition at line 284 of file dict_print.c.

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

◆ fr_dict_attr_flags_print()

ssize_t fr_dict_attr_flags_print ( fr_sbuff_t out,
fr_dict_t const *  dict,
fr_type_t  type,
fr_dict_attr_flags_t const *  flags 
)

Definition at line 30 of file dict_print.c.

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

◆ fr_dict_attr_oid_print()

ssize_t fr_dict_attr_oid_print ( fr_sbuff_t out,
fr_dict_attr_t const *  ancestor,
fr_dict_attr_t const *  da,
bool  numeric 
)

Build the da_stack for the specified DA and encode the path by name in OID form.

Parameters
[out]outWhere to write the OID.
[in]ancestorIf not NULL, only print OID portion between ancestor and da.
[in]dato print OID string for.
[in]numericprint the OID components as numbers, not attribute names.
Returns
  • >0 The number of bytes written to the buffer.
  • <= 0 The number of bytes we would have needed to write the next OID component.

Definition at line 125 of file dict_print.c.

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

◆ fr_dict_debug()

void fr_dict_debug ( fr_dict_t const *  dict)

Definition at line 258 of file dict_print.c.

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

◆ fr_dict_export()

void fr_dict_export ( fr_dict_t const *  dict)

Export in the standard form: ATTRIBUTE name oid flags.

Definition at line 295 of file dict_print.c.

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

◆ fr_dict_namespace_debug()

void fr_dict_namespace_debug ( fr_dict_attr_t const *  da)

Definition at line 230 of file dict_print.c.

+ Here is the call graph for this function: