18 #include <linux/types.h>
20 #include <linux/netfilter.h>
21 #include <linux/module.h>
23 #include <linux/icmp.h>
24 #include <linux/sysctl.h>
27 #include <linux/netfilter_ipv4.h>
34 static bool generic_pkt_to_tuple(
const struct sk_buff *
skb,
unsigned int nhoff,
52 static int generic_print_tuple(
struct seq_file *
s,
58 static int generic_get_l4proto(
const struct sk_buff *
skb,
unsigned int nhoff,
59 unsigned int *dataoff,
u_int8_t *protonum)
69 .pkt_to_tuple = generic_pkt_to_tuple,
70 .invert_tuple = generic_invert_tuple,
71 .print_tuple = generic_print_tuple,
72 .get_l4proto = generic_get_l4proto,