diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-02-25 19:20:27 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-02-25 19:20:27 +0000 |
commit | ffcd0f2b3f5bb3b0dfc421e1fddd5b3a8064aaca (patch) | |
tree | 635d50e8f3f12106cbca0a67455970bff702f032 | |
parent | cdf27a9bb8d75d0954a2d98d0156c7f980f0c3a9 (diff) |
Initial commit. Bug it if you would.
-rw-r--r-- | lkm/Makefile | 5 | ||||
-rw-r--r-- | lkm/Makefile.inc | 4 | ||||
-rw-r--r-- | lkm/ipl/Makefile | 10 | ||||
-rw-r--r-- | lkm/ipl/stub.c | 29 |
4 files changed, 48 insertions, 0 deletions
diff --git a/lkm/Makefile b/lkm/Makefile new file mode 100644 index 00000000000..69512cd7b0e --- /dev/null +++ b/lkm/Makefile @@ -0,0 +1,5 @@ +# $OpenBSD: Makefile,v 1.1 1996/02/25 19:20:24 mickey Exp $ + +SUBDIR+= ipl + +.include <bsd.subdir.mk> diff --git a/lkm/Makefile.inc b/lkm/Makefile.inc new file mode 100644 index 00000000000..49e7e3edfac --- /dev/null +++ b/lkm/Makefile.inc @@ -0,0 +1,4 @@ +# $OpenBSD: Makefile.inc,v 1.1 1996/02/25 19:20:25 mickey Exp $ +# @(#)Makefile.inc 8.1 (Berkeley) 5/31/93 + +BINDIR?=/lkm 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) +} |