summaryrefslogtreecommitdiff
path: root/lkm/ipl
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-02-25 19:20:27 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-02-25 19:20:27 +0000
commitffcd0f2b3f5bb3b0dfc421e1fddd5b3a8064aaca (patch)
tree635d50e8f3f12106cbca0a67455970bff702f032 /lkm/ipl
parentcdf27a9bb8d75d0954a2d98d0156c7f980f0c3a9 (diff)
Initial commit. Bug it if you would.
Diffstat (limited to 'lkm/ipl')
-rw-r--r--lkm/ipl/Makefile10
-rw-r--r--lkm/ipl/stub.c29
2 files changed, 39 insertions, 0 deletions
diff --git a/lkm/ipl/Makefile b/lkm/ipl/Makefile
new file mode 100644
index 00000000000..1ba043c6c5c
--- /dev/null
+++ b/lkm/ipl/Makefile
@@ -0,0 +1,10 @@
+# $OpenBSD: Makefile,v 1.1 1996/02/25 19:20:26 mickey Exp $
+
+LKM= ipl
+SRCS+= stub.c ip_fil.c fil.c ip_nat.c ip_frag.c ip_state.c
+CFLAGS+= -DIPFILTER_LKM -DIPFILTER_LOG
+NOMAN= noman
+
+.PATH: ${.CURDIR}/../../sys/netinet
+
+.include <bsd.lkm.mk>
diff --git a/lkm/ipl/stub.c b/lkm/ipl/stub.c
new file mode 100644
index 00000000000..1467fdc54c0
--- /dev/null
+++ b/lkm/ipl/stub.c
@@ -0,0 +1,29 @@
+/* $OpenBSD: stub.c,v 1.1 1996/02/25 19:20:26 mickey Exp $ */
+
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/conf.h>
+#include <sys/kernel.h>
+#include <sys/exec.h>
+#include <sys/lkm.h>
+
+static cdev_decl(ipl);
+static struct cdevsw ipl_cdevsw = cdev_gen_ipf(1,ipl);
+MOD_DEV("ipl", LM_DT_CHAR, -1, &ipl_cdevsw );
+
+static int
+lkm_load( lkmtp, cmd )
+ struct lkm_table *lkmtp;
+ int cmd;
+{
+ return 0;
+}
+
+int
+ipl(lkmtp, cmd, ver)
+ struct lkm_table *lkmtp;
+ int cmd;
+ int ver;
+{
+ DISPATCH(lkmtp, cmd, ver, lkm_load, lkm_nofunc, lkm_nofunc)
+}