AVP manipulation and search API.  
More...
#include <freeradius-devel/util/dict.h>
#include <freeradius-devel/util/pair.h>
#include <freeradius-devel/util/pair_legacy.h>
#include <freeradius-devel/util/proto.h>
#include <freeradius-devel/util/regex.h>
#include <freeradius-devel/protocol/radius/rfc2865.h>
#include <freeradius-devel/protocol/freeradius/freeradius.internal.h>
Go to the source code of this file.
|  | 
| int | fr_pair_list_afrom_file (TALLOC_CTX *ctx, fr_dict_t const *dict, fr_pair_list_t *out, FILE *fp, bool *pfiledone) | 
|  | Read valuepairs from the fp up to End-Of-File. 
 | 
|  | 
| fr_slen_t | fr_pair_list_afrom_substr (fr_pair_parse_t const *root, fr_pair_parse_t *relative, fr_sbuff_t *in) | 
|  | Parse a fr_pair_list_t from a substring. 
 | 
|  | 
| void | fr_pair_list_move_op (fr_pair_list_t *to, fr_pair_list_t *from, fr_token_t op) | 
|  | Move pairs from source list to destination list respecting operator. 
 | 
|  | 
| static ssize_t | fr_pair_value_from_substr (fr_pair_t *vp, fr_sbuff_t *in, UNUSED bool tainted) | 
|  | 
AVP manipulation and search API. 
- Copyright
- 2000,2006,2015 The FreeRADIUS server project 
Definition in file pair_legacy.c.
◆ fr_pair_list_afrom_file()
Read valuepairs from the fp up to End-Of-File. 
- Parameters
- 
  
    | [in] | ctx | for talloc |  | [in] | dict | to resolve attributes in. |  | [in,out] | out | where the parsed fr_pair_ts will be appended. |  | [in] | fp | to read valuepairs from. |  | [out] | pfiledone | true if file parsing complete; |  
 
- Returns
- 
Definition at line 677 of file pair_legacy.c.
 
 
◆ fr_pair_list_afrom_substr()
Parse a fr_pair_list_t from a substring. 
- Parameters
- 
  
    | [in] | root | where we start parsing from |  | [in,out] | relative | where we left off, or where we should continue from |  | [in] | in | input sbuff |  
 
- Returns
- 
- <0 on error
- 0 on no input
- >0 on how many bytes of input we read 
 
Definition at line 154 of file pair_legacy.c.
 
 
◆ fr_pair_list_move_op()
Move pairs from source list to destination list respecting operator. 
- Note
- This function does some additional magic that's probably not needed in most places. Consider using radius_legacy_map_cmp() and radius_legacy_map_apply() instead.
- 
fr_pair_list_free should be called on the head of the source list to free unmoved attributes (if they're no longer needed).
- Parameters
- 
  
    | [in,out] | to | destination list. |  | [in,out] | from | source list. |  | [in] | op | operator for list move. |  
 
Definition at line 756 of file pair_legacy.c.
 
 
◆ fr_pair_value_from_substr()
◆ bareword_terminals
Initial value:=
                                )
#define L(_str)
Helper for initialising arrays of string literals.
#define FR_SBUFF_TERMS(...)
Initialise a terminal structure with a list of sorted strings.
Definition at line 35 of file pair_legacy.c.
 
 
◆ bareword_unquoted
  
  | 
        
          | fr_sbuff_parse_rules_t const bareword_unquoted |  | static | 
 
 
◆ pair_assignment_op_table
◆ pair_assignment_op_table_len
◆ pair_comparison_op_table
◆ pair_comparison_op_table_len