summaryrefslogtreecommitdiffstats
path: root/sys/netns
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-07-29 11:44:31 +0000
committerbde <bde@FreeBSD.org>1995-07-29 11:44:31 +0000
commit38a74a7bc23af4d5ed5deeff2f4ab6329b0a26cc (patch)
treeb89d1e0366b685acdcb1eb8c959a65e2e330cb0c /sys/netns
parent795b455aacbca36da42882b1290f5d37f1618bfe (diff)
downloadFreeBSD-src-38a74a7bc23af4d5ed5deeff2f4ab6329b0a26cc.zip
FreeBSD-src-38a74a7bc23af4d5ed5deeff2f4ab6329b0a26cc.tar.gz
Eliminate sloppy common-style declarations. There should be none left for
the LINT configuation.
Diffstat (limited to 'sys/netns')
-rw-r--r--sys/netns/idp_var.h6
-rw-r--r--sys/netns/ns.h12
-rw-r--r--sys/netns/ns_error.c4
-rw-r--r--sys/netns/ns_error.h4
-rw-r--r--sys/netns/ns_if.h6
-rw-r--r--sys/netns/ns_input.c4
-rw-r--r--sys/netns/ns_ip.c3
-rw-r--r--sys/netns/ns_pcb.h4
-rw-r--r--sys/netns/ns_proto.c4
-rw-r--r--sys/netns/spp_debug.c5
-rw-r--r--sys/netns/spp_debug.h6
-rw-r--r--sys/netns/spp_usrreq.c6
-rw-r--r--sys/netns/spp_var.h6
13 files changed, 34 insertions, 36 deletions
diff --git a/sys/netns/idp_var.h b/sys/netns/idp_var.h
index 7ff3823..afbc8fa 100644
--- a/sys/netns/idp_var.h
+++ b/sys/netns/idp_var.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)idp_var.h 8.1 (Berkeley) 6/10/93
- * $Id: idp_var.h,v 1.2 1994/08/02 07:51:42 davidg Exp $
+ * $Id: idp_var.h,v 1.3 1994/08/21 06:22:06 paul Exp $
*/
#ifndef _NETNS_IDP_VAR_H_
@@ -48,8 +48,4 @@ struct idpstat {
int idps_badlen; /* ip length < ip header length */
};
-#ifdef KERNEL
-struct idpstat idpstat;
-#endif
-
#endif
diff --git a/sys/netns/ns.h b/sys/netns/ns.h
index 527c695..7dd35a6 100644
--- a/sys/netns/ns.h
+++ b/sys/netns/ns.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ns.h 8.1 (Berkeley) 6/10/93
- * $Id: ns.h,v 1.2 1994/08/02 07:51:44 davidg Exp $
+ * $Id: ns.h,v 1.3 1994/08/21 06:22:07 paul Exp $
*/
#ifndef _NETNS_NS_H_
@@ -137,11 +137,11 @@ struct sockaddr_ns {
#ifdef KERNEL
extern struct domain nsdomain;
-union ns_host ns_thishost;
-union ns_host ns_zerohost;
-union ns_host ns_broadhost;
-union ns_net ns_zeronet;
-union ns_net ns_broadnet;
+extern union ns_host ns_thishost;
+extern union ns_host ns_zerohost;
+extern union ns_host ns_broadhost;
+extern union ns_net ns_zeronet;
+extern union ns_net ns_broadnet;
u_short ns_cksum();
#else
diff --git a/sys/netns/ns_error.c b/sys/netns/ns_error.c
index 0e7e24f..2bc32a4 100644
--- a/sys/netns/ns_error.c
+++ b/sys/netns/ns_error.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ns_error.c 8.1 (Berkeley) 6/10/93
- * $Id: ns_error.c,v 1.2 1994/08/02 07:51:46 davidg Exp $
+ * $Id: ns_error.c,v 1.3 1995/05/30 08:12:22 rgrimes Exp $
*/
#include <sys/param.h>
@@ -62,6 +62,8 @@
int ns_errprintfs = 0;
#endif
+struct ns_errstat ns_errstat;
+
ns_err_x(c)
{
register u_short *w, *lim, *base = ns_errstat.ns_es_codes;
diff --git a/sys/netns/ns_error.h b/sys/netns/ns_error.h
index 5e88b2c..942a28d 100644
--- a/sys/netns/ns_error.h
+++ b/sys/netns/ns_error.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ns_error.h 8.1 (Berkeley) 6/10/93
- * $Id: ns_error.h,v 1.2 1994/08/02 07:51:47 davidg Exp $
+ * $Id: ns_error.h,v 1.3 1994/08/21 06:22:07 paul Exp $
*/
#ifndef _NETNS_NS_ERROR_H_
@@ -90,7 +90,7 @@ struct ns_errstat {
};
#ifdef KERNEL
-struct ns_errstat ns_errstat;
+extern struct ns_errstat ns_errstat;
#endif
#endif
diff --git a/sys/netns/ns_if.h b/sys/netns/ns_if.h
index a4a955a..b6d99e8 100644
--- a/sys/netns/ns_if.h
+++ b/sys/netns/ns_if.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ns_if.h 8.1 (Berkeley) 6/10/93
- * $Id: ns_if.h,v 1.3 1994/08/21 06:22:08 paul Exp $
+ * $Id: ns_if.h,v 1.4 1995/03/16 18:15:27 bde Exp $
*/
#ifndef _NETNS_NS_IF_H_
@@ -80,10 +80,10 @@ struct nsip_req {
#endif
#ifdef KERNEL
-struct ns_ifaddr *ns_ifaddr;
+extern struct ns_ifaddr *ns_ifaddr;
struct ns_ifaddr *ns_iaonnetof();
void nsintr __P((void));
-struct ifqueue nsintrq; /* XNS input packet queue */
+extern struct ifqueue nsintrq; /* XNS input packet queue */
#endif
#endif
diff --git a/sys/netns/ns_input.c b/sys/netns/ns_input.c
index 6fa2e9c..3d1a6a5 100644
--- a/sys/netns/ns_input.c
+++ b/sys/netns/ns_input.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ns_input.c 8.1 (Berkeley) 6/10/93
- * $Id: ns_input.c,v 1.4 1995/05/11 00:13:22 wollman Exp $
+ * $Id: ns_input.c,v 1.5 1995/05/30 08:12:27 rgrimes Exp $
*/
#include <sys/param.h>
@@ -76,12 +76,12 @@ struct nspcb nsrawpcb;
struct ifqueue nsintrq;
int nsqmaxlen = IFQ_MAXLEN;
+struct idpstat idpstat;
int idpcksum = 1;
long ns_pexseq;
ns_init()
{
- extern struct timeval time;
ns_broadhost = * (union ns_host *) allones;
ns_broadnet = * (union ns_net *) allones;
diff --git a/sys/netns/ns_ip.c b/sys/netns/ns_ip.c
index e87e165..2702997 100644
--- a/sys/netns/ns_ip.c
+++ b/sys/netns/ns_ip.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ns_ip.c 8.1 (Berkeley) 6/10/93
- * $Id: ns_ip.c,v 1.2 1994/08/02 07:51:50 davidg Exp $
+ * $Id: ns_ip.c,v 1.3 1995/03/19 14:29:03 davidg Exp $
*/
/*
@@ -401,7 +401,6 @@ nsip_ctlinput(cmd, sa)
int cmd;
struct sockaddr *sa;
{
- extern u_char inetctlerrmap[];
struct sockaddr_in *sin;
int in_rtchange();
diff --git a/sys/netns/ns_pcb.h b/sys/netns/ns_pcb.h
index 69bd331..eccd70d 100644
--- a/sys/netns/ns_pcb.h
+++ b/sys/netns/ns_pcb.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ns_pcb.h 8.1 (Berkeley) 6/10/93
- * $Id: ns_pcb.h,v 1.2 1994/08/02 07:51:53 davidg Exp $
+ * $Id: ns_pcb.h,v 1.3 1994/08/21 06:22:09 paul Exp $
*/
#ifndef _NETNS_NS_PCB_H_
@@ -79,7 +79,7 @@ struct nspcb {
#ifdef KERNEL
-struct nspcb nspcb; /* head of list */
+extern struct nspcb nspcb; /* head of list */
struct nspcb *ns_pcblookup();
#endif
diff --git a/sys/netns/ns_proto.c b/sys/netns/ns_proto.c
index 3352aa0..0f09dce 100644
--- a/sys/netns/ns_proto.c
+++ b/sys/netns/ns_proto.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* From: @(#)ns_proto.c 8.1 (Berkeley) 6/10/93
- * $Id: ns_proto.c,v 1.3 1995/05/11 00:13:23 wollman Exp $
+ * $Id: ns_proto.c,v 1.4 1995/05/30 08:12:30 rgrimes Exp $
*/
#include <sys/param.h>
@@ -56,8 +56,6 @@ int spp_usrreq(), spp_usrreq_sp(), spp_ctloutput();
int spp_init(), spp_fasttimo(), spp_slowtimo();
extern int raw_usrreq();
-extern struct domain nsdomain;
-
struct protosw nssw[] = {
{ 0, &nsdomain, 0, 0,
0, idp_output, 0, 0,
diff --git a/sys/netns/spp_debug.c b/sys/netns/spp_debug.c
index f979a1e..66314e3 100644
--- a/sys/netns/spp_debug.c
+++ b/sys/netns/spp_debug.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)spp_debug.c 8.1 (Berkeley) 6/10/93
- * $Id$
+ * $Id: spp_debug.c,v 1.2 1994/08/02 07:51:57 davidg Exp $
*/
#include <sys/param.h>
@@ -59,6 +59,9 @@
#include <netns/spp_debug.h>
int sppconsdebug = 0;
+struct spp_debug spp_debug[SPP_NDEBUG];
+int spp_debx;
+
/*
* spp debug routines
*/
diff --git a/sys/netns/spp_debug.h b/sys/netns/spp_debug.h
index 51132e5..16ce4b2 100644
--- a/sys/netns/spp_debug.h
+++ b/sys/netns/spp_debug.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)spp_debug.h 8.1 (Berkeley) 6/10/93
- * $Id: spp_debug.h,v 1.2 1994/08/02 07:51:58 davidg Exp $
+ * $Id: spp_debug.h,v 1.3 1994/08/21 06:22:11 paul Exp $
*/
#ifndef _NETNS_SPP_DEBUG_H_
@@ -59,7 +59,7 @@ char *sanames[] =
#endif
#define SPP_NDEBUG 100
-struct spp_debug spp_debug[SPP_NDEBUG];
-int spp_debx;
+extern struct spp_debug spp_debug[SPP_NDEBUG];
+extern int spp_debx;
#endif
diff --git a/sys/netns/spp_usrreq.c b/sys/netns/spp_usrreq.c
index fbce16a..f0df56f 100644
--- a/sys/netns/spp_usrreq.c
+++ b/sys/netns/spp_usrreq.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)spp_usrreq.c 8.1 (Berkeley) 6/10/93
- * $Id: spp_usrreq.c,v 1.3 1995/03/19 14:29:04 davidg Exp $
+ * $Id: spp_usrreq.c,v 1.4 1995/05/30 08:12:31 rgrimes Exp $
*/
#include <sys/param.h>
@@ -68,8 +68,9 @@ spp_init()
}
struct spidp spp_savesi;
int traceallspps = 0;
-extern int sppconsdebug;
int spp_hardnosed;
+struct spp_istat spp_istat;
+u_short spp_iss;
int spp_use_delack = 0;
u_short spp_newchecks[50];
@@ -1116,7 +1117,6 @@ spp_setpersist(cb)
register struct sppcb *cb;
{
register t = ((cb->s_srtt >> 2) + cb->s_rttvar) >> 1;
- extern int spp_backoff[];
if (cb->s_timer[SPPT_REXMT] && spp_do_persist_panics)
panic("spp_output REXMT");
diff --git a/sys/netns/spp_var.h b/sys/netns/spp_var.h
index 9814167..f92d0ff 100644
--- a/sys/netns/spp_var.h
+++ b/sys/netns/spp_var.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)spp_var.h 8.1 (Berkeley) 6/10/93
- * $Id: spp_var.h,v 1.2 1994/08/02 07:52:01 davidg Exp $
+ * $Id: spp_var.h,v 1.3 1994/08/21 06:22:12 paul Exp $
*/
#ifndef _NETNS_SPP_VAR_H_
@@ -187,14 +187,14 @@ struct spp_istat {
};
#ifdef KERNEL
-struct spp_istat spp_istat;
+extern struct spp_istat spp_istat;
/* Following was struct sppstat sppstat; */
#ifndef sppstat
#define sppstat spp_istat.newstats
#endif
-u_short spp_iss;
+extern u_short spp_iss;
extern struct sppcb *spp_close(), *spp_disconnect(),
*spp_usrclosed(), *spp_timers(), *spp_drop();
#endif
OpenPOWER on IntegriCloud