1 /* Shared library add-on to ip6tables to add EUI64 address checking support. */
7 #if defined(__GLIBC__) && __GLIBC__ == 2
8 #include <net/ethernet.h>
10 #include <linux/if_ether.h>
12 #include <ip6tables.h>
14 /* Function which prints out usage message. */
15 static void eui64_help(void)
18 "eui64 match options:\n"
19 " This module hasn't got any option\n"
20 " This module checks for EUI64 IPv6 addresses\n");
23 /* Function which parses command options; returns true if it
25 static int eui64_parse(int c, char **argv, int invert, unsigned int *flags,
26 const void *entry, struct xt_entry_match **match)
31 static struct xtables_match eui64_mt6_reg = {
33 .version = XTABLES_VERSION,
35 .size = XT_ALIGN(sizeof(int)),
36 .userspacesize = XT_ALIGN(sizeof(int)),
43 xtables_register_match(&eui64_mt6_reg);