fw_iptables.h

00001 /********************************************************************\
00002  * This program is free software; you can redistribute it and/or    *
00003  * modify it under the terms of the GNU General Public License as   *
00004  * published by the Free Software Foundation; either version 2 of   *
00005  * the License, or (at your option) any later version.              *
00006  *                                                                  *
00007  * This program is distributed in the hope that it will be useful,  *
00008  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00009  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00010  * GNU General Public License for more details.                     *
00011  *                                                                  *
00012  * You should have received a copy of the GNU General Public License*
00013  * along with this program; if not, contact:                        *
00014  *                                                                  *
00015  * Free Software Foundation           Voice:  +1-617-542-5942       *
00016  * 59 Temple Place - Suite 330        Fax:    +1-617-542-2652       *
00017  * Boston, MA  02111-1307,  USA       gnu@gnu.org                   *
00018  *                                                                  *
00019 \********************************************************************/
00020 
00021 /* $Id: fw_iptables.h 901 2006-01-17 18:58:13Z mina $ */
00027 #ifndef _FW_IPTABLES_H_
00028 #define _FW_IPTABLES_H_
00029 
00030 #include "firewall.h"
00031 
00034 #define TABLE_WIFIDOG_OUTGOING  "WiFiDog_Outgoing"
00035 #define TABLE_WIFIDOG_WIFI_TO_INTERNET "WiFiDog_WIFI2Internet"
00036 #define TABLE_WIFIDOG_WIFI_TO_ROUTER "WiFiDog_WIFI2Router"
00037 #define TABLE_WIFIDOG_INCOMING  "WiFiDog_Incoming"
00038 #define TABLE_WIFIDOG_AUTHSERVERS "WiFiDog_AuthServers"
00039 #define TABLE_WIFIDOG_GLOBAL  "WiFiDog_Global"
00040 #define TABLE_WIFIDOG_VALIDATE  "WiFiDog_Validate"
00041 #define TABLE_WIFIDOG_KNOWN     "WiFiDog_Known"
00042 #define TABLE_WIFIDOG_UNKNOWN   "WiFiDog_Unknown"
00043 #define TABLE_WIFIDOG_LOCKED    "WiFiDog_Locked"
00044 #define TABLE_WIFIDOG_TRUSTED    "WiFiDog_Trusted"
00045 
00048 typedef enum fw_access_t_ {
00049     FW_ACCESS_ALLOW,
00050     FW_ACCESS_DENY
00051 } fw_access_t;
00052 
00054 int iptables_fw_init(void);
00055 
00057 void iptables_fw_set_authservers(void);
00058 
00060 void iptables_fw_clear_authservers(void);
00061 
00063 int iptables_fw_destroy(void);
00064 
00066 int iptables_fw_destroy_mention( char * table, char * chain, char * mention);
00067 
00069 int iptables_fw_access(fw_access_t type, char *ip, char *mac, int tag);
00070 
00072 int iptables_fw_counters_update(void);
00073 
00074 #endif /* _IPTABLES_H_ */

Generated on Sun Jun 24 00:29:52 2007 for WifiDog by  doxygen 1.5.1