comparison src/syslogconfig.cpp @ 37:e4eb969dfc4a

shutdown removes iptables entries that we added
author carl
date Thu, 08 Nov 2007 11:07:05 -0800
parents 6a2f26976898
children 26c29da3fbdf
comparison
equal deleted inserted replaced
36:6a2f26976898 37:e4eb969dfc4a
111 } 111 }
112 } 112 }
113 113
114 114
115 void IPR::free_all(CONFIG &con) { 115 void IPR::free_all(CONFIG &con) {
116 if (debug_syslog > 2) {
117 my_syslog("syslog2iptables shutting down");
118 }
116 for (ip_buckets::iterator i=violations.begin(); i!=violations.end(); i++) { 119 for (ip_buckets::iterator i=violations.begin(); i!=violations.end(); i++) {
117 int ip = (*i).first; 120 int ip = (*i).first;
118 bucket &b = (*i).second; 121 bucket &b = (*i).second;
119 if (b.latch) { 122 if (b.latch) {
120 update(ip, false, NULL, 0, NULL); 123 update(ip, false, NULL, 0, NULL);