From fbd1372a0bacc9ed390cd76c61a59f9a8b7b02ef Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Wed, 5 Nov 1997 20:17:23 +0000 Subject: [PATCH] Make IPDIVERT a supported option. Alas, in_var.h depends on it, i hope i've found out all files that actually depend on this dependancy. IMHO, it's not very good practice to change the size of internal structs depending on kernel options. --- sys/conf/options | 3 ++- sys/netinet/in_proto.c | 4 +++- sys/netinet/ip_fw.c | 3 ++- sys/netinet/ip_input.c | 3 ++- sys/netinet/ip_output.c | 4 +++- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/sys/conf/options b/sys/conf/options index ef250763bbf5..e89580c45da7 100644 --- a/sys/conf/options +++ b/sys/conf/options @@ -1,4 +1,4 @@ -# $Id: options,v 1.35 1997/09/22 21:23:57 joerg Exp $ +# $Id: options,v 1.36 1997/10/18 01:15:32 peter Exp $ # Format: # Option name filename @@ -96,6 +96,7 @@ OPEN_MAX opt_defunct.h ARP_PROXYALL opt_defunct.h GATEWAY opt_defunct.h MROUTING opt_mrouting.h +IPDIVERT IPFIREWALL opt_ipfw.h IPFIREWALL_VERBOSE opt_ipfw.h IPFIREWALL_VERBOSE_LIMIT opt_ipfw.h diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c index 9356624e4220..a96fa67ae8ee 100644 --- a/sys/netinet/in_proto.c +++ b/sys/netinet/in_proto.c @@ -31,9 +31,11 @@ * SUCH DAMAGE. * * @(#)in_proto.c 8.2 (Berkeley) 2/9/95 - * $Id: in_proto.c,v 1.42 1997/09/16 18:36:04 joerg Exp $ + * $Id: in_proto.c,v 1.43 1997/10/28 15:58:43 bde Exp $ */ +#include "opt_ipdivert.h" + #include #include #include diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c index 2151820151a9..c34323818443 100644 --- a/sys/netinet/ip_fw.c +++ b/sys/netinet/ip_fw.c @@ -12,7 +12,7 @@ * * This software is provided ``AS IS'' without any warranties of any kind. * - * $Id: ip_fw.c,v 1.63 1997/09/10 03:07:14 peter Exp $ + * $Id: ip_fw.c,v 1.64 1997/10/12 20:25:25 phk Exp $ */ /* @@ -21,6 +21,7 @@ #ifndef IPFIREWALL_MODULE #include "opt_ipfw.h" +#include "opt_ipdivert.h" #endif #include diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 3929e4d847a6..c395d9eb32a5 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -31,13 +31,14 @@ * SUCH DAMAGE. * * @(#)ip_input.c 8.2 (Berkeley) 1/4/94 - * $Id: ip_input.c,v 1.69 1997/10/28 18:55:21 guido Exp $ + * $Id: ip_input.c,v 1.70 1997/11/05 02:51:32 julian Exp $ * $ANA: ip_input.c,v 1.5 1996/09/18 14:34:59 wollman Exp $ */ #define _IP_VHL #include "opt_ipfw.h" +#include "opt_ipdivert.h" #include diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index ef996c2b400b..8c3d0f1481ea 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -31,11 +31,13 @@ * SUCH DAMAGE. * * @(#)ip_output.c 8.3 (Berkeley) 1/21/94 - * $Id: ip_output.c,v 1.59 1997/10/11 18:31:32 phk Exp $ + * $Id: ip_output.c,v 1.60 1997/10/12 20:25:26 phk Exp $ */ #define _IP_VHL +#include "opt_ipdivert.h" + #include #include #include