X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FIPStack%2Ffirewall.h;h=5a623803c7f4e84dea717421ad8ac2a9dd074b5f;hb=b1873b4cff47aae8ada8cc303ea01b475cc7ccc8;hp=a82362b0847df0a45cd79775450e89941cefe8b8;hpb=3af08228012b1e79b7f47457f606911f3064dcbd;p=tpg%2Facess2.git 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 );