Copyright (c) 1999,2000,2001,2002 RIPE NCC
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of the author not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO EVENT SHALL
AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Included Files
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 )
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_save ( char* input, GString* output, sk_conn_st* condat )
int command_set ( char* input, GString* output, sk_conn_st* condat )
int command_show ( char* input, GString* output, sk_conn_st* condat )
int command_stop ( char* input, GString* output, sk_conn_st* condat )
int save_access_tree ( 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 )
Sets the auto save status of the access tree.
Arguments: 0 = don't auto save, 1 = auto save
int set_auto_save ( 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.
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 )
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 the access tree auto save state.
int show_auto_save ( 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 )
static char* asctime_r ( const struct tm* __tm, char* __buf )
static char* ctime_r ( const time_t* __time, char* __buf )
static int getlogin_r ( char* __name, int __len )
static int readdir_r ( DIR* __dp, struct dirent* __ent, struct dirent** __res )
static int sigwait ( const sigset_t* __setp, int* __signo )
static int ttyname_r ( int __fildes, char* __buf, size_t __size )