mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Revert the last change to sys/modules/ipfw/Makefile and fix a
standalone module build in a better way. Silence from: andre MFC after: 3 days
This commit is contained in:
parent
1a9415af17
commit
9bfe6d472a
3 changed files with 6 additions and 6 deletions
|
|
@ -3,9 +3,7 @@
|
|||
.PATH: ${.CURDIR}/../../netinet
|
||||
|
||||
KMOD= ipfw
|
||||
SRCS= ip_fw2.c ip_fw_pfil.c \
|
||||
opt_inet.h opt_ipfw.h opt_ipdn.h opt_ipdivert.h opt_ipsec.h \
|
||||
opt_pfil_hooks.h
|
||||
SRCS= ip_fw2.c ip_fw_pfil.c
|
||||
|
||||
CFLAGS+= -DIPFIREWALL
|
||||
#
|
||||
|
|
@ -16,7 +14,5 @@ CFLAGS+= -DIPFIREWALL
|
|||
#If you want it to pass all packets by default
|
||||
#CFLAGS+= -DIPFIREWALL_DEFAULT_TO_ACCEPT
|
||||
#
|
||||
opt_inet.h:
|
||||
echo "#define INET 1" > opt_inet.h
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
* Implement IP packet firewall (new version)
|
||||
*/
|
||||
|
||||
#if !defined(KLD_MODULE)
|
||||
#include "opt_ipfw.h"
|
||||
#include "opt_ipdn.h"
|
||||
#include "opt_ipdivert.h"
|
||||
|
|
@ -40,6 +41,7 @@
|
|||
#ifndef INET
|
||||
#error IPFIREWALL requires INET.
|
||||
#endif /* INET */
|
||||
#endif
|
||||
|
||||
#define IPFW2 1
|
||||
#if IPFW2
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#if !defined(KLD_MODULE)
|
||||
#include "opt_ipfw.h"
|
||||
#include "opt_ipdn.h"
|
||||
#include "opt_ipdivert.h"
|
||||
|
|
@ -34,9 +35,10 @@
|
|||
#ifndef INET
|
||||
#error IPFIREWALL requires INET.
|
||||
#endif /* INET */
|
||||
#if !defined(KLD_MODULE) && !defined(PFIL_HOOKS)
|
||||
#if !defined(PFIL_HOOKS)
|
||||
#error IPFIREWALL requires PFIL_HOOKS.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
|
|
|||
Loading…
Reference in a new issue