4 * Copyright (C) 2012 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
10 #include <sys/param.h>
11 #include <sys/systm.h>
14 #include <sys/ioctl.h>
15 #include <sys/kernel.h>
18 #include <sys/socket.h>
20 #include <netinet/in_systm.h>
21 #include <netinet/in.h>
22 #include <netinet/ip.h>
23 #include <net/route.h>
24 #include <netinet/ip_var.h>
25 #include <netinet/tcp.h>
26 #include <netinet/tcpip.h>
28 #include "ip_compat.h"
35 static int ipfruleaction __P((struct lkm_table *, int));
37 int ipfrule __P((struct lkm_table *, int, int));
40 MOD_MISC("IPFilter Rules");
42 int ipfrule(lkmtp, cmd, ver)
43 struct lkm_table *lkmtp;
46 DISPATCH(lkmtp, cmd, ver, ipfruleaction, ipfruleaction, ipfruleaction);
49 int lkmexists __P((struct lkm_table *)); /* defined in /sys/kern/kern_lkm.c */
51 static int ipfruleaction(lkmtp, cmd)
52 struct lkm_table *lkmtp;
68 err = ipfrule_remove();
80 #endif /* IPFILTER_LKM */