From: John Hodge Date: Mon, 21 Mar 2011 08:17:59 +0000 (+0800) Subject: IPStack - Fiddling with firewall X-Git-Tag: rel0.10~158 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=15a5e1959dbe47bd75e847e10e8e0f6908a8bd9d;p=tpg%2Facess2.git IPStack - Fiddling with firewall --- diff --git a/Modules/IPStack/firewall.h b/Modules/IPStack/firewall.h index a82362b0..5a623803 100644 --- a/Modules/IPStack/firewall.h +++ b/Modules/IPStack/firewall.h @@ -3,19 +3,19 @@ #ifndef _FIREWALL_H_ #define _FIREWALL_H_ +enum eFirewallActions +{ + FIREWALL_ACCEPT, + FIREWALL_DROP +}; + /** * \brief Tests a packet on a chain */ -extern int IPTablesV4_TestChain( - const char *RuleName, - const tIPv4 *Src, const tIPv4 *Dest, - Uint8 Type, Uint32 Flags, - size_t Length, const void *Data - ); - -extern int IPTablesV6_TestChain( +extern int IPTables_TestChain( const char *RuleName, - const tIPv6 *Src, const tIPv6 *Dest, + const int AddressType, + const void *Src, const void *Dest, Uint8 Type, Uint32 Flags, size_t Length, const void *Data );