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

src/firewall.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/firewall.h,v 1.17 2005/02/03 21:25:33 aprilp Exp $ */
00027 #ifndef _FIREWALL_H_
00028 #define _FIREWALL_H_
00029 
00031 typedef enum _t_fw_marks {
00032     FW_MARK_PROBATION = 1, 
00034     FW_MARK_KNOWN = 2,  
00035     FW_MARK_LOCKED = 254 
00036 } t_fw_marks;
00037 
00039 int fw_init(void);
00040 
00042 void fw_clear_authservers(void);
00043 
00045 void fw_set_authservers(void);
00046 
00048 int fw_destroy(void);
00049 
00051 int fw_allow(char *ip, char *mac, int profile);
00052 
00054 int fw_deny(char *ip, char *mac, int profile);
00055 
00057 void fw_counter(void);
00058 
00060 char *arp_get(char *req_ip);
00061 
00063 void icmp_ping(char *host);
00064 
00066 unsigned short rand16(void);
00067 
00068 #endif /* _FIREWALL_H_ */

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