blob: 08f5033b70495ab6f7c83f1dab9ecbfba835ed11 (
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
|
#include <stdio.h>
#include "../include/ebtables_u.h"
#define FILTER_VALID_HOOKS ((1 << NF_BR_LOCAL_IN) | (1 << NF_BR_FORWARD) | \
(1 << NF_BR_LOCAL_OUT))
static void print_help(const char **hn)
{
int i;
printf("Supported chains for the filter table:\n");
for (i = 0; i < NF_BR_NUMHOOKS; i++)
if (FILTER_VALID_HOOKS & (1 << i))
printf("%s ", hn[i]);
printf("\n");
}
static struct ebt_u_table table =
{
.name = "filter",
.help = print_help,
};
void _init(void)
{
ebt_register_table(&table);
}
|