Show
Ignore:
Timestamp:
10/02/09 00:20:36 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1254442836 +0000
git-parent:

[cec1cb615495ea336dfb3d405ee59926b654fa1f]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1254442836 +0000
Message:

This is pretty intrusive.

Here we refactor the console initalization in noit_conf_checks to have
the reusable parts pulled into the noit_conf directly so that stratcon
can make use of them. noit_conf_checks is retooled to extend that and
override the 'ls' command to have it's old form and function.

stratcon_jlog_streamer extends the noit_conf console syntax to allow
adding and removing of noits within the 'configure terminal' mode.

# conf t
# noit 10.1.2.3
# noit 10.1.5.5:12345
# no noit 10.1.2.3
# no noit 10.1.5.5:12345

This should not change the operation of noitd's console in any way;
however, the changes were quite substantial, so we should keep an eye
out for collateral breakage.

refs #195

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_conf_checks.h

    r37daa37 r8ad126b  
    3838#include "noit_console.h" 
    3939 
    40 API_EXPORT(void) noit_conf_checks_init(const char *toplevel); 
     40API_EXPORT(void) noit_console_conf_checks_init(); 
    4141API_EXPORT(int) 
    4242  noit_console_config_cd(noit_console_closure_t ncct,