diff options
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/fil.c | 8 | ||||
-rw-r--r-- | sys/netinet/ip_auth.c | 8 | ||||
-rw-r--r-- | sys/netinet/ip_frag.c | 12 | ||||
-rw-r--r-- | sys/netinet/ip_fw.c | 4 | ||||
-rw-r--r-- | sys/netinet/ip_log.c | 6 | ||||
-rw-r--r-- | sys/netinet/ip_nat.c | 8 | ||||
-rw-r--r-- | sys/netinet/ip_state.c | 8 | ||||
-rw-r--r-- | sys/netinet/mlf_ipl.c | 6 |
8 files changed, 30 insertions, 30 deletions
diff --git a/sys/netinet/fil.c b/sys/netinet/fil.c index d634bbb..f91ee3d 100644 --- a/sys/netinet/fil.c +++ b/sys/netinet/fil.c @@ -7,7 +7,7 @@ */ #if !defined(lint) static const char sccsid[] = "@(#)fil.c 1.36 6/5/96 (C) 1993-1996 Darren Reed"; -static const char rcsid[] = "@(#)$Id: fil.c,v 1.2 1998/03/21 11:33:54 peter Exp $"; +static const char rcsid[] = "@(#)$Id: fil.c,v 1.3 1998/06/20 18:37:49 peter Exp $"; #endif #include "opt_ipfilter.h" @@ -153,7 +153,7 @@ static int frflushlist __P((int, int, int *, frentry_t *, frentry_t **)); /* * bit values for identifying presence of individual IP options */ -struct optlist ipopts[20] = { +static struct optlist ipopts[20] = { { IPOPT_NOP, 0x000001 }, { IPOPT_RR, 0x000002 }, { IPOPT_ZSU, 0x000004 }, @@ -179,7 +179,7 @@ struct optlist ipopts[20] = { /* * bit values for identifying presence of individual IP security options */ -struct optlist secopt[8] = { +static struct optlist secopt[8] = { { IPSO_CLASS_RES4, 0x01 }, { IPSO_CLASS_TOPS, 0x02 }, { IPSO_CLASS_SECR, 0x04 }, @@ -1098,7 +1098,7 @@ nodata: * SUCH DAMAGE. * * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94 - * $Id: fil.c,v 1.2 1998/03/21 11:33:54 peter Exp $ + * $Id: fil.c,v 1.3 1998/06/20 18:37:49 peter Exp $ */ /* * Copy data from an mbuf chain starting "off" bytes from the beginning, diff --git a/sys/netinet/ip_auth.c b/sys/netinet/ip_auth.c index 9996c8d..dab93b0 100644 --- a/sys/netinet/ip_auth.c +++ b/sys/netinet/ip_auth.c @@ -6,7 +6,7 @@ * to the original author and the contributors. */ #if !defined(lint) -static const char rcsid[] = "@(#)$Id: ip_auth.c,v 1.4 1998/06/20 18:37:50 peter Exp $"; +static const char rcsid[] = "@(#)$Id: ip_auth.c,v 1.5 1998/08/15 21:51:53 bde Exp $"; #endif #if defined(KERNEL) && !defined(_KERNEL) @@ -117,10 +117,10 @@ int fr_authsize = FR_NUMAUTH; int fr_authused = 0; int fr_defaultauthage = 600; fr_authstat_t fr_authstats; -frauth_t fr_auth[FR_NUMAUTH]; +static frauth_t fr_auth[FR_NUMAUTH]; mb_t *fr_authpkts[FR_NUMAUTH]; -int fr_authstart = 0, fr_authend = 0, fr_authnext = 0; -frauthent_t *fae_list = NULL; +static int fr_authstart = 0, fr_authend = 0, fr_authnext = 0; +static frauthent_t *fae_list = NULL; frentry_t *ipauth = NULL; diff --git a/sys/netinet/ip_frag.c b/sys/netinet/ip_frag.c index a379c67..7ad47f7 100644 --- a/sys/netinet/ip_frag.c +++ b/sys/netinet/ip_frag.c @@ -7,7 +7,7 @@ */ #if !defined(lint) static const char sccsid[] = "@(#)ip_frag.c 1.11 3/24/96 (C) 1993-1995 Darren Reed"; -static const char rcsid[] = "@(#)$Id: ip_frag.c,v 1.1.1.5 1997/11/16 05:55:34 peter Exp $"; +static const char rcsid[] = "@(#)$Id: ip_frag.c,v 1.2 1998/03/21 11:34:06 peter Exp $"; #endif #if !defined(_KERNEL) && defined(KERNEL) @@ -76,11 +76,11 @@ static const char rcsid[] = "@(#)$Id: ip_frag.c,v 1.1.1.5 1997/11/16 05:55:34 pe #include "netinet/ip_state.h" #include "netinet/ip_auth.h" -ipfr_t *ipfr_heads[IPFT_SIZE]; -ipfr_t *ipfr_nattab[IPFT_SIZE]; -ipfrstat_t ipfr_stats; -int ipfr_inuse = 0, - fr_ipfrttl = 120; /* 60 seconds */ +static ipfr_t *ipfr_heads[IPFT_SIZE]; +static ipfr_t *ipfr_nattab[IPFT_SIZE]; +static ipfrstat_t ipfr_stats; +static int ipfr_inuse = 0; + int fr_ipfrttl = 120; /* 60 seconds */ #ifdef _KERNEL extern int ipfr_timer_id; #endif diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c index fc31dc6..8e818dc 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.97 1998/10/16 03:55:01 peter Exp $ + * $Id: ip_fw.c,v 1.98 1998/11/15 15:33:52 bde Exp $ */ /* @@ -1190,7 +1190,7 @@ ipfw_modevent(module_t mod, int type, void *unused) return 0; } -moduledata_t ipfwmod = { +static moduledata_t ipfwmod = { "ipfw", ipfw_modevent, 0 diff --git a/sys/netinet/ip_log.c b/sys/netinet/ip_log.c index 2d78915..d41f070 100644 --- a/sys/netinet/ip_log.c +++ b/sys/netinet/ip_log.c @@ -5,7 +5,7 @@ * provided that this notice is preserved and due credit is given * to the original author and the contributors. * - * $Id: ip_log.c,v 1.3 1998/03/21 14:42:45 peter Exp $ + * $Id: ip_log.c,v 1.4 1998/04/06 11:40:42 phk Exp $ */ #include "opt_ipfilter.h" @@ -122,8 +122,8 @@ extern kcondvar_t iplwait; iplog_t **iplh[IPL_LOGMAX+1], *iplt[IPL_LOGMAX+1]; int iplused[IPL_LOGMAX+1]; -u_long iplcrc[IPL_LOGMAX+1]; -u_long iplcrcinit; +static u_long iplcrc[IPL_LOGMAX+1]; +static u_long iplcrcinit; #ifdef linux static struct wait_queue *iplwait[IPL_LOGMAX+1]; #endif diff --git a/sys/netinet/ip_nat.c b/sys/netinet/ip_nat.c index 673e1f3..243c8bb 100644 --- a/sys/netinet/ip_nat.c +++ b/sys/netinet/ip_nat.c @@ -9,7 +9,7 @@ */ #if !defined(lint) static const char sccsid[] = "@(#)ip_nat.c 1.11 6/5/96 (C) 1995 Darren Reed"; -static const char rcsid[] = "@(#)$Id: ip_nat.c,v 1.3 1998/06/20 18:37:50 peter Exp $"; +static const char rcsid[] = "@(#)$Id: ip_nat.c,v 1.4 1998/08/15 21:51:53 bde Exp $"; #endif #include "opt_ipfilter.h" @@ -103,11 +103,11 @@ extern struct ifnet vpnif; #undef SOCKADDR_IN #define SOCKADDR_IN struct sockaddr_in -nat_t *nat_table[2][NAT_SIZE], *nat_instances = NULL; -ipnat_t *nat_list = NULL; + nat_t *nat_table[2][NAT_SIZE], *nat_instances = NULL; +static ipnat_t *nat_list = NULL; u_long fr_defnatage = 1200, /* 10 minutes (600 seconds) */ fr_defnaticmpage = 6; /* 3 seconds */ -natstat_t nat_stats; +static natstat_t nat_stats; #if (SOLARIS || defined(__sgi)) && defined(_KERNEL) extern kmutex_t ipf_nat; #endif diff --git a/sys/netinet/ip_state.c b/sys/netinet/ip_state.c index 98cc862..5545b3d 100644 --- a/sys/netinet/ip_state.c +++ b/sys/netinet/ip_state.c @@ -7,7 +7,7 @@ */ #if !defined(lint) static const char sccsid[] = "@(#)ip_state.c 1.8 6/5/96 (C) 1993-1995 Darren Reed"; -static const char rcsid[] = "@(#)$Id: ip_state.c,v 1.2 1998/03/21 11:34:27 peter Exp $"; +static const char rcsid[] = "@(#)$Id: ip_state.c,v 1.3 1998/06/20 18:37:51 peter Exp $"; #endif #include "opt_ipfilter.h" @@ -85,9 +85,9 @@ static const char rcsid[] = "@(#)$Id: ip_state.c,v 1.2 1998/03/21 11:34:27 peter #define TCP_CLOSE (TH_FIN|TH_RST) -ipstate_t *ips_table[IPSTATE_SIZE]; -int ips_num = 0; -ips_stat_t ips_stats; +static ipstate_t *ips_table[IPSTATE_SIZE]; +static int ips_num = 0; +static ips_stat_t ips_stats; #if (SOLARIS || defined(__sgi)) && defined(_KERNEL) extern kmutex_t ipf_state; #endif diff --git a/sys/netinet/mlf_ipl.c b/sys/netinet/mlf_ipl.c index d3abe3e..65c7139 100644 --- a/sys/netinet/mlf_ipl.c +++ b/sys/netinet/mlf_ipl.c @@ -89,7 +89,7 @@ static int if_ipl_remove __P((void)); int xxxinit __P((struct lkm_table *, int, int)); -struct cdevsw ipldevsw = +static struct cdevsw ipldevsw = { iplopen, /* open */ iplclose, /* close */ @@ -140,7 +140,7 @@ SYSCTL_INT(_net_inet_ipf, OID_AUTO, fr_defaultauthage, CTLFLAG_RW, #endif #ifdef DEVFS -void *ipf_devfs[IPL_LOGMAX + 1]; +static void *ipf_devfs[IPL_LOGMAX + 1]; #endif #if !defined(__FreeBSD_version) || (__FreeBSD_version < 220000) @@ -152,7 +152,7 @@ extern struct cdevsw cdevsw[]; extern int vd_unuseddev __P((void)); extern int nchrdev; #else -int ipl_major = CDEV_MAJOR; +static int ipl_major = CDEV_MAJOR; static struct cdevsw ipl_cdevsw = { iplopen, iplclose, iplread, nowrite, /* 79 */ |