defopt INET6, and put it in opt_inet.h (most places already include this

file, which is why the file list is so short).
This commit is contained in:
thorpej 1999-07-09 23:41:16 +00:00
parent f9a7668b3f
commit 267920eb1a
13 changed files with 53 additions and 13 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: files,v 1.301 1999/07/09 22:57:15 thorpej Exp $
# $NetBSD: files,v 1.302 1999/07/09 23:41:16 thorpej Exp $
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
@ -50,7 +50,7 @@ defopt opt_compat_netbsd.h COMPAT_09 COMPAT_10 COMPAT_11 COMPAT_12
COMPAT_13 COMPAT_NOMID
# networking protocols
defopt INET
defopt opt_inet.h INET INET6
defopt opt_ipsec.h IPSEC IPSEC_ESP
defopt opt_inet_conf.h SUBNETSARELOCAL HOSTZEROBROADCAST
defopt opt_atalk.h NETATALK

View File

@ -1,4 +1,4 @@
/* $NetBSD: if.c,v 1.49 1999/07/01 08:12:47 itojun Exp $ */
/* $NetBSD: if.c,v 1.50 1999/07/09 23:41:16 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -64,6 +64,8 @@
* @(#)if.c 8.5 (Berkeley) 1/9/95
*/
#include "opt_inet.h"
#include "opt_compat_linux.h"
#include "opt_compat_svr4.h"
#include "opt_compat_43.h"

View File

@ -39,7 +39,7 @@
/*
* Loopback interface driver for protocol testing and timing.
*/
#if defined(__FreeBSD__) && __FreeBSD__ >= 3
#if (defined(__FreeBSD__) && __FreeBSD__ >= 3) || defined(__NetBSD__)
#include "opt_inet.h"
#endif

View File

@ -34,6 +34,10 @@
#ifndef _NET_IF_GIF_H_
#define _NET_IF_GIF_H_
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_inet.h"
#endif
#include <netinet/in.h>
/* xxx sigh, why route have struct route instead of pointer? */

View File

@ -1,4 +1,4 @@
/* $NetBSD: rtsock.c,v 1.30 1999/07/01 08:12:49 itojun Exp $ */
/* $NetBSD: rtsock.c,v 1.31 1999/07/09 23:41:16 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -64,6 +64,8 @@
* @(#)rtsock.c 8.7 (Berkeley) 10/12/95
*/
#include "opt_inet.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip_ecn.h,v 1.4 1999/07/06 12:23:20 itojun Exp $ */
/* $NetBSD: ip_ecn.h,v 1.5 1999/07/09 23:41:17 thorpej Exp $ */
/*
* Copyright (C) 1999 WIDE Project.
@ -35,6 +35,10 @@
* http://www.aciri.org/floyd/papers/draft-ipsec-ecn-00.txt
*/
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_inet.h"
#endif
#define ECN_ALLOWED 1 /* ECN allowed */
#define ECN_FORBIDDEN 0 /* ECN forbidden */
#define ECN_NOCARE (-1) /* no consideration to ECN */

View File

@ -1,4 +1,4 @@
/* $NetBSD: tcp_debug.h,v 1.7 1999/07/01 08:12:51 itojun Exp $ */
/* $NetBSD: tcp_debug.h,v 1.8 1999/07/09 23:41:17 thorpej Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -38,6 +38,10 @@
#ifndef _NETINET_TCP_DEBUG_H_
#define _NETINET_TCP_DEBUG_H_
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_inet.h"
#endif
struct tcp_debug {
n_time td_time;
short td_act;

View File

@ -1,4 +1,4 @@
/* $NetBSD: tcp_var.h,v 1.61 1999/07/01 08:12:52 itojun Exp $ */
/* $NetBSD: tcp_var.h,v 1.62 1999/07/09 23:41:17 thorpej Exp $ */
/*
%%% portions-copyright-nrl-98
@ -117,6 +117,10 @@ didn't get a copy, you may request one from <license@ipv6.nrl.navy.mil>.
#ifndef _NETINET_TCP_VAR_H_
#define _NETINET_TCP_VAR_H_
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_inet.h"
#endif
/*
* Kernel variables for tcp.
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: ah.h,v 1.3 1999/07/03 21:30:17 thorpej Exp $ */
/* $NetBSD: ah.h,v 1.4 1999/07/09 23:41:17 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -36,6 +36,10 @@
#ifndef _NETINET6_AH_H_
#define _NETINET6_AH_H_
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_inet.h"
#endif
#include <netkey/keydb.h> /* for struct secas */
struct ah {

View File

@ -1,4 +1,4 @@
/* $NetBSD: esp.h,v 1.2 1999/07/03 21:30:17 thorpej Exp $ */
/* $NetBSD: esp.h,v 1.3 1999/07/09 23:41:17 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -38,6 +38,10 @@
#include <netkey/keydb.h> /* for struct secas */
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_inet.h"
#endif
struct esp {
u_int32_t esp_spi; /* ESP */
/*variable size, 32bit bound*/ /* Initialization Vector */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ipcomp.h,v 1.3 1999/07/03 21:30:19 thorpej Exp $ */
/* $NetBSD: ipcomp.h,v 1.4 1999/07/09 23:41:17 thorpej Exp $ */
/*
* Copyright (C) 1999 WIDE Project.
@ -36,6 +36,10 @@
#ifndef _NETINET6_IPCOMP_H_
#define _NETINET6_IPCOMP_H_
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_inet.h"
#endif
struct ipcomp {
u_int8_t comp_nxt; /* Next Header */
u_int8_t comp_flags; /* Length of data, in 32bit */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ipsec.h,v 1.3 1999/07/03 21:30:19 thorpej Exp $ */
/* $NetBSD: ipsec.h,v 1.4 1999/07/09 23:41:17 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -36,6 +36,10 @@
#ifndef _NETINET6_IPSEC_H_
#define _NETINET6_IPSEC_H_
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_inet.h"
#endif
#include <netkey/keyv2.h>
#include <netkey/keydb.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: key_var.h,v 1.3 1999/07/03 21:32:48 thorpej Exp $ */
/* $NetBSD: key_var.h,v 1.4 1999/07/09 23:41:17 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -32,6 +32,10 @@
#ifndef _NETKEY_KEY_VAR_H_
#define _NETKEY_KEY_VAR_H_
#if defined(_KERNEL) && !defined(_LKM)
#include "opt_inet.h"
#endif
/* sysctl */
#define KEYCTL_DEBUG_LEVEL 1
#define KEYCTL_SPI_TRY 2