From 2539bf75132bd9a6f79df22934063eb3a5e94a83 Mon Sep 17 00:00:00 2001 From: Paul Richards Date: Sun, 21 Aug 1994 05:44:12 +0000 Subject: [PATCH] Made idempotent --- sys/netccitt/dll.h | 7 ++++++- sys/netccitt/hd_var.h | 7 ++++++- sys/netccitt/hdlc.h | 7 ++++++- sys/netccitt/llc_var.h | 7 +++++-- sys/netccitt/pk.h | 7 ++++++- sys/netccitt/pk_var.h | 7 ++++++- sys/netccitt/x25.h | 7 ++++++- sys/netccitt/x25acct.h | 7 ++++++- sys/netccitt/x25err.h | 6 +++++- 9 files changed, 52 insertions(+), 10 deletions(-) diff --git a/sys/netccitt/dll.h b/sys/netccitt/dll.h index 082d3d3c8cc7..c28391874160 100644 --- a/sys/netccitt/dll.h +++ b/sys/netccitt/dll.h @@ -33,9 +33,12 @@ * SUCH DAMAGE. * * @(#)dll.h 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: dll.h,v 1.2 1994/08/02 07:46:56 davidg Exp $ */ +#ifndef _NETCCITT_DLL_H_ +#define _NETCCITT_DLL_H_ + /* * We define the additional PRC_* codes in here */ @@ -82,3 +85,5 @@ struct dll_ctlinfo { #define dlcti_pcb CTLIun.CTLI_DOWN.dctli_down_pcb #define dlcti_rt CTLIun.CTLI_DOWN.dctli_down_rt #define dlcti_conf CTLIun.CTLI_DOWN.dctli_down_llconf + +#endif diff --git a/sys/netccitt/hd_var.h b/sys/netccitt/hd_var.h index 0ae196279dce..24679ac32f77 100644 --- a/sys/netccitt/hd_var.h +++ b/sys/netccitt/hd_var.h @@ -36,9 +36,12 @@ * SUCH DAMAGE. * * @(#)hd_var.h 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: hd_var.h,v 1.2 1994/08/02 07:47:10 davidg Exp $ */ +#ifndef _NETCCITT_HD_VAR_H_ +#define _NETCCITT_HD_VAR_H_ + /* * * hdlc control block @@ -106,3 +109,5 @@ int hd_t1; /* timer T1 value */ int hd_t3; /* RR send timer */ int hd_n2; /* frame retransmission limit */ #endif + +#endif diff --git a/sys/netccitt/hdlc.h b/sys/netccitt/hdlc.h index 62e717757bee..f7fd79359b20 100644 --- a/sys/netccitt/hdlc.h +++ b/sys/netccitt/hdlc.h @@ -36,9 +36,12 @@ * SUCH DAMAGE. * * @(#)hdlc.h 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: hdlc.h,v 1.2 1994/08/02 07:47:12 davidg Exp $ */ +#ifndef _NETCCITT_HDLC_H_ +#define _NETCCITT_HDLC_H_ + #ifndef ORDER4 #define FALSE 0 #define TRUE 1 @@ -155,3 +158,5 @@ struct Hdlc_frame { bool range_check (); bool valid_nr (); struct mbuf *hd_remove (); + +#endif diff --git a/sys/netccitt/llc_var.h b/sys/netccitt/llc_var.h index 18b6be96ac93..f5452c1e9c82 100644 --- a/sys/netccitt/llc_var.h +++ b/sys/netccitt/llc_var.h @@ -37,9 +37,12 @@ * SUCH DAMAGE. * * @(#)llc_var.h 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: llc_var.h,v 1.2 1994/08/02 07:47:25 davidg Exp $ */ +#ifndef _NETCCITT_LLC_VAR_H_ +#define _NETCCITT_LLC_VAR_H_ + #ifdef __STDC__ /* * Forward structure declarations for function prototypes [sic]. @@ -657,4 +660,4 @@ int x25_llcglue __P((int, struct sockaddr *)); #endif - +#endif diff --git a/sys/netccitt/pk.h b/sys/netccitt/pk.h index da96bf1adb90..a1f8ebb5e8b4 100644 --- a/sys/netccitt/pk.h +++ b/sys/netccitt/pk.h @@ -36,9 +36,12 @@ * SUCH DAMAGE. * * @(#)pk.h 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: pk.h,v 1.2 1994/08/02 07:47:27 davidg Exp $ */ +#ifndef _NETCCITT_PK_H_ +#define _NETCITT_PK_H_ + /* * * X.25 Packet Level Definitions: @@ -206,3 +209,5 @@ struct mbuf *pk_template (); #define DTE_PRETENDDTE 0x0020 #define MAXRESTARTCOLLISIONS 10 + +#endif diff --git a/sys/netccitt/pk_var.h b/sys/netccitt/pk_var.h index df29acfcbbe7..1690d2af0a39 100644 --- a/sys/netccitt/pk_var.h +++ b/sys/netccitt/pk_var.h @@ -39,9 +39,12 @@ * SUCH DAMAGE. * * @(#)pk_var.h 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: pk_var.h,v 1.2 1994/08/02 07:47:48 davidg Exp $ */ +#ifndef _NETCCITT_PK_VAR_H_ +#define _NETCCITT_PK_VAR_H_ + /* * * X.25 Logical Channel Descriptor @@ -230,3 +233,5 @@ struct pklcd *pk_attach(); extern char *pk_name[], *pk_state[]; int pk_t20, pk_t21, pk_t22, pk_t23; #endif + +#endif diff --git a/sys/netccitt/x25.h b/sys/netccitt/x25.h index 1fbbe3eb1376..2d4a4f6c3b79 100644 --- a/sys/netccitt/x25.h +++ b/sys/netccitt/x25.h @@ -38,9 +38,12 @@ * SUCH DAMAGE. * * @(#)x25.h 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: x25.h,v 1.2 1994/08/02 07:47:50 davidg Exp $ */ +#ifndef _NETCCITT_X25_H_ +#define _NETCCITT_X25_H_ + #ifdef KERNEL #define PRC_IFUP 3 #define PRC_LINKUP 4 @@ -156,3 +159,5 @@ struct ifreq_x25 { #define SIOCSIFCONF_X25 _IOW('i', 12, struct ifreq_x25) /* set ifnet config */ #define SIOCGIFCONF_X25 _IOWR('i',13, struct ifreq_x25) /* get ifnet config */ #endif + +#endif diff --git a/sys/netccitt/x25acct.h b/sys/netccitt/x25acct.h index ee5b3249070b..a5ecdd21a91b 100644 --- a/sys/netccitt/x25acct.h +++ b/sys/netccitt/x25acct.h @@ -36,9 +36,12 @@ * SUCH DAMAGE. * * @(#)x25acct.h 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: x25acct.h,v 1.2 1994/08/02 07:47:52 davidg Exp $ */ +#ifndef _NETCCITT_X25ACCT_H_ +#define _NETCCITT_X25ACCT_H_ + /* * Format of X.25 accounting record written * to X25ACCTF whenever a circuit is closed. @@ -69,3 +72,5 @@ struct x25acct { long x25acct_txcnt; /* packets transmitted */ long x25acct_rxcnt; /* packets received */ }; + +#endif diff --git a/sys/netccitt/x25err.h b/sys/netccitt/x25err.h index 9cf5ade99f63..1ee8e69f6684 100644 --- a/sys/netccitt/x25err.h +++ b/sys/netccitt/x25err.h @@ -36,9 +36,12 @@ * SUCH DAMAGE. * * @(#)x25err.h 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: x25err.h,v 1.2 1994/08/02 07:47:53 davidg Exp $ */ +#ifndef _NETCCITT_X25ERR_H_ +#define _NETCCITT_X25ERR_H_ + /* * * X.25 Reset and Clear errors and diagnostics. These values are @@ -63,3 +66,4 @@ #define EXCNCG 118 /* Clear: network congestion */ #define EXCNOB 119 /* Clear: not obtainable */ +#endif