IPStack - Fiddling with firewall
authorJohn Hodge <[email protected]>
Mon, 21 Mar 2011 08:17:59 +0000 (16:17 +0800)
committerJohn Hodge <[email protected]>
Mon, 21 Mar 2011 08:17:59 +0000 (16:17 +0800)
Modules/IPStack/firewall.h

index a82362b..5a62380 100644 (file)
@@ -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
        );

UCC git Repository :: git.ucc.asn.au