Changeset 90

Show
Ignore:
Timestamp:
04/20/04 20:03:24 (9 years ago)
Author:
aprilp
Message:

A lot of changes regarding debugging facilities and added logging to syslog

Location:
trunk/wifidog
Files:
14 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog/ChangeLog

    r89 r90  
    11# $Header$ 
     22004-04-19  Philippe April <papril777@yahoo.com> 
     3    * A lot of changes regarding debugging facilities and added logging 
     4    to syslog 
     5 
    262004-04-19  Philippe April <papril777@yahoo.com> 
    37    * Changed some debugging severity 
  • trunk/wifidog/src/auth.c

    r89 r90  
    105105        if (profile == -1) { 
    106106                // Error talking to central server 
    107                 debug(D_LOG_ERR, "Got %d from central server authenticating " 
     107                debug(LOG_ERR, "Got %d from central server authenticating " 
    108108                        "token %s from %s at %s", profile, node->token, 
    109109                        node->ip, node->mac); 
     
    124124        /* If we get here, we've got a profile > 0 */ 
    125125         
    126         debug(D_LOG_INFO, "Node %s with mac %s and profile " 
     126        debug(LOG_INFO, "Node %s with mac %s and profile " 
    127127                "%d validated", node->ip, node->mac, profile); 
    128128         
     
    130130         
    131131        if (tmp_uc == NULL) { 
    132                 debug(D_LOG_WARNING, "Profile %d undefined", profile); 
     132                debug(LOG_WARNING, "Profile %d undefined", profile); 
    133133                _http_output(node->fd, "User Class not defined"); 
    134134                node->fd = 0; 
     
    136136                return; 
    137137        } else { 
    138                 debug(D_LOG_INFO, "Profile %d UserClasses retrieved", profile); 
     138                debug(LOG_INFO, "Profile %d UserClasses retrieved", profile); 
    139139        } 
    140140         
  • trunk/wifidog/src/centralserver.c

    r89 r90  
    4141 
    4242        if ((he = gethostbyname(config.authserv_hostname)) == NULL) { 
    43                 debug(D_LOG_ERR, "Failed to resolve %s via gethostbyname(): " 
     43                debug(LOG_ERR, "Failed to resolve %s via gethostbyname(): " 
    4444                        "%s", config.authserv_hostname, strerror(errno)); 
    4545                return(-1); 
     
    4747 
    4848        if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { 
    49                 debug(D_LOG_ERR, "socket(): %s", strerror(errno)); 
     49                debug(LOG_ERR, "socket(): %s", strerror(errno)); 
    5050                exit(1); 
    5151        } 
     
    5656        memset(&(their_addr.sin_zero), '\0', 8); 
    5757 
    58         debug(D_LOG_INFO, "Connecting to auth server %s on port %d",  
     58        debug(LOG_INFO, "Connecting to auth server %s on port %d",  
    5959                config.authserv_hostname, config.authserv_port); 
    6060 
    6161        if (connect(sockfd, (struct sockaddr *)&their_addr, 
    6262                                sizeof(struct sockaddr)) == -1) { 
    63                 debug(D_LOG_ERR, "connect(): %s", strerror(errno)); 
     63                debug(LOG_ERR, "connect(): %s", strerror(errno)); 
    6464                return(-1); /* non-fatal */ 
    6565        } 
     
    6969        send(sockfd, buf, strlen(buf), 0); 
    7070 
    71         debug(D_LOG_DEBUG, "Sending HTTP request:\n#####\n%s\n#####", buf); 
     71        debug(LOG_DEBUG, "Sending HTTP request:\n#####\n%s\n#####", buf); 
    7272 
    7373        if ((numbytes = recv(sockfd, buf, MAX_BUF - 1, 0)) == -1) { 
    74                 debug(D_LOG_ERR, "recv(): %s", strerror(errno)); 
     74                debug(LOG_ERR, "recv(): %s", strerror(errno)); 
    7575                exit(1); 
    7676        } 
     
    8282        if ((p1 = strstr(buf, "Profile: "))) { 
    8383                if (sscanf(p1, "Profile: %d", &profile) == 1) { 
    84                         debug(D_LOG_INFO, "Auth server returned profile %d", 
     84                        debug(LOG_INFO, "Auth server returned profile %d", 
    8585                                profile); 
    8686                        return(profile); 
    8787                } else { 
    88                         debug(D_LOG_WARNING, "Auth server did not return " 
     88                        debug(LOG_WARNING, "Auth server did not return " 
    8989                                "expected information"); 
    9090                        return(-1); 
  • trunk/wifidog/src/commandline.c

    r78 r90  
    4141    printf("\n"); 
    4242    printf("  -c [filename] Use this config file\n"); 
    43     printf("  -f            Do not fork into background\n"); 
     43    printf("  -f            Run in foreground\n"); 
    4444    printf("  -p            TCP port to listen on\n"); 
    45     printf("  -v            Debug level\n"); 
     45    printf("  -d <level>    Debug level\n"); 
     46    printf("  -s            Log to syslog\n"); 
    4647    printf("  -h            Print usage\n"); 
    4748    printf("\n"); 
     
    5859    int c; 
    5960 
    60     while (-1 != (c = getopt(argc, argv, "c:hfp:v:"))) { 
     61    while (-1 != (c = getopt(argc, argv, "c:hfp:d:s"))) { 
    6162        switch(c) { 
    6263            case 'h': 
     
    8182                break; 
    8283 
    83             case 'v': 
     84            case 'd': 
    8485                if (optarg) { 
    8586                    config.debuglevel = atoi(optarg); 
    8687                } 
     88                break; 
     89 
     90            case 's': 
     91                config.log_syslog = 1; 
    8792                break; 
    8893 
  • trunk/wifidog/src/common.h

    r88 r90  
    4545#include <errno.h> 
    4646 
     47#include <syslog.h> 
    4748#include <pthread.h> 
    4849 
  • trunk/wifidog/src/conf.c

    r82 r90  
    2828 
    2929#define DEFAULT_CONFIGFILE "/etc/wifidog.conf" 
    30 #define DEFAULT_DEBUGLEVEL D_LOG_DEBUG 
     30#define DEFAULT_DAEMON 1 
     31#define DEFAULT_DEBUGLEVEL LOG_INFO 
    3132#define DEFAULT_HTTPDMAXCONN 10 
    3233#define DEFAULT_GATEWAYID "default" 
     
    3839#define DEFAULT_FWSCRIPTS_PATH "." 
    3940#define DEFAULT_FWTYPE "." 
     41#define DEFAULT_LOG_SYSLOG 0 
     42#define DEFAULT_SYSLOG_FACILITY LOG_DAEMON 
    4043 
    4144s_config config; 
     
    6164        oFWType, 
    6265        oUserClass, 
     66    oSyslogFacility, 
    6367} OpCodes; 
    6468 
     
    8488        { "fwscriptspath",      oFWScriptsPath }, 
    8589        { "fwtype",             oFWType }, 
    86         { "userclass",          oUserClass }, 
     90        { "userclass",                  oUserClass }, 
     91        { "syslogfacility",     oSyslogFacility }, 
    8792        { NULL,                 oBadOption }, 
    8893}; 
     
    9196config_init(void) 
    9297{ 
    93         debug(D_LOG_DEBUG, "Setting default config parameters"); 
     98        debug(LOG_DEBUG, "Setting default config parameters"); 
    9499        config.configfile = (char *)malloc(255); 
    95100        strcpy(config.configfile, DEFAULT_CONFIGFILE); 
    96         config.daemon = 1; 
    97101        config.debuglevel = DEFAULT_DEBUGLEVEL; 
    98102        config.httpdmaxconn = DEFAULT_HTTPDMAXCONN; 
     
    112116        config.userclasses = (char **)malloc(sizeof(char *) * 256); 
    113117        memset(config.userclasses, 0, sizeof(char *) * 256); 
     118        config.syslog_facility = DEFAULT_SYSLOG_FACILITY; 
     119    config.daemon = -1; 
     120    config.log_syslog = DEFAULT_LOG_SYSLOG; 
     121} 
     122 
     123/** 
     124 * @brief Initialize the variables we override with the command line 
     125 * 
     126 * 
     127 * Initialize the variables we override with the command line after the config has been read 
     128 * if they haven't been initialized by the configuration file 
     129 */ 
     130void 
     131config_init_override(void) 
     132{ 
     133    if (!config.daemon) config.daemon = DEFAULT_DAEMON; 
    114134} 
    115135 
     
    123143                        return keywords[i].opcode; 
    124144 
    125         debug(D_LOG_ERR, "%s: line %d: Bad configuration option: %s",  
     145        debug(LOG_ERR, "%s: line %d: Bad configuration option: %s",  
    126146                        filename, linenum, cp); 
    127147        return oBadOption; 
     
    135155        int linenum = 0, opcode, value; 
    136156 
    137         debug(D_LOG_INFO, "Reading configuration file '%s'", filename); 
     157        debug(LOG_INFO, "Reading configuration file '%s'", filename); 
    138158 
    139159        if (!(fd = fopen(filename, "r"))) { 
    140                 debug(D_LOG_ERR, "Could not open configuration file '%s', " 
     160                debug(LOG_ERR, "Could not open configuration file '%s', " 
    141161                                "exiting...", filename); 
    142162                exit(1); 
     
    172192 
    173193                        if ((strncmp(s, "#", 1)) != 0) { 
    174                                 debug(D_LOG_DEBUG, "Parsing token: %s, " 
     194                                debug(LOG_DEBUG, "Parsing token: %s, " 
    175195                                                "value: %s", s, p1); 
    176196                                opcode = parse_token(s, filename, linenum); 
     
    182202                                        break; 
    183203                                case oDaemon: 
    184                                         if (((value = parse_value(p1)) != -1)) { 
     204                                        if (config.daemon == -1 && ((value = parse_value(p1)) != -1)) { 
    185205                                                config.daemon = value; 
    186206                                        } 
     
    216236                                        break; 
    217237                                case oBadOption: 
     238                    debug(LOG_ERR, "Exiting..."); 
    218239                                        exit(-1); 
    219240                                        break; 
     
    229250                case oFWType: 
    230251                                        config.fwtype = get_string(p1); 
     252                                        break; 
     253                case oSyslogFacility: 
     254                                        sscanf(p1, "%d", &config.syslog_facility); 
    231255                                        break; 
    232256                                } 
     
    295319 
    296320        if (missing_parms) { 
    297                 debug(D_LOG_ERR, "Configuration is not complete, exiting..."); 
     321                debug(LOG_ERR, "Configuration is not complete, exiting..."); 
    298322                exit(-1); 
    299323        } 
     
    304328{ 
    305329        if (parm == NULL) { 
    306                 debug(D_LOG_ERR, "%s is not set", parmname); 
     330                debug(LOG_ERR, "%s is not set", parmname); 
    307331                missing_parms = 1; 
    308332        } 
  • trunk/wifidog/src/conf.h

    r43 r90  
    2929 
    3030void config_init(void); 
     31void config_init_override(void); 
    3132void config_read(char *filename); 
    3233void config_validate(void); 
     
    5556    char *fwtype; 
    5657    char **userclasses; 
     58    int log_syslog; 
     59    int syslog_facility; 
    5760} s_config; 
    5861 
  • trunk/wifidog/src/debug.c

    r42 r90  
    2626*/ 
    2727 
     28#define SYSLOG_NAMES 
    2829#include "common.h" 
    2930 
    3031extern s_config config; 
     32//extern CODE prioritynames[]; 
    3133 
    3234void 
    3335debug(int level, char *format, ...) 
    3436{ 
     37    int i; 
    3538    va_list vlist; 
    3639 
    3740    if (config.debuglevel >= level) { 
    3841        va_start(vlist, format); 
    39         fprintf(stderr, "[debug %d] ", level); 
    40         vfprintf(stderr, format, vlist); 
    41         fputc('\n', stderr); 
    42         fflush(stderr); 
     42 
     43        if (level <= LOG_WARNING) { 
     44            fprintf(stderr, "[debug %d] ", level); 
     45            vfprintf(stderr, format, vlist); 
     46            fputc('\n', stderr); 
     47            fflush(stderr); 
     48        } else if (!config.daemon) { 
     49            fprintf(stdout, "[debug %d] ", level); 
     50            vfprintf(stdout, format, vlist); 
     51            fputc('\n', stdout); 
     52            fflush(stdout); 
     53        } 
     54 
     55        if (config.log_syslog) { 
     56            openlog("wifidog", LOG_PID, config.syslog_facility); 
     57            vsyslog(level, format, vlist); 
     58            closelog(); 
     59        } 
    4360    } 
    4461} 
  • trunk/wifidog/src/debug.h

    r9 r90  
    2828#define _DEBUG_H_ 
    2929 
    30 #define D_LOG_ERR               0 
    31 #define D_LOG_WARNING   1 
    32 #define D_LOG_NOTICE    2 
    33 #define D_LOG_INFO          3 
    34 #define D_LOG_DEBUG         4 
    35  
    3630void debug(int level, char *format, ...); 
    3731 
  • trunk/wifidog/src/firewall.c

    r89 r90  
    5555 
    5656        if (-1 == (stat(script, &st))) { 
    57                 debug(D_LOG_ERR, "Could not find %s: %s", script, 
     57                debug(LOG_ERR, "Could not find %s: %s", script, 
    5858                        strerror(errno)); 
    5959                return(1); 
     
    8383 
    8484        if (-1 == (stat(script, &st))) { 
    85                 debug(D_LOG_ERR, "Could not find %s: %s", script,  
     85                debug(LOG_ERR, "Could not find %s: %s", script,  
    8686                        strerror(errno)); 
    8787                return(1); 
     
    102102        int pid, status, rc; 
    103103 
    104         debug(D_LOG_DEBUG, "Executing '%s'", argv[0]); 
     104        debug(LOG_DEBUG, "Executing '%s'", argv[0]); 
    105105 
    106106        if ((pid = fork()) < 0) {     /* fork a child process           */ 
    107                 debug(D_LOG_ERR, "fork(): %s", strerror(errno)); 
     107                debug(LOG_ERR, "fork(): %s", strerror(errno)); 
    108108                exit(1); 
    109109        } else if (pid == 0) {          /* for the child process:         */ 
    110110                if (execvp(*argv, argv) < 0) {     /* execute the command  */ 
    111                         debug(D_LOG_ERR, "fork(): %s", strerror(errno)); 
     111                        debug(LOG_ERR, "fork(): %s", strerror(errno)); 
    112112                        exit(1); 
    113113                } 
     
    175175 
    176176        if (-1 == (stat(script, &st))) { 
    177                 debug(D_LOG_ERR, "Could not find %s: %s", script,  
     177                debug(LOG_ERR, "Could not find %s: %s", script,  
    178178                        strerror(errno)); 
    179                 debug(D_LOG_ERR, "Exiting..."); 
     179                debug(LOG_ERR, "Exiting..."); 
    180180                exit(1); 
    181181        } 
    182182 
    183         debug(D_LOG_NOTICE, "Setting firewall rules"); 
     183        debug(LOG_NOTICE, "Setting firewall rules"); 
    184184 
    185185        if ((rc = execute(command)) != 0) { 
    186                 debug(D_LOG_ERR, "Could not setup firewall, exiting..."); 
     186                debug(LOG_ERR, "Could not setup firewall, exiting..."); 
    187187                exit(1); 
    188188        } 
     
    208208 
    209209        if (-1 == (stat(script, &st))) { 
    210                 debug(D_LOG_ERR, "Could not find %s: %s", script,  
     210                debug(LOG_ERR, "Could not find %s: %s", script,  
    211211                        strerror(errno)); 
    212212                return(1); 
    213213        } 
    214214 
    215         debug(D_LOG_NOTICE, "Flushing firewall rules"); 
     215        debug(LOG_NOTICE, "Flushing firewall rules"); 
    216216 
    217217        return(execute(command)); 
     
    235235 
    236236        if (!(output = popen(script, "r"))) { 
    237                 debug(D_LOG_ERR, "popen(): %s", strerror(errno)); 
     237                debug(LOG_ERR, "popen(): %s", strerror(errno)); 
    238238        } else { 
    239239                while (!(feof(output)) && output) { 
     
    248248                                if (p1->counter == counter) { 
    249249                                        /* expire clients for inactivity */ 
    250                                         debug(D_LOG_INFO, "Client %s was " 
     250                                        debug(LOG_INFO, "Client %s was " 
    251251                                                "inactive", ip); 
    252252                                        fw_deny(p1->ip, p1->mac, 
     
    277277 
    278278                                        if (p1 == NULL) {        
    279                                                 debug(D_LOG_DEBUG, "Node was " 
     279                                                debug(LOG_DEBUG, "Node was " 
    280280                                                        "freed while being " 
    281281                                                        "re-validated!"); 
    282282                                        } else if (profile <= 0) { 
    283283                                                /* failed */ 
    284                                                 debug(D_LOG_NOTICE, "Auth " 
     284                                                debug(LOG_NOTICE, "Auth " 
    285285                                                        "failed for client %s", 
    286286                                                        ip); 
     
    290290                                        } else { 
    291291                                                /* successful */ 
    292                                                 debug(D_LOG_INFO, "Updated " 
     292                                                debug(LOG_INFO, "Updated " 
    293293                                                        "client %s counter to " 
    294294                                                        "%ld bytes", ip, 
     
    342342 
    343343        if (curnode == NULL) { 
    344                 debug(D_LOG_ERR, "Out of memory"); 
     344                debug(LOG_ERR, "Out of memory"); 
    345345                exit(-1); 
    346346        } 
     
    360360        } 
    361361 
    362         debug(D_LOG_INFO, "Added a new node to linked list: IP: %s Token: %s", 
     362        debug(LOG_INFO, "Added a new node to linked list: IP: %s Token: %s", 
    363363                ip, token); 
    364364         
     
    465465{ 
    466466        if (node->rights->end_time <= time(NULL)) { 
    467                 debug(D_LOG_INFO, "Connection %s has expired", node->ip); 
     467                debug(LOG_INFO, "Connection %s has expired", node->ip); 
    468468                return 0; 
    469469        } 
  • trunk/wifidog/src/gateway.c

    r89 r90  
    4545 
    4646        // Initialize the web server 
    47         debug(D_LOG_NOTICE, "Creating web server on %s:%d",  
     47        debug(LOG_NOTICE, "Creating web server on %s:%d",  
    4848                        config.gw_address, config.gw_port); 
    4949        webserver = httpdCreate(config.gw_address, config.gw_port); 
    5050        if (webserver == NULL) { 
    51                 debug(D_LOG_ERR, "Could not create web server"); 
    52                 exit(1); 
    53         } 
    54         debug(D_LOG_DEBUG, "Assigning callbacks to web server"); 
     51                debug(LOG_ERR, "Could not create web server"); 
     52                exit(1); 
     53        } 
     54        debug(LOG_DEBUG, "Assigning callbacks to web server"); 
    5555        httpdAddCContent(webserver, "/wifidog", "about", 0, NULL, 
    5656                        http_callback_about); 
     
    6969        pthread_detach(tid); 
    7070         
    71         debug(D_LOG_NOTICE, "Waiting for connections"); 
     71        debug(LOG_NOTICE, "Waiting for connections"); 
    7272        while(1) { 
    7373                tv.tv_sec = config.checkinterval; 
     
    8383                         * reboot the device ? 
    8484                         */ 
    85                         debug(D_LOG_ERR, "httpdGetConnection returned %d", 
     85                        debug(LOG_ERR, "httpdGetConnection returned %d", 
    8686                                result); 
    8787                        fw_destroy(); 
     
    9191                         * We got a connection 
    9292                         */ 
    93                         debug(D_LOG_INFO, "Received connection from %s", 
     93                        debug(LOG_INFO, "Received connection from %s", 
    9494                                webserver->clientAddr); 
    9595                        if (httpdReadRequest(webserver) >=0) { 
     
    9797                                 * We read the request fine 
    9898                                 */ 
    99                                 debug(D_LOG_DEBUG, "Processing request from " 
     99                                debug(LOG_DEBUG, "Processing request from " 
    100100                                        "%s", webserver->clientAddr); 
    101101                                httpdProcessRequest(webserver); 
    102102                        } 
    103103                        else { 
    104                                 debug(D_LOG_ERR, "No valid request received " 
     104                                debug(LOG_ERR, "No valid request received " 
    105105                                        "from %s", webserver->clientAddr); 
    106106                        } 
    107                         debug(D_LOG_DEBUG, "Closing connection with %s", 
     107                        debug(LOG_DEBUG, "Closing connection with %s", 
    108108                                webserver->clientAddr); 
    109109                        httpdEndRequest(webserver); 
     
    129129                int childPid; 
    130130 
    131                 debug(D_LOG_INFO, "Forking into background"); 
     131                debug(LOG_INFO, "Forking into background"); 
    132132 
    133133                switch((childPid = fork())) { 
    134134                case -1: /* error */ 
    135                         debug(D_LOG_ERR, "fork(): %s", strerror(errno)); 
     135                        debug(LOG_ERR, "fork(): %s", strerror(errno)); 
    136136                        exit(1); 
    137137                        break; 
     
    169169        fw_destroy(); 
    170170 
    171         debug(D_LOG_WARNING, "Exiting..."); 
     171        debug(LOG_WARNING, "Exiting..."); 
    172172        exit(0); 
    173173} 
     
    178178        struct sigaction sa; 
    179179 
    180         debug(D_LOG_DEBUG, "Initializing signal handlers"); 
     180        debug(LOG_DEBUG, "Initializing signal handlers"); 
    181181         
    182182        sa.sa_handler = sigchld_handler; 
     
    184184        sa.sa_flags = SA_RESTART; 
    185185        if (sigaction(SIGCHLD, &sa, NULL) == -1) { 
    186                 debug(D_LOG_ERR, "sigaction(): %s", strerror(errno)); 
     186                debug(LOG_ERR, "sigaction(): %s", strerror(errno)); 
    187187                exit(1); 
    188188        } 
     
    194194        /* Trap SIGTERM */ 
    195195        if (sigaction(SIGTERM, &sa, NULL) == -1) { 
    196                 debug(D_LOG_ERR, "sigaction(): %s", strerror(errno)); 
     196                debug(LOG_ERR, "sigaction(): %s", strerror(errno)); 
    197197                exit(1); 
    198198        } 
     
    200200        /* Trap SIGQUIT */ 
    201201        if (sigaction(SIGQUIT, &sa, NULL) == -1) { 
    202                 debug(D_LOG_ERR, "sigaction(): %s", strerror(errno)); 
     202                debug(LOG_ERR, "sigaction(): %s", strerror(errno)); 
    203203                exit(1); 
    204204        } 
     
    206206        /* Trap SIGINT */ 
    207207        if (sigaction(SIGINT, &sa, NULL) == -1) { 
    208                 debug(D_LOG_ERR, "sigaction(): %s", strerror(errno)); 
    209                 exit(1); 
    210         } 
    211 } 
    212  
     208                debug(LOG_ERR, "sigaction(): %s", strerror(errno)); 
     209                exit(1); 
     210        } 
     211} 
     212 
  • trunk/wifidog/src/http.c

    r72 r90  
    4141                        config.gw_address, config.gw_port,  
    4242                        config.gw_id) == -1) { 
    43                 debug(D_LOG_ERR, "Failed to asprintf newlocation"); 
     43                debug(LOG_ERR, "Failed to asprintf newlocation"); 
    4444                httpdOutput(webserver, "Internal error occurred"); 
    4545        } else { 
     
    5252                                config.authserv_loginurl, config.gw_address,  
    5353                                config.gw_port, config.gw_id); 
    54                 debug(D_LOG_INFO, "Captured %s and re-directed them to login " 
     54                debug(LOG_INFO, "Captured %s and re-directed them to login " 
    5555                        "page", webserver->clientAddr); 
    5656                free(newlocation); 
     
    8686                if (!(mac = arp_get(webserver->clientAddr))) { 
    8787                        // We could not get their MAC address 
    88                         debug(D_LOG_ERR, "Failed to retrieve MAC address for " 
     88                        debug(LOG_ERR, "Failed to retrieve MAC address for " 
    8989                                "ip %s", webserver->clientAddr); 
    9090                        httpdOutput(webserver, "Failed to retrieve your MAC " 
     
    9797                        if ((node = node_find_by_ip(webserver->clientAddr)) 
    9898                                        == NULL) { 
    99                                 debug(D_LOG_DEBUG, "New node for %s", 
     99                                debug(LOG_DEBUG, "New node for %s", 
    100100                                        webserver->clientAddr); 
    101101                                node_add(webserver->clientAddr, mac, 
    102102                                        token->value, 0, 0); 
    103103                        } else { 
    104                                 debug(D_LOG_DEBUG, "Node for %s already " 
     104                                debug(LOG_DEBUG, "Node for %s already " 
    105105                                        "exists", node->ip); 
    106106                                if (node->rights != NULL) { 
    107107                                        /* log off if logged in */ 
    108                                         debug(D_LOG_DEBUG, "Logging off %s " 
     108                                        debug(LOG_DEBUG, "Logging off %s " 
    109109                                                "because they tried a new " 
    110110                                                "token", node->ip); 
  • trunk/wifidog/src/userclasses.c

    r65 r90  
    252252                        insert_userclasses(tmp_uc); 
    253253 
    254                         debug(D_LOG_DEBUG, "Rule #%d: timeout %d active %d", 
     254                        debug(LOG_DEBUG, "Rule #%d: timeout %d active %d", 
    255255                                        i, timeout, active); 
    256256                } 
  • trunk/wifidog/wifidog.conf

    r52 r90  
    9191ClientTimeout 5 
    9292 
     93# Parm: FWScriptsPath 
     94# Default: . 
     95# 
     96FWScriptsPath . 
     97 
     98# Parm: FWType 
     99# Default: . 
     100# 
     101FWType . 
     102 
    93103# Parm: UserClass 
    94104# Default: UserClass 0, no rights.