$Revision: 1.22 $
Query command module (qc). This is what the whois query gets stored as in memory.
Status: NOT REVUED, NOT TESTED
String sizes
#define STR_M 255
#define STR_L 1023
#define STR_XL 4095
#define STR_XXL 16383
Prototyped in: | modules/qc/query_command.h | |
Calls: | QC_fill() | modules/qc/query_command.c |
fprintf(), strcmp(), strlen(), wr_real_calloc() | ||
Called by: | PW_interact() | modules/pw/protocol_whois.c |
Free the query_environ.
Query_command *qc query_environ to be freed.
More:Authors: ottrey
Prototyped in: | modules/qc/query_command.h | |
Calls: | g_list_free(), wr_real_free() | |
Called by: | PW_interact() | modules/pw/protocol_whois.c |
Create a new query environment.
More:Authors: ottrey
Prototyped in: | modules/qc/query_command.h | |
Calls: | CO_get_database() | modules/co/constants.c |
fprintf(), g_list_append(), wr_real_calloc() | ||
Called by: | PW_interact() | modules/pw/protocol_whois.c |
Convert the query_environ to a string.
Query_environ *query_environ The query_environ to be converted.
More:Authors: ottrey
Prototyped in: | modules/qc/query_command.h | |
Calls: | DF_sources_list_to_string() | modules/df/defs.c |
IP_addr_b2a() | modules/ip/ip.c | |
fprintf(), sprintf(), strcpy(), strlen(), wr_real_free(), wr_real_malloc() | ||
Called by: | print_hello_banner() | modules/pw/protocol_whois.c |
Free the query_command.
XXX I'm not sure the bitmaps will get freed. qc->inv_attrs_bitmap qc->object_type_bitmap qc->keytypes_bitmap
More:Authors: ottrey
Prototyped in: | modules/qc/query_command.h | |
Calls: | wr_real_free() | |
Called by: | PW_interact() | modules/pw/protocol_whois.c |
Convert the query_command to a string.
More:Authors: ottrey
Prototyped in: | modules/qc/query_command.h | |
Calls: | DF_get_attribute_names() | modules/df/defs.c |
DF_get_class_names() | modules/df/defs.c | |
MA_to_string() | modules/ma/bitmask.c | |
WK_to_string(), fprintf(), sprintf(), strcpy(), strlen(), wr_real_free(), wr_real_malloc() | ||
Called by: | log_command() | modules/qc/query_command.c |
Calls: | strtok_r() | |
Called by: | QC_fill() | modules/qc/query_command.c |
Create a new query_command.
Pre-condition:
More:Authors: ottrey
Calls: | CO_get_comnd_logging() | modules/co/constants.c |
CO_get_database() | modules/co/constants.c | |
DF_get_attribute_aliases() | modules/df/defs.c | |
DF_get_attribute_index() | modules/df/defs.c | |
DF_get_class_aliases() | modules/df/defs.c | |
DF_get_class_index() | modules/df/defs.c | |
DF_get_database() | modules/df/defs.c | |
DF_get_server_queries() | modules/df/defs.c | |
DF_get_source() | modules/df/defs.c | |
DF_get_sources() | modules/df/defs.c | |
DF_sources_to_string() | modules/df/defs.c | |
IP_addr_t2b() | modules/ip/ip.c | |
MA_isset() | modules/ma/bitmask.c | |
MA_new() | modules/ma/bitmask.c | |
MA_set() | modules/ma/bitmask.c | |
log_command() | modules/qc/query_command.c | |
my_getopt() | modules/qc/query_command.c | |
strsep() | modules/qc/query_command.c | |
SK_cd_puts(), WK_new(), fprintf(), g_list_append(), g_list_first(), g_list_remove(), g_strsplit(), getsubopt(), sprintf(), strcat(), strcmp(), strcpy(), strlen(), strncmp(), strncpy(), toupper(), wr_real_calloc(), wr_real_free(), wr_real_malloc() | ||
Called by: | QC_create() | modules/qc/query_command.c |
Log the command. This is more to do with Tracing. And should/will get merged with a tracing module (when it is finalized.)
More:Authors: ottrey
Calls: | CO_get_comnd_logfile() | modules/co/constants.c |
CO_get_comnd_logging() | modules/co/constants.c | |
QC_query_command_to_string() | modules/qc/query_command.c | |
fclose(), fopen(), fprintf(), printf(), strcmp(), wr_real_free() | ||
Called by: | QC_fill() | modules/qc/query_command.c |
A thread safe version of getopt, used to get the options from the whois query.
More:Authors: ottrey
Calls: | strlen(), strncmp() | |
Called by: | QC_fill() | modules/qc/query_command.c |