$Revision: 1.29 $
which_keytypes: Determine which keys to look for.
This is based on the existing Perl code.
Authors: ottrey, marek
#define DOMAINNAME "^[ ]*[a-zA-Z0-9/-]*(\\.[a-zA-Z0-9-]+)*[ ]*$"
#define DOMAINALPHA "[a-zA-Z]"
#define VALIDIP6PREFIX "^[0-9A-F:]*:[0-9A-F:/]*$"
#define ASNUM "^AS[1-9][0-9]{0,9}$"
#define ASRANGE "^AS[1-9][0-9]{0,9}[ ]*([-][ ]*AS[1-9][0-9]{0,9}){0,1}$"
#define NETNAME "^[A-Z][A-Z0-9_-]*$"
#define MAINTAINER "^[A-Z][A-Z0-9_-]*$"
#define LIMERICK "^LIM-[A-Z0-9_-]+$"
#define KEYCERT "^PGPKEY-[0-9A-F]{8}$"
#define ROUTESETNAME "(^|:)RS-[A-Z0-9_-]*[A-Z0-9](:|$)"
#define ASSETNAME "(^|:)AS-[A-Z0-9_-]*[A-Z0-9](:|$)"
#define AUTONICPREFIXREGULAR "^AUTO-"
#define IPRANGE "^[0-9]{1,3}(\\.[0-9]{1,3}){0,3}[ ]*-[ ]*[0-9]{1,3}(\\.[0-9]{1,3}){0,3}$"
#define IPADDRESS "^[0-9.]+$"
#define IPPREFIX "^[0-9.]+/[0-9]+$"
#define PEERINGSET "(^|:)PRNG-[A-Z0-9_-]*[A-Z0-9](:|$)"
#define FILTERSET "(^|:)FLTR-[A-Z0-9_-]*[A-Z0-9](:|$)"
#define RTRSET "(^|:)RTRS-[A-Z0-9_-]*[A-Z0-9](:|$)"
#define IRT "^IRT-[A-Z0-9_-]+[A-Z0-9]$"
#define NICHANDLE "^[A-Z0-9-]+$"
#define NAME_B "^[a-zA-Z][a-zA-Z_0-9.'|`;:,?/}{()+*#&-]*$"
#define EMAIL "@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*$"
Included from | /home/shane/release/RIP/include/which_keytypes.h | |
Visible in: | wk/which_keytypes.c | |
Used in: | WK_to_string() | wk/which_keytypes.c |
Visible in: | wk/which_keytypes.c | |
Used in: | WK_new() | wk/which_keytypes.c |
wk_regex_init() | wk/which_keytypes.c |
Used in: | wk_is_hostname() |
wk_is_name() | |
wk_regex_init() |
ipprefix
static regex_t ipprefix
Used in: | wk_is_name() |
wk_regex_init() |
validip6prefix
static regex_t validip6prefix
Used in: | wk_is_name() |
wk_regex_init() |
domainname
static regex_t domainname
Used in: | wk_is_domain() |
wk_regex_init() |
domainalpha
static regex_t domainalpha
Used in: | wk_is_domain() |
wk_regex_init() |
Create a new which keytypes bitmap.
This checks the string to see which keys it looks like. This helps us decide what SQL tables (or radix trees) we need to query for a match.
More:Authors: ottrey shane
Prototyped in: | /home/shane/release/RIP/include/which_keytypes.h | |
Calls: | MA_new() | ma/bitmask.c |
MA_set() | ma/bitmask.c | |
wk_is_domain() | wk/which_keytypes.c | |
wk_is_hostname() | wk/which_keytypes.c | |
wk_is_name() | wk/which_keytypes.c | |
pthread_once(), regexec() | ||
Called by: | QC_fill() | qc/query_command.c |
References Functions: | wk_regex_init() | wk/which_keytypes.c |
References Variables: | wk_regex_list | wk/which_keytypes.c |
Convert the which keytypes bitmap into a string.
More:Authors: ottrey
Prototyped in: | /home/shane/release/RIP/include/which_keytypes.h | |
Calls: | MA_to_string() | ma/bitmask.c |
Called by: | QC_query_command_to_string() | qc/query_command.c |
References Variables: | Keytypes | wk/which_keytypes.c |
Included from: | /usr/include/time.h | |
Calls: | __posix_asctime_r() |
Included from: | /usr/include/time.h | |
Calls: | __posix_ctime_r() |
Included from: | /usr/include/unistd.h | |
Calls: | __posix_getlogin_r() |
Included from: | /usr/include/dirent.h | |
Calls: | __posix_readdir_r() |
Included from: | /usr/include/signal.h | |
Calls: | __posix_sigwait() |
Included from: | /usr/include/unistd.h | |
Calls: | __posix_ttyname_r() |
Calls: | regexec() | |
Called by: | WK_new() | wk/which_keytypes.c |
wk_is_hostname() | wk/which_keytypes.c | |
References Variables: | domainalpha | wk/which_keytypes.c |
domainname | wk/which_keytypes.c |
Calls: | wk_is_domain() | wk/which_keytypes.c |
regexec() | ||
Called by: | WK_new() | wk/which_keytypes.c |
References Variables: | ipaddress | wk/which_keytypes.c |
Calls: | regexec() | |
Called by: | WK_new() | wk/which_keytypes.c |
References Variables: | ipaddress | wk/which_keytypes.c |
ipprefix | wk/which_keytypes.c | |
validip6prefix | wk/which_keytypes.c |
Calls: | fprintf(), regcomp() | |
Used in: | WK_new() | wk/which_keytypes.c |
References Variables: | domainalpha | wk/which_keytypes.c |
domainname | wk/which_keytypes.c | |
ipaddress | wk/which_keytypes.c | |
ipprefix | wk/which_keytypes.c | |
validip6prefix | wk/which_keytypes.c | |
wk_regex_list | wk/which_keytypes.c |