c250dd0870e5d537f4fa5b979c0985261ca68f50
[tpg/acess2.git] / firewall.c
1 /*
2  * Acess2 IP Stack
3  * - Firewall Rules
4  */
5 #include "ipstack.h"
6
7 // === IMPORTS ===
8
9 // === PROTOTYPES ===
10  int    IPTablesV4_TestChain(
11         const char *RuleName,
12         const tIPv4 *Src, const tIPv4 *Dest,
13         Uint8 Type, Uint32 Flags,
14         size_t Length, const void *Data
15         );
16  int    IPTablesV6_TestChain(
17         const char *RuleName,
18         const tIPv6 *Src, const tIPv6 *Dest,
19         Uint8 Type, Uint32 Flags,
20         size_t Length, const void *Data
21         );
22
23 // === GLOBALS ===
24
25 // === CODE ===
26 /**
27  * \brief Tests an IPv4 chain on a packet
28  * \return Boolean Disallow (0: Packet Allowed, 1: Drop, 2: Reject)
29  */
30  int IPTablesV4_TestChain(
31         const char *RuleName,
32         const tIPv4 *Src, const tIPv4 *Dest,
33         Uint8 Type, Uint32 Flags,
34         size_t Length, const void *Data
35         )
36 {
37         return 0;       // Accept all for now
38 }

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