diff options
Diffstat (limited to 'userspace/ebtables2/extensions/ebtable_broute.c')
-rw-r--r-- | userspace/ebtables2/extensions/ebtable_broute.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/userspace/ebtables2/extensions/ebtable_broute.c b/userspace/ebtables2/extensions/ebtable_broute.c new file mode 100644 index 0000000..2abfcb6 --- /dev/null +++ b/userspace/ebtables2/extensions/ebtable_broute.c @@ -0,0 +1,25 @@ +#include <stdio.h> +#include <sys/socket.h> +#include "../include/ebtables_u.h" + + +static void print_help(char **hn) +{ + printf("Supported chain for the nat table:\n"); + printf("%s\n",hn[NF_BR_BROUTING]); +} + +static struct +ebt_u_table table = +{ + "broute", + NULL, + print_help, + NULL +}; + +static void _init(void) __attribute__ ((constructor)); +static void _init(void) +{ + register_table(&table); +} |