summaryrefslogtreecommitdiff
path: root/sys/netccitt
diff options
context:
space:
mode:
authormatt <matt@NetBSD.org>2002-05-12 21:30:35 +0000
committermatt <matt@NetBSD.org>2002-05-12 21:30:35 +0000
commit8dcbea3bedd37f3efced74185d28fa85388e6dde (patch)
tree4c4bd11e331bd40a97bf4596bbc4afde7f67c851 /sys/netccitt
parent10f4f9ee80be19a46d4fe1ba4af31e01fa63fa96 (diff)
Eliminate commons.
Diffstat (limited to 'sys/netccitt')
-rw-r--r--sys/netccitt/hd_input.c8
-rw-r--r--sys/netccitt/hd_var.h14
-rw-r--r--sys/netccitt/if_x25subr.c6
-rw-r--r--sys/netccitt/pk_var.h7
4 files changed, 20 insertions, 15 deletions
diff --git a/sys/netccitt/hd_input.c b/sys/netccitt/hd_input.c
index b259c5fa2e2..a30d2f953e1 100644
--- a/sys/netccitt/hd_input.c
+++ b/sys/netccitt/hd_input.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hd_input.c,v 1.17 2001/11/13 00:12:57 lukem Exp $ */
+/* $NetBSD: hd_input.c,v 1.18 2002/05/12 21:30:35 matt Exp $ */
/*
* Copyright (c) 1984 University of British Columbia.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hd_input.c,v 1.17 2001/11/13 00:12:57 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hd_input.c,v 1.18 2002/05/12 21:30:35 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -60,6 +60,10 @@ __KERNEL_RCSID(0, "$NetBSD: hd_input.c,v 1.17 2001/11/13 00:12:57 lukem Exp $");
#include <netccitt/x25.h>
#include <netccitt/pk_extern.h>
+struct hdcb *hdcbhead; /* head of linked list of hdcb's */
+struct Frmr_frame hd_frmr; /* rejected frame diagnostic info */
+struct ifqueue hdintrq; /* hdlc packet input queue */
+
static void frame_reject __P((struct hdcb *, int, struct Hdlc_iframe *));
static void rej_routine __P((struct hdcb *, int));
static void free_iframes __P((struct hdcb *, int *, int));
diff --git a/sys/netccitt/hd_var.h b/sys/netccitt/hd_var.h
index 03baa5e6d8a..5a0fe4cf3ab 100644
--- a/sys/netccitt/hd_var.h
+++ b/sys/netccitt/hd_var.h
@@ -1,4 +1,4 @@
-/* $NetBSD: hd_var.h,v 1.9 1998/09/13 16:21:17 christos Exp $ */
+/* $NetBSD: hd_var.h,v 1.10 2002/05/12 21:30:35 matt Exp $ */
/*
* Copyright (c) 1984 University of British Columbia.
@@ -100,16 +100,16 @@ struct hdcb {
};
#ifdef _KERNEL
-struct hdcb *hdcbhead; /* head of linked list of hdcb's */
-struct Frmr_frame hd_frmr; /* rejected frame diagnostic info */
-struct ifqueue hdintrq; /* hdlc packet input queue */
+extern struct hdcb *hdcbhead; /* head of linked list of hdcb's */
+extern struct Frmr_frame hd_frmr; /* rejected frame diagnostic info */
+extern struct ifqueue hdintrq; /* hdlc packet input queue */
struct Hdlc_frame;
struct Hdlc_iframe;
struct Hdlc_sframe;
-int hd_t1; /* timer T1 value */
-int hd_t3; /* RR send timer */
-int hd_n2; /* frame retransmission limit */
+extern int hd_t1; /* timer T1 value */
+extern int hd_t3; /* RR send timer */
+extern int hd_n2; /* frame retransmission limit */
/* hd_debug.c */
diff --git a/sys/netccitt/if_x25subr.c b/sys/netccitt/if_x25subr.c
index c5ac93d0869..9b56343524b 100644
--- a/sys/netccitt/if_x25subr.c
+++ b/sys/netccitt/if_x25subr.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_x25subr.c,v 1.27 2001/11/13 00:12:57 lukem Exp $ */
+/* $NetBSD: if_x25subr.c,v 1.28 2002/05/12 21:30:35 matt Exp $ */
/*
* Copyright (c) 1990, 1993
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_x25subr.c,v 1.27 2001/11/13 00:12:57 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_x25subr.c,v 1.28 2002/05/12 21:30:35 matt Exp $");
#include "opt_inet.h"
#include "opt_iso.h"
@@ -700,11 +700,11 @@ x25_dg_rtinit(dst, ia, af)
int x25_startproto = 1;
+struct pklcdhead pk_listenhead;
void
pk_init()
{
-
TAILQ_INIT(&pk_listenhead);
if (x25_startproto) {
pk_protolisten(0xcc, 1, x25_dgram_incoming);
diff --git a/sys/netccitt/pk_var.h b/sys/netccitt/pk_var.h
index 859cc453f9a..3068aff9765 100644
--- a/sys/netccitt/pk_var.h
+++ b/sys/netccitt/pk_var.h
@@ -1,4 +1,4 @@
-/* $NetBSD: pk_var.h,v 1.14 2001/06/19 07:37:16 jdolecek Exp $ */
+/* $NetBSD: pk_var.h,v 1.15 2002/05/12 21:30:35 matt Exp $ */
/*
* Copyright (c) 1985 Computing Centre, University of British Columbia.
@@ -235,8 +235,9 @@ struct mbuf_cache {
#include <sys/queue.h>
extern struct pkcb_q pkcb_q;
-TAILQ_HEAD(, pklcd) pk_listenhead;
+TAILQ_HEAD(pklcdhead, pklcd);
+extern struct pklcdhead pk_listenhead;
extern char *pk_name[], *pk_state[];
-int pk_t20, pk_t21, pk_t22, pk_t23;
+extern int pk_t20, pk_t21, pk_t22, pk_t23;
#endif