comparison src/syslogconfig.h @ 36:6a2f26976898

shutdown removes iptables entries that we added
author carl
date Thu, 08 Nov 2007 10:52:56 -0800
parents d2ceebcf6595
children 26c29da3fbdf
comparison
equal deleted inserted replaced
35:d2ceebcf6595 36:6a2f26976898
1 /*************************************************************************** 1 /*
2 * Copyright (C) 2005 by 510 Software Group * 2
3 * * 3 Copyright (c) 2007 Carl Byington - 510 Software Group, released under
4 * * 4 the GPL version 3 or any later version at your choice available at
5 * This program is free software; you can redistribute it and/or modify * 5 http://www.gnu.org/licenses/gpl-3.0.txt
6 * it under the terms of the GNU General Public License as published by * 6
7 * the Free Software Foundation; either version 2 of the License, or * 7 */
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
20 8
21 9
22 class SYSLOGCONFIG; 10 class SYSLOGCONFIG;
23 class CONFIG; 11 class CONFIG;
24 12
91 void add_syslogconfig(SYSLOGCONFIGP con); 79 void add_syslogconfig(SYSLOGCONFIGP con);
92 void add_pair(IPPAIR pair); 80 void add_pair(IPPAIR pair);
93 void dump(); 81 void dump();
94 void read(); 82 void read();
95 void sleep(int duration, time_t &previous); 83 void sleep(int duration, time_t &previous);
84 void free_all();
96 bool looking(int ip); 85 bool looking(int ip);
97 }; 86 };
98 87
99 void discard(string_set &s); 88 void discard(string_set &s);
100 char* register_string(string_set &s, char *name); 89 char* register_string(string_set &s, char *name);