blob: ee044823866c33296656a46cd6099898391f8be4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/* ebtable_nat
*
* Authors:
* Bart De Schuymer <bdschuym@pandora.be>
*
* April, 2002
*/
#include <stdio.h>
#include "../include/ebtables_u.h"
#define NAT_VALID_HOOKS ((1 << NF_BR_PRE_ROUTING) | (1 << NF_BR_LOCAL_OUT) | \
(1 << NF_BR_POST_ROUTING))
static void print_help(const char **hn)
{
int i;
printf("Supported chains for the nat table:\n");
for (i = 0; i < NF_BR_NUMHOOKS; i++)
if (NAT_VALID_HOOKS & (1 << i))
printf("%s ", hn[i]);
printf("\n");
}
static struct
ebt_u_table table =
{
.name = "nat",
.help = print_help,
};
static void _INIT(void)
{
ebt_register_table(&table);
}
|