Main Page | Data Structures | Directories | File List | Data Fields

wifidog-1.1.1/src/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 /* $Header: /cvsroot/wifidog/wifidog/src/fw_iptables.h,v 1.7 2005/03/12 02:02:01 minaguib Exp $ */
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 
00047 typedef enum fw_access_t_ {
00048     FW_ACCESS_ALLOW,
00049     FW_ACCESS_DENY
00050 } fw_access_t;
00051 
00053 int iptables_fw_init(void);
00054 
00056 void iptables_fw_set_authservers(void);
00057 
00059 void iptables_fw_clear_authservers(void);
00060 
00062 int iptables_fw_destroy(void);
00063 
00065 int iptables_fw_destroy_mention( char * table, char * chain, char * mention);
00066 
00068 int iptables_fw_access(fw_access_t type, char *ip, char *mac, int tag);
00069 
00071 int iptables_fw_counters_update(void);
00072 
00073 #endif /* _IPTABLES_H_ */

Generated on Sun Apr 3 20:04:46 2005 for WifiDog by  doxygen 1.4.1