2 * Copyright (C) 2012 by Darren Reed.
4 * See the IPFILTER.LICENCE file for details on licencing.
12 #include <sys/ioctl.h>
13 #include <sys/kernel.h>
16 #include <sys/socket.h>
18 #include <netinet/in_systm.h>
19 #include <netinet/in.h>
20 #include <netinet/ip.h>
21 #include <net/route.h>
22 #include <netinet/ip_var.h>
23 #include <netinet/tcp.h>
24 #include <netinet/tcpip.h>
26 #include "ip_compat.h"
31 static int ipfruleaction __P((struct lkm_table *, int));
35 int ipfrule_lkmentry __P((struct lkm_table *, int, int));
37 int xxxinit __P((struct lkm_table *, int, int));
41 MOD_MISC("IPFilter Rules");
44 int ipfrule_lkmentry(lkmtp, cmd, ver)
46 int xxxinit(lkmtp, cmd, ver)
48 struct lkm_table *lkmtp;
51 DISPATCH(lkmtp, cmd, ver, ipfruleaction, ipfruleaction, ipfruleaction);
54 static int ipfruleaction(lkmtp, cmd)
55 struct lkm_table *lkmtp;
71 err = ipfrule_remove();
83 #endif /* IPFILTER_LKM */