Changeset 99

Show
Ignore:
Timestamp:
04/23/04 07:37:43 (9 years ago)
Author:
aprilp
Message:

Fixed a debug line

Location:
trunk/wifidog
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog/ChangeLog

    r95 r99  
    11# $Header$ 
     22004-04-23  Philippe April <papril777@yahoo.com> 
     3    * Fixed a debug line 
     4 
    252004-04-22  Philippe April <papril777@yahoo.com> 
    36    * Major changes, cleaned up code 
  • trunk/wifidog/src/firewall.c

    r95 r99  
    5454        char *command[] = {script, "allow", ip, mac, s_tag, NULL}; 
    5555 
    56     debug(LOG_DEBUG, "Allowing ip %s mac %s with MARK %s", ip, mac, s_tag); 
    57  
    5856        sprintf(s_tag, "%-10d", tag); 
    5957        sprintf(script, "%s/%s/%s", config.fwscripts_path, config.fwtype,  
    6058                SCRIPT_FWACCESS); 
     59 
     60    debug(LOG_DEBUG, "Allowing ip %s mac %s with MARK %s", ip, mac, s_tag); 
    6161 
    6262        if (-1 == (stat(script, &st))) { 
     
    8888        char *command[] = {script, "deny", ip, mac, s_tag, NULL}; 
    8989 
    90     debug(LOG_DEBUG, "Denying ip %s mac %s with MARK %s", ip, mac, s_tag); 
    91  
    9290        sprintf(s_tag, "%-10d", tag); 
    9391        sprintf(script, "%s/%s/%s", config.fwscripts_path, config.fwtype, 
    9492                SCRIPT_FWACCESS); 
     93 
     94    debug(LOG_DEBUG, "Denying ip %s mac %s with MARK %s", ip, mac, s_tag); 
    9595 
    9696        if (-1 == (stat(script, &st))) {