9 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
10 #include <linux/module.h>
16 #include <linux/netfilter/x_tables.h>
18 #include <linux/netfilter_ipv4/ip_tables.h>
19 #include <linux/netfilter_ipv6/ip6_tables.h>
32 pr_debug(
"spi_match:%c 0x%x <= 0x%x <= 0x%x\n",
33 invert ?
'!' :
' ', min, spi, max);
34 r = (spi >= min && spi <=
max) ^ invert;
35 pr_debug(
" result %s\n", r ?
"PASS" :
"FAILED");
49 eh = skb_header_pointer(skb, par->
thoff,
sizeof(_esp), &_esp);
54 pr_debug(
"Dropping evil ESP tinygram.\n");
79 .checkentry = esp_mt_check,
81 .matchsize =
sizeof(
struct xt_esp),
88 .checkentry = esp_mt_check,
90 .matchsize =
sizeof(
struct xt_esp),
96 static int __init esp_mt_init(
void)
101 static void __exit esp_mt_exit(
void)