Included Files
- #include "include/rp.h"
- #include <stddef.h>
- #include <glib.h>
- #include <pthread.h>
- #include <include/defs.h>
- #include <iproutines.h>
- #include <erroutines.h>
- #include <rxroutines.h>
- #include <mysql_driver.h>
- #include "include/ca_defs.h"
- #include <thread.h>
pthread_mutex_t Lock
External Variables
SV_starttime
Display the statistics about the server.
extern time_t SV_starttime
Display available commands.
int command_help ( char* input, GString* output, sk_conn_st* condat )
Display the memory allocation records of purify(tm).
The #define must be changed to activate this.
The program will link only with purify.
int command_purify ( char* input, GString* output, sk_conn_st* condat )
Quit the config session.
int command_quit ( char* input, GString* output, sk_conn_st* condat )
int command_set ( char* input, GString* output, sk_conn_st* condat )
Relay functions for composed commands (eg. "set counter").
They run the second word as a command from a specific array
(show/set/stop/whatever). The hardcoded text is used only for help
messages, printed in case the command is wrong as
"<hardcoded> commands are: <list of possible commands>".
int command_show ( char* input, GString* output, sk_conn_st* condat )
int command_stop ( char* input, GString* output, sk_conn_st* condat )
Modify the whois access control list in the AC module.
Arguments: IP[/prefixlength] column=value,column=value...
Column names as in acl display. Unset columns are inherited.
int set_acl ( char* input, GString* output, sk_conn_st* condat )
Reset the "session time" and "# of tasks"
of a specific thread registered with the TA module.
int set_counter ( char* input, GString* output, sk_conn_st* condat )
Execute a command in the ER path processor of the ER module.
(first subject to macro expansion of the first word).
Argument is passed entirely to ER_macro_spec().
int set_err ( char* input, GString* output, sk_conn_st* condat )
Reset the source.
Stops updates for a given source and reloads the radix tree.
Argument: the source name.
int set_initrx ( char* input, GString* output, sk_conn_st* condat )
(re)define a macro for the ER path processor.
Arguments: The first word is treated as a macro name.
The rest of the line is treated as a macro definition.
int set_macro ( char* input, GString* output, sk_conn_st* condat )
Reset the deny counter in the access tree to 0 (after reenabling)
(AC module).
Argument: IP address.
int set_nodeny ( char* input, GString* output, sk_conn_st* condat )
Pause/resume queries.
Argument: the word "pause" or "resume".
int set_queries ( char* input, GString* output, sk_conn_st* condat )
Prototyped in:
| modules/pc/pc_commands.h
|
Calls:
| PW_startqueries(), PW_stopqueries(), g_string_append(), sscanf(), strcmp()
|
Pause/resume update capability of the UD module.
Argument: the word "pause" or "resume".
int set_updates ( char* input, GString* output, sk_conn_st* condat )
Display the whois access statistics from the AC module.
int show_access ( char* input, GString* output, sk_conn_st* condat )
Display the whois access control list from the AC module.
int show_acl ( char* input, GString* output, sk_conn_st* condat )
Display a specific constant of the CO module.
Argument: name of the constant.
int show_const ( char* input, GString* output, sk_conn_st* condat )
Display all the constants of the CO module.
int show_consts ( char* input, GString* output, sk_conn_st* condat )
Show the current setup of the ER path system of the ER module.
int show_err ( char* input, GString* output, sk_conn_st* condat )
Show the currently defined macros for the ER path system of the ER module.
int show_macros ( char* input, GString* output, sk_conn_st* condat )
Display all the properties of the PR module.
int show_props ( char* input, GString* output, sk_conn_st* condat )
Display all running threads registered with the TA module.
int show_threads ( char* input, GString* output, sk_conn_st* condat )
Display the statistics about the server.
int show_uptime ( char* input, GString* output, sk_conn_st* condat )
Switch the session to a whois session.
int show_whois ( char* input, GString* output, sk_conn_st* condat )
Trigger running of the socket watchdog actions for a specific thread
(typically resulting in shutting down of a query thread).
Arguments are "<socket_id> <thread_id>" as in the output of "show threads".
Assumes the command is like "stop query 11 17".
This is to limit ambiguities (a new thread on the same socket, for example).
.
int stop_query ( char* input, GString* output, sk_conn_st* condat )