$Revision: 1.56 $
Query command module (qc). This is what the whois query gets stored as in memory.
Status: NOT REVUED, TESTED
| Included from | /home/shane/code/RIP/include/query_command.h | |
| Visible in: | qc/query_command.c | |
| Used in: | QC_get_qrytype() | qc/query_command.c |
try to parse the query and fill in the QC struct, setting qc->query_type accordingly.Query_command* QC_create ( char* input, Query_environ* qe )
Author: marek.
| Prototyped in: | /home/shane/code/RIP/include/query_command.h | |
| Calls: | QC_fill() | qc/query_command.c |
| UT_calloc_real(), UT_free_real(), strchr(), strcmp(), strlen() | ||
| Called by: | PW_interact() | pw/protocol_whois.c |
Free the query_environ.
Query_command *qc query_environ to be freed.
More:Authors: ottrey
| Prototyped in: | /home/shane/code/RIP/include/query_command.h | |
| Calls: | UT_free_real(), g_list_free() | |
| Called by: | PW_interact() | pw/protocol_whois.c |
Create a new query environment.
More:Authors: ottrey
| Prototyped in: | /home/shane/code/RIP/include/query_command.h | |
| Calls: | ca_get_SourceHandleByPosition() | ca/ca_configFns.c |
| ca_srchandle2Strelement() | ca/ca_configFns.c | |
| UT_calloc_real(), UT_free_real(), g_list_append(), strcmp() | ||
| Called by: | PW_interact() | 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: | /home/shane/code/RIP/include/query_command.h | |
| Calls: | IP_addr_b2a() | ip/ip.c |
| qc_sources_list_to_string() | qc/query_command.c | |
| UT_free_real(), UT_strdup_real(), g_string_free(), g_string_sized_new(), g_string_sprintf() | ||
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: | /home/shane/code/RIP/include/query_command.h | |
| Calls: | UT_free_real() | |
| Called by: | PW_interact() | pw/protocol_whois.c |
Get the name of the given query type code.char* QC_get_qrytype ( qc_qtype_t qrytype )
| Prototyped in: | /home/shane/code/RIP/include/query_command.h | |
| Calls: | fprintf() | |
| Called by: | pw_log_query() | pw/protocol_whois.c |
| References Variables: | qrytype_str | qc/query_command.c |
Convert the query_command to a string.
More:Authors: ottrey
| Prototyped in: | /home/shane/code/RIP/include/query_command.h | |
| Calls: | DF_get_attribute_names() | df/defs.c |
| DF_get_class_names() | df/defs.c | |
| MA_to_string() | ma/bitmask.c | |
| UT_free_real(), UT_strdup_real(), WK_to_string(), sprintf() | ||
| Called by: | log_command() | qc/query_command.c |
make a list of sources. expects list to hold source handleschar* qc_sources_list_to_string ( GList* list )
char * qc_sources_list_to_string returns an allocated string, must be freed
| Calls: | ca_srchandle2Strelement() | ca/ca_configFns.c |
| UT_strdup_real(), g_list_first(), g_string_append(), g_string_append_c(), g_string_free(), g_string_sized_new() | ||
| Called by: | QC_environ_to_string() | qc/query_command.c |
Create a new query_command. Returns 0 when OK, -1 when query incorrect.
More:Authors: ottrey - original code marek - modified for my getopts, multiple sources; and generally cleaned.
| Calls: | DF_get_attribute_aliases() | df/defs.c |
| DF_get_attribute_index() | df/defs.c | |
| DF_get_class_aliases() | df/defs.c | |
| DF_get_class_index() | df/defs.c | |
| DF_get_server_queries() | df/defs.c | |
| IP_addr_t2b() | ip/ip.c | |
| MA_bitcount() | ma/bitmask.c | |
| MA_isset() | ma/bitmask.c | |
| MA_new() | ma/bitmask.c | |
| MA_not() | ma/bitmask.c | |
| MA_set() | ma/bitmask.c | |
| ca_get_SourceHandleByName() | ca/ca_configFns.c | |
| ca_get_SourceHandleByPosition() | ca/ca_configFns.c | |
| ca_get_string() | ca/ca_configFns.c | |
| log_command() | qc/query_command.c | |
| mg_getopt() | qc/mg_getopt.c | |
| mg_new() | qc/mg_getopt.c | |
| SK_cd_printf(), SK_cd_puts(), UT_calloc_real(), UT_free_real(), UT_strdup_real(), WK_new(), fprintf(), g_list_append(), g_list_free(), g_strfreev(), g_strsplit(), getsubopt(), strcat(), strcmp(), strlen(), strtok_r(), toupper() | ||
| Called by: | QC_create() | qc/query_command.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() | |
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: | ER_dbg_va() | er/er.c |
| ER_is_traced() | er/er.c | |
| QC_query_command_to_string() | qc/query_command.c | |
| UT_free_real() | ||
| Called by: | QC_fill() | qc/query_command.c |
| 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() | |