summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-03-27 18:08:08 +0000
committerpeter <peter@FreeBSD.org>1998-03-27 18:08:08 +0000
commitc169f0d4eca1b26f73c3cfeef7cf85a23f434dbe (patch)
tree5de806b91d357f6bd3d31cc52bc426daa9ace217
parent817278db3ea7d62598efab8f30596d6a97d89202 (diff)
downloadFreeBSD-src-c169f0d4eca1b26f73c3cfeef7cf85a23f434dbe.zip
FreeBSD-src-c169f0d4eca1b26f73c3cfeef7cf85a23f434dbe.tar.gz
When building in in the kernel rather than as a LKM, don't compile
all the LKM load/unload junk, and don't forget to register the SYSINIT so that the cdevsw entry is attached. BTW: I think the way it builds it's /dev nodes on the fly as an LKM with vnode ops is kinda cute - I guess that'd be one way to solve the devfs persistance problems.. :-) (ie: have the drivers make the nodes in /dev on disk directly if they are missing, but leave them alone if present).
-rw-r--r--sys/netinet/mlf_ipl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/mlf_ipl.c b/sys/netinet/mlf_ipl.c
index d0ce3d8..43e8159 100644
--- a/sys/netinet/mlf_ipl.c
+++ b/sys/netinet/mlf_ipl.c
@@ -160,9 +160,10 @@ static struct cdevsw ipl_cdevsw = {
#endif
-static int iplaction __P((struct lkm_table *, int));
static void ipl_drvinit __P((void *));
+#ifdef ACTUALLY_LKM_NOT_KERNEL
+static int iplaction __P((struct lkm_table *, int));
static int iplaction(lkmtp, cmd)
struct lkm_table *lkmtp;
@@ -298,6 +299,7 @@ int cmd;
return 0;
}
+#endif /* actually LKM */
#if defined(__FreeBSD_version) && (__FreeBSD_version < 220000)
/*
@@ -376,7 +378,5 @@ static void ipl_drvinit __P((void *unused))
}
}
-# ifdef IPFILTER_LKM
-SYSINIT(ipldev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,ipl_drvinit,NULL)
-# endif /* IPFILTER_LKM */
+SYSINIT(ipldev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,ipl_drvinit,NULL);
#endif /* _FreeBSD_version */
OpenPOWER on IntegriCloud