Show
Ignore:
Timestamp:
03/13/04 00:18:22 (9 years ago)
Author:
aprilp
Message:

* Modified the way firewall scripts are called so we can configure
them in the config file (a bit more modular than it was)
* Added simple linked list to keep track of clients and to
keep a counter of the utilization and send it to the auth
server
* Fixed CRLF/formatting in phpauth/auth/index.php
* Hacked phpauth/auth/index.php to handle very basic utilization tracking

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog/src/conf.c

    r9 r18  
    3636#define DEFAULT_CLIENTTIMEOUT 5 
    3737#define DEFAULT_CHECKINTERVAL 5 
     38#define DEFAULT_FWSCRIPTS_PATH "." 
     39#define DEFAULT_FWTYPE "." 
    3840 
    3941s_config config; 
     
    5658    oClientTimeout, 
    5759    oCheckInterval, 
     60    oFWScriptsPath, 
     61    oFWType, 
    5862} OpCodes; 
    5963 
     
    7781        { "clienttimeout",      oClientTimeout }, 
    7882    { "checkinterval",      oCheckInterval }, 
     83    { "fwscriptspath",      oFWScriptsPath }, 
     84    { "fwtype",             oFWType }, 
    7985    { NULL,                 oBadOption }, 
    8086}; 
     
    100106    config.clienttimeout = DEFAULT_CLIENTTIMEOUT; 
    101107    config.checkinterval = DEFAULT_CHECKINTERVAL; 
     108    config.fwscripts_path = DEFAULT_FWSCRIPTS_PATH; 
     109    config.fwtype = DEFAULT_FWTYPE; 
    102110} 
    103111