diff options
author | mlaier <mlaier@FreeBSD.org> | 2004-06-16 22:59:06 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2004-06-16 22:59:06 +0000 |
commit | 18ff3600274a040e5de7283d8307f491d309ab41 (patch) | |
tree | 8d9c6f476f672fc5e621e202843b1d13c5f76508 /sys | |
parent | 885650db5e19c322f3faaca8fd10c8191c0a417e (diff) | |
download | FreeBSD-src-18ff3600274a040e5de7283d8307f491d309ab41.zip FreeBSD-src-18ff3600274a040e5de7283d8307f491d309ab41.tar.gz |
Prepare for pf 3.5 import:
- Remove pflog and pfsync modules. Things will change in such a fashion
that there will be one module with pf+pflog that can be loaded into
GENERIC without problems (which is what most people want). pfsync is no
longer possible as a module.
- Add multicast address for in-kernel multicast pfsync protocol. Protocol
glue will follow once the import is done.
- Add one more mbuf tag
Diffstat (limited to 'sys')
-rw-r--r-- | sys/modules/Makefile | 4 | ||||
-rw-r--r-- | sys/modules/pflog/Makefile | 29 | ||||
-rw-r--r-- | sys/modules/pfsync/Makefile | 29 | ||||
-rw-r--r-- | sys/netinet/in.h | 2 | ||||
-rw-r--r-- | sys/sys/mbuf.h | 1 |
5 files changed, 3 insertions, 62 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 73153f7..8c4fd23 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -159,8 +159,6 @@ SUBDIR= ${_3dfx} \ pcn \ ${_pecoff} \ ${_pf} \ - ${_pflog} \ - ${_pfsync} \ plip \ ${_pmc} \ portalfs \ @@ -273,8 +271,6 @@ _ipfilter= ipfilter .if !defined(NO_PF) || defined(ALL_MODULES) _pf= pf -_pflog= pflog -_pfsync= pfsync .endif .if ${MACHINE_ARCH} == "i386" diff --git a/sys/modules/pflog/Makefile b/sys/modules/pflog/Makefile deleted file mode 100644 index 1eb46e9..0000000 --- a/sys/modules/pflog/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# $FreeBSD$ - -.PATH: ${.CURDIR}/../../contrib/pf/net - -KMOD= pflog -SRCS = if_pflog.c \ - opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h - -CFLAGS+= -Wall -I${.CURDIR}/../../contrib/pf - -opt_pf.h: - echo "#define DEV_PF 1" > opt_pf.h - echo "#define DEV_PFLOG 1" >> opt_pf.h - echo "#define DEV_PFSYNC 1" >> opt_pf.h - -opt_inet.h: - echo "#define INET 1" > opt_inet.h - -opt_inet6.h: -.if defined(NOINET6) - echo > opt_inet6.h -.else - echo "#define INET6 1" > opt_inet6.h -.endif - -opt_bpf.h: - echo "#define DEV_BPF 1" > opt_bpf.h - -.include <bsd.kmod.mk> diff --git a/sys/modules/pfsync/Makefile b/sys/modules/pfsync/Makefile deleted file mode 100644 index 23f79e2..0000000 --- a/sys/modules/pfsync/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# $FreeBSD$ - -.PATH: ${.CURDIR}/../../contrib/pf/net - -KMOD= pfsync -SRCS = if_pfsync.c \ - opt_pf.h opt_inet.h opt_inet6.h opt_bpf.h - -CFLAGS+= -Wall -I${.CURDIR}/../../contrib/pf - -opt_pf.h: - echo "#define DEV_PF 1" > opt_pf.h - echo "#define DEV_PFLOG 1" >> opt_pf.h - echo "#define DEV_PFSYNC 1" >> opt_pf.h - -opt_inet.h: - echo "#define INET 1" > opt_inet.h - -opt_inet6.h: -.if defined(NOINET6) - echo > opt_inet6.h -.else - echo "#define INET6 1" > opt_inet6.h -.endif - -opt_bpf.h: - echo "#define DEV_BPF 1" > opt_bpf.h - -.include <bsd.kmod.mk> diff --git a/sys/netinet/in.h b/sys/netinet/in.h index 95c2fa3..5b65908 100644 --- a/sys/netinet/in.h +++ b/sys/netinet/in.h @@ -231,6 +231,7 @@ __END_DECLS /* 101-254: Partly Unassigned */ #define IPPROTO_PIM 103 /* Protocol Independent Mcast */ #define IPPROTO_PGM 113 /* PGM */ +#define IPPROTO_PFSYNC 240 /* PFSYNC */ /* 255: Reserved */ /* BSD Private, local use, namespace incursion, no longer used */ #define IPPROTO_OLD_DIVERT 254 /* OLD divert pseudo-proto */ @@ -350,6 +351,7 @@ __END_DECLS #define INADDR_UNSPEC_GROUP (u_int32_t)0xe0000000 /* 224.0.0.0 */ #define INADDR_ALLHOSTS_GROUP (u_int32_t)0xe0000001 /* 224.0.0.1 */ #define INADDR_ALLRTRS_GROUP (u_int32_t)0xe0000002 /* 224.0.0.2 */ +#define INADDR_PFSYNC_GROUP (u_int32_t)0xe00000f0 /* 224.0.0.240 */ #define INADDR_ALLMDNS_GROUP (u_int32_t)0xe00000fb /* 224.0.0.251 */ #define INADDR_MAX_LOCAL_GROUP (u_int32_t)0xe00000ff /* 224.0.0.255 */ diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index 81cf236..e8b6682 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -632,6 +632,7 @@ struct mbuf *m_uiotombuf(struct uio *, int, int); #define PACKET_TAG_PF_QID 23 /* PF ALTQ queue id */ #define PACKET_TAG_PF_TAG 24 /* PF tagged */ #define PACKET_TAG_RTSOCKFAM 25 /* rtsock sa family */ +#define PACKET_TAG_PF_TRANSLATE_LOCALHOST 26 /* PF translate localhost */ /* Packet tag routines. */ struct m_tag *m_tag_alloc(u_int32_t, int, int, int); |