Date: Fri, 8 Nov 1996 20:04:02 -0500 From: jc@irbs.com (John Capo) To: freebsd-stable@freebsd.org Subject: ipfw LKM patches Message-ID: <199611090104.UAA15328@irbs.irbs.com>
next in thread | raw e-mail | index | archive | help
Index: lkm/Makefile
===================================================================
RCS file: /usr/cvs/src/lkm/Makefile,v
retrieving revision 1.9.4.4
diff -c -r1.9.4.4 Makefile
*** Makefile 1996/06/23 13:47:31 1.9.4.4
--- Makefile 1996/09/13 22:34:36
***************
*** 1,7 ****
# $Id$
# XXX present but broken: ip_mroute_mod mfs
! SUBDIR= cd9660 coff fdesc ibcs2 if_disc if_ppp if_sl if_tun \
kernfs linux msdos nfs nullfs \
portal procfs socksys syscons umapfs
--- 1,7 ----
# $Id$
# XXX present but broken: ip_mroute_mod mfs
! SUBDIR= cd9660 coff fdesc ibcs2 if_disc if_ppp if_sl ipfw if_tun \
kernfs linux msdos nfs nullfs \
portal procfs socksys syscons umapfs
Index: lkm/ipfw/Makefile
===================================================================
RCS file: /usr/cvs/src/lkm/ipfw/Makefile,v
retrieving revision 1.3
diff -c -r1.3 Makefile
*** Makefile 1995/05/30 06:06:07 1.3
--- Makefile 1996/09/14 00:21:43
***************
*** 2,10 ****
.PATH: ${.CURDIR}/../../sys/netinet
KMOD= ipfw_mod
! SRCS= ipfw_lkm.c ip_fw.c
NOMAN=
! CFLAGS+= -DIPFIREWALL -DIPACCT
#
#If you want it verbose
#CFLAGS+= -DIPFIREWALL_VERBOSE
--- 2,10 ----
.PATH: ${.CURDIR}/../../sys/netinet
KMOD= ipfw_mod
! SRCS= ip_fw.c
NOMAN=
! CFLAGS+= -DACTUALLY_LKM_NOT_KERNEL -DIPFIREWALL -DIPACCT
#
#If you want it verbose
#CFLAGS+= -DIPFIREWALL_VERBOSE
Index: sys/netinet/ip_fw.c
===================================================================
RCS file: /usr/cvs/src/sys/netinet/ip_fw.c,v
retrieving revision 1.14.4.9
diff -c -r1.14.4.9 ip_fw.c
*** ip_fw.c 1996/06/25 03:16:41 1.14.4.9
--- ip_fw.c 1996/09/14 00:29:14
***************
*** 731,741 ****
#ifdef ACTUALLY_LKM_NOT_KERNEL
#include <sys/exec.h>
#include <sys/sysent.h>
#include <sys/lkm.h>
! MOD_MISC(ipfw);
static int
ipfw_load(struct lkm_table *lkmtp, int cmd)
--- 731,743 ----
#ifdef ACTUALLY_LKM_NOT_KERNEL
+ #include <sys/conf.h>
#include <sys/exec.h>
#include <sys/sysent.h>
#include <sys/lkm.h>
! static int (*old_chk_ptr)(struct mbuf *, struct ip *, struct ifnet *, int dir);
! static int (*old_ctl_ptr)(int, struct mbuf **);
static int
ipfw_load(struct lkm_table *lkmtp, int cmd)
***************
*** 770,778 ****
return 0;
}
int
ipfw_mod(struct lkm_table *lkmtp, int cmd, int ver)
{
! DISPATCH(lkmtp, cmd, ver, ipfw_load, ipfw_unload, lkm_nullcmd);
}
#endif
--- 772,782 ----
return 0;
}
+ MOD_MISC("ipfw_mod")
+
int
ipfw_mod(struct lkm_table *lkmtp, int cmd, int ver)
{
! DISPATCH(lkmtp, cmd, ver, ipfw_load, ipfw_unload, nosys);
}
#endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611090104.UAA15328>
