The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
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.
 

Data Fields

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

Detailed Description

Define entry and head types for tmpl request references.

Definition at line 286 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 329 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 318 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 321 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 326 of file tmpl.h.

◆ bare_word_enum

uint8_t tmpl_attr_rules_s::bare_word_enum

for v3 compatibility.

Definition at line 335 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 287 of file tmpl.h.

◆ disallow_filters

uint8_t tmpl_attr_rules_s::disallow_filters

disallow filters.

Definition at line 331 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 309 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 315 of file tmpl.h.

◆ prefix

tmpl_attr_prefix_t tmpl_attr_rules_s::prefix

Whether the attribute reference requires a prefix.

Definition at line 312 of file tmpl.h.

◆ xlat

uint8_t tmpl_attr_rules_s::xlat

for %{User-Name}

Definition at line 333 of file tmpl.h.


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