More work on IPv4/IPv6 firewalling support
[tpg/acess2.git] / Modules / IPStack / 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 }
39
40 /**
41  * \brief Tests an IPv6 chain on a packet
42  * \return Boolean Disallow (0: Packet Allowed, 1: Drop, 2: Reject)
43  */
44 int IPTablesV6_TestChain(
45         const char *RuleName,
46         const tIPv6 *Src, const tIPv6 *Dest,
47         Uint8 Type, Uint32 Flags,
48         size_t Length, const void *Data
49         )
50 {
51         return 0;       // Accept all for now
52 }
53

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