The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Public Member Functions | Data Fields
tmpl_attr_rules_s Struct Reference

Define entry and head types for tmpl request references. More...

#include <tmpl.h>

+ Collaboration diagram for tmpl_attr_rules_s:

Public Member Functions

 FR_DLIST_HEAD (tmpl_request_list) _CONST *request_def
 < Point in dictionary tree to resume parsing from. More...
 

Data Fields

uint8_t allow_foreign:1
 Allow arguments not found in dict_def. More...
 
uint8_t allow_unknown:1
 Allow unknown attributes i.e. More...
 
uint8_t allow_unresolved:1
 Allow attributes that look valid but were not found in the dictionaries. More...
 
uint8_t allow_wildcard:1
 Allow the special case of . More...
 
fr_dict_t const * dict_def
 Default dictionary to use with unqualified attribute references. More...
 
uint8_t disallow_filters:1
 disallow filters. More...
 
fr_dict_attr_t const * list_def
 Default list to use with unqualified attribute reference. More...
 
tmpl_attr_list_presence_t list_presence
 Whether the attribute reference can have a list, forbid it, or require it. More...
 
tmpl_attr_prefix_t prefix
 Whether the attribute reference requires a prefix. More...
 

Detailed Description

Define entry and head types for tmpl request references.

Definition at line 284 of file tmpl.h.

Member Function Documentation

◆ FR_DLIST_HEAD()

tmpl_attr_rules_s::FR_DLIST_HEAD ( tmpl_request_list  )

< Point in dictionary tree to resume parsing from.

If this is provided then dict_def request_def and list_def will be ignored and the presence of any of those qualifiers will be treated as an error. Default request to use with unqualified attribute references. If NULL the request is assumed to but the current request. Usually this will be one of

  • tmpl_request_def_current
  • tmpl_request_def_outer
  • tmpl_request_def_parent If a custom list needs to be used it should be allocated on the stack and a pointer to it placed here.

Field Documentation

◆ allow_foreign

uint8_t tmpl_attr_rules_s::allow_foreign

Allow arguments not found in dict_def.

Definition at line 327 of file tmpl.h.

◆ allow_unknown

uint8_t tmpl_attr_rules_s::allow_unknown

Allow unknown attributes i.e.

attributes defined by OID string.

Definition at line 316 of file tmpl.h.

◆ allow_unresolved

uint8_t tmpl_attr_rules_s::allow_unresolved

Allow attributes that look valid but were not found in the dictionaries.

This should be used as part of a multi-pass approach to parsing.

Definition at line 319 of file tmpl.h.

◆ allow_wildcard

uint8_t tmpl_attr_rules_s::allow_wildcard

Allow the special case of .

[*] representing all children of a structural attribute.

Definition at line 324 of file tmpl.h.

◆ dict_def

fr_dict_t const* tmpl_attr_rules_s::dict_def

Default dictionary to use with unqualified attribute references.

Definition at line 285 of file tmpl.h.

◆ disallow_filters

uint8_t tmpl_attr_rules_s::disallow_filters

disallow filters.

Definition at line 329 of file tmpl.h.

◆ list_def

fr_dict_attr_t const* tmpl_attr_rules_s::list_def

Default list to use with unqualified attribute reference.

Definition at line 307 of file tmpl.h.

◆ list_presence

tmpl_attr_list_presence_t tmpl_attr_rules_s::list_presence

Whether the attribute reference can have a list, forbid it, or require it.

Definition at line 313 of file tmpl.h.

◆ prefix

tmpl_attr_prefix_t tmpl_attr_rules_s::prefix

Whether the attribute reference requires a prefix.

Definition at line 310 of file tmpl.h.


The documentation for this struct was generated from the following file: