The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
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_alias_export (FILE *fp, fr_dict_attr_t const *parent)
 
void fr_dict_attr_debug (FILE *fp, fr_dict_attr_t const *da)
 
static void fr_dict_attr_export (FILE *fp, 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.
 
void fr_dict_debug (FILE *fp, fr_dict_t const *dict)
 
void fr_dict_export (FILE *fp, fr_dict_t const *dict)
 Export in the standard form: ATTRIBUTE name oid flags.
 
void fr_dict_namespace_debug (FILE *fp, 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]
FILE * fp
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 188 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 272 of file dict_print.c.

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

◆ fr_dict_alias_export()

void fr_dict_alias_export ( FILE *  fp,
fr_dict_attr_t const *  parent 
)

Definition at line 313 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 ( FILE *  fp,
fr_dict_attr_t const *  da 
)

Definition at line 255 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 ( FILE *  fp,
fr_dict_attr_t const *  da 
)
static

Definition at line 293 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 ( FILE *  fp,
fr_dict_t const *  dict 
)

Definition at line 267 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 ( FILE *  fp,
fr_dict_t const *  dict 
)

Export in the standard form: ATTRIBUTE name oid flags.

Definition at line 308 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 ( FILE *  fp,
fr_dict_attr_t const *  da 
)

Definition at line 231 of file dict_print.c.

+ Here is the call graph for this function: