Show
Ignore:
Timestamp:
03/03/10 15:53:06 (2 years ago)
Author:
gbastien
Message:

Committed patch for #501 by Benoît Grégoire and Mac Jones

Files:
1 modified

Legend:

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

    r1429 r1454  
    556556                                } 
    557557                        } else { 
    558                                 debug(LOG_ERR, "Could not find %s in client list", ip); 
     558                                debug(LOG_ERR, "iptables_fw_counters_update(): Could not find %s in client list, this should not happen unless if the gateway crashed", ip); 
     559                                debug(LOG_ERR, "Preventively deleting firewall rules for %s in table %s", ip, TABLE_WIFIDOG_OUTGOING); 
     560                                iptables_fw_destroy_mention("mangle", TABLE_WIFIDOG_OUTGOING, ip); 
     561                                debug(LOG_ERR, "Preventively deleting firewall rules for %s in table %s", ip, TABLE_WIFIDOG_INCOMING); 
     562                                iptables_fw_destroy_mention("mangle", TABLE_WIFIDOG_INCOMING, ip); 
    559563                        } 
    560564                        UNLOCK_CLIENT_LIST(); 
     
    594598                                } 
    595599                        } else { 
    596                                 debug(LOG_ERR, "Could not find %s in client list", ip); 
     600                                debug(LOG_ERR, "iptables_fw_counters_update(): Could not find %s in client list, this should not happen unless if the gateway crashed", ip); 
     601                                debug(LOG_ERR, "Preventively deleting firewall rules for %s in table %s", ip, TABLE_WIFIDOG_OUTGOING); 
     602                                iptables_fw_destroy_mention("mangle", TABLE_WIFIDOG_OUTGOING, ip); 
     603                                debug(LOG_ERR, "Preventively deleting firewall rules for %s in table %s", ip, TABLE_WIFIDOG_INCOMING); 
     604                                iptables_fw_destroy_mention("mangle", TABLE_WIFIDOG_INCOMING, ip); 
    597605                        } 
    598606                        UNLOCK_CLIENT_LIST();