Sapan says vnet_tun is obsolete.
[iptables.git] / extensions / libip6t_eui64.c
1 /* Shared library add-on to ip6tables to add EUI64 address checking support. */
2 #include <stdio.h>
3 #include <netdb.h>
4 #include <string.h>
5 #include <stdlib.h>
6 #include <getopt.h>
7 #if defined(__GLIBC__) && __GLIBC__ == 2
8 #include <net/ethernet.h>
9 #else
10 #include <linux/if_ether.h>
11 #endif
12 #include <ip6tables.h>
13
14 /* Function which prints out usage message. */
15 static void eui64_help(void)
16 {
17         printf(
18 "eui64 match options:\n"
19 " This module hasn't got any option\n"
20 " This module checks for EUI64 IPv6 addresses\n");
21 }
22
23 /* Function which parses command options; returns true if it
24    ate an option */
25 static int eui64_parse(int c, char **argv, int invert, unsigned int *flags,
26                        const void *entry, struct xt_entry_match **match)
27 {
28         return 0;
29 }
30
31 static struct xtables_match eui64_mt6_reg = {
32         .name           = "eui64",
33         .version        = XTABLES_VERSION,
34         .family         = PF_INET6,
35         .size           = XT_ALIGN(sizeof(int)),
36         .userspacesize  = XT_ALIGN(sizeof(int)),
37         .help           = eui64_help,
38         .parse          = eui64_parse,
39 };
40
41 void _init(void)
42 {
43         xtables_register_match(&eui64_mt6_reg);
44 }