Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / ebtables / extensions / ebtable_nat.c
blobb21c9ddaedd46ba34a8feda56098c3ed984cc468
1 /* ebtable_nat
3 * Authors:
4 * Bart De Schuymer <bdschuym@pandora.be>
6 * April, 2002
7 */
9 #include <stdio.h>
10 #include "../include/ebtables_u.h"
12 #define NAT_VALID_HOOKS ((1 << NF_BR_PRE_ROUTING) | (1 << NF_BR_LOCAL_OUT) | \
13 (1 << NF_BR_POST_ROUTING))
15 static void print_help(const char **hn)
17 int i;
19 printf("Supported chains for the nat table:\n");
20 for (i = 0; i < NF_BR_NUMHOOKS; i++)
21 if (NAT_VALID_HOOKS & (1 << i))
22 printf("%s ", hn[i]);
23 printf("\n");
26 static struct
27 ebt_u_table table =
29 .name = "nat",
30 .help = print_help,
33 void _init(void)
35 ebt_register_table(&table);