summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-06-26 22:45:10 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-06-26 22:45:10 +0000
commitf7fc8ebc3aae64a9b3c1848d1d6dd39c67f3eac1 (patch)
tree6d540bfab8fd355951aef4f2a4c002615163159d /sys/netinet
parent05522e78d46294c43e20055cb78c5a946846a465 (diff)
Make the definition of tcpstat in tcp_var.h extern.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_subr.c4
-rw-r--r--sys/netinet/tcp_var.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 7c1764ab993..15d34f607bf 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_subr.c,v 1.26 2000/06/03 13:04:39 itojun Exp $ */
+/* $OpenBSD: tcp_subr.c,v 1.27 2000/06/26 22:45:09 art Exp $ */
/* $NetBSD: tcp_subr.c,v 1.22 1996/02/13 23:44:00 christos Exp $ */
/*
@@ -123,6 +123,8 @@ int tcbhashsize = TCBHASHSIZE;
extern int ip6_defhlim;
#endif /* INET6 */
+struct tcpstat tcpstat; /* tcp statistics */
+
/*
* Tcp initialization
*/
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index 2b46e6f3323..5f4e65b20ee 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_var.h,v 1.27 2000/06/18 04:42:43 beck Exp $ */
+/* $OpenBSD: tcp_var.h,v 1.28 2000/06/26 22:45:09 art Exp $ */
/* $NetBSD: tcp_var.h,v 1.17 1996/02/13 23:44:24 christos Exp $ */
/*
@@ -312,7 +312,7 @@ struct tcp_ident_mapping {
#ifdef _KERNEL
struct inpcbtable tcbtable; /* head of queue of active tcpcb's */
-struct tcpstat tcpstat; /* tcp statistics */
+extern struct tcpstat tcpstat; /* tcp statistics */
u_int32_t tcp_now; /* for RFC 1323 timestamps */
extern int tcp_do_rfc1323; /* enabled/disabled? */
extern int tcp_mssdflt; /* default maximum segment size */