Cross reference for modules/rp/rp_convert.c of index.

# File modules/rp/rp_convert.c

      $Revision: 1.7 $

      Radix payload (rp) - user level functions for storing data in radix trees

      rp_convert = conversion helpers for RX_asc_node and UD module.

      Status: NOT REVIEWED, TESTED

      Design and implementation by: Marek Bukowy

## Included Files

- `#include <include/rp.h>`

- `#include <iproutines.h>`

- `#include <rxroutines.h>`

## Preprocessor definitions

`#define STR_L 2048`

## Global Variable Lock

`pthread_mutex_t Lock`

Included from | include/ca_defs.h
Visible in: |  | modules/ac/access_control.c
|  | modules/ca/ca_configFns.c
|  | modules/ca/ca_initFn.c
|  | modules/ca/ca_sourceLoader.c
|  | modules/ca/ca_values.c
|  | modules/er/er_macro.c
|  | modules/pm/pm_serials.c
|  | modules/pm/protocol_mirror.c
|  | modules/qc/query_command.c
|  | modules/qi/query_instructions.c
|  | modules/rp/rp_convert.c
Used in: | ca_get_adminIntElement() | modules/ca/ca_configFns.c
| ca_get_adminStrElement() | modules/ca/ca_configFns.c
| ca_get_boolean() | modules/ca/ca_configFns.c
| ca_get_dirlist() | modules/ca/ca_configFns.c
| ca_get_int() | modules/ca/ca_configFns.c
| ca_get_string() | modules/ca/ca_configFns.c
| ca_set_boolean() | modules/ca/ca_configFns.c
| ca_set_string() | modules/ca/ca_configFns.c
| ca_srchandle2Intelement() | modules/ca/ca_configFns.c
| ca_srchandle2Strelement() | modules/ca/ca_configFns.c

## Global Variable newPort

`char newPort[16]`

Included from | include/ca_defs.h
Visible in: |  | modules/ac/access_control.c
|  | modules/ca/ca_configFns.c
|  | modules/ca/ca_initFn.c
|  | modules/ca/ca_sourceLoader.c
|  | modules/ca/ca_values.c
|  | modules/er/er_macro.c
|  | modules/pm/pm_serials.c
|  | modules/pm/protocol_mirror.c
|  | modules/qc/query_command.c
|  | modules/qi/query_instructions.c
|  | modules/rp/rp_convert.c

## Global Function RP_asc2pack()

`er_ret_t RP_asc2pack ( rp_upd_pack_t* pack, rp_attr_t type, char* string )`

Prototyped in: | include/rp.h
Calls: | DF_get_attribute_code() | modules/df/defs.c
| ER_dbg_va() | modules/er/er.c
| RP_asc2uni() | modules/rp/rp_convert.c

## Global Function RP_asc2uni()

`er_ret_t RP_asc2uni ( char* astr, rp_attr_t attr, rp_uni_t* uni )`

`char* astr`
  string prefix/range/IP/inaddr
`rp_attr_t attr`
  &nbs;
`rp_uni_t* uni`
  &nbs;

Prototyped in: | include/rp.h
Calls: | IP_pref_b2_space() | modules/ip/ip.c
| IP_pref_t2b() | modules/ip/ip.c
| IP_rang_b2_space() | modules/ip/ip.c
| IP_rang_t2b() | modules/ip/ip.c
| IP_revd_t2b() | modules/ip/ip.c
| RP_attr2fam() | modules/rp/rp_convert.c
Called by: | RP_asc2pack() | modules/rp/rp_convert.c

## Global Function RP_attr2fam()

`rx_fam_t RP_attr2fam ( rp_attr_t type )`

Prototyped in: | include/rp.h
Calls: | DF_attrcode_radix_family() | modules/df/defs.c
| fprintf()
Called by: | RP_asc2uni() | modules/rp/rp_convert.c
| RP_pack_set_type() | modules/rp/rp_convert.c

## Global Function RP_attr2spc()

`int RP_attr2spc ( rp_attr_t type, ip_space_t space )`

Prototyped in: | include/rp.h
Calls: | DF_attrcode_radix_load_v4() | modules/df/defs.c
| DF_attrcode_radix_load_v6() | modules/df/defs.c

## Global Function RP_pack_set_orig()

`void RP_pack_set_orig ( rp_attr_t attr, rp_upd_pack_t* pack, char* origin )`

Prototyped in: | include/rp.h

## Global Function RP_pack_set_pref4()

`void RP_pack_set_pref4 ( rp_attr_t attr, char* avalue, rp_upd_pack_t* pack, unsigned* prefix, unsigned* prefix_length )`

Prototyped in: | include/rp.h
Calls: | IP_pref_a2v4() | modules/ip/ip.c
| RP_pack_set_type() | modules/rp/rp_convert.c

## Global Function RP_pack_set_pref6()

`void RP_pack_set_pref6 ( rp_attr_t attr, char* avalue, rp_upd_pack_t* pack, ip_v6word_t* high, ip_v6word_t* low, unsigned* prefix_length )`

Prototyped in: | include/rp.h
Calls: | IP_pref_a2v6() | modules/ip/ip.c
| RP_pack_set_type() | modules/rp/rp_convert.c

## Global Function RP_pack_set_rang()

`void RP_pack_set_rang ( rp_attr_t attr, char* avalue, rp_upd_pack_t* pack, unsigned* begin_in, unsigned* end_in )`

Prototyped in: | include/rp.h
Calls: | IP_rang_a2v4() | modules/ip/ip.c
| RP_pack_set_type() | modules/rp/rp_convert.c

## Global Function RP_pack_set_revd()

`void RP_pack_set_revd ( rp_attr_t attr, char* avalue, rp_upd_pack_t* pack )`

Prototyped in: | include/rp.h
Calls: | IP_pref_b2_space() | modules/ip/ip.c
| IP_revd_t2b() | modules/ip/ip.c
| RP_pack_set_type() | modules/rp/rp_convert.c
| fprintf()

## Global Function RP_pack_set_type()

`void RP_pack_set_type ( rp_attr_t attr, rp_upd_pack_t* pack )`

Calls: | RP_attr2fam() | modules/rp/rp_convert.c
Called by: | RP_pack_set_pref4() | modules/rp/rp_convert.c
| RP_pack_set_pref6() | modules/rp/rp_convert.c
| RP_pack_set_rang() | modules/rp/rp_convert.c
| RP_pack_set_revd() | modules/rp/rp_convert.c

## Global Function rp_make_short()

`void rp_make_short ( rp_upd_pack_t* pack, char** ptr, int* len )`

Prototyped in: | include/rp.h
Calls: | IP_pref_b2a() | modules/ip/ip.c
| IP_rang_b2a() | modules/ip/ip.c
| fprintf(), snprintf(), strlen()