Add consistent multiple-inclusion protection.

This commit is contained in:
mycroft 1993-04-19 03:45:34 +00:00
parent cac6b415ea
commit 235bd1db44
100 changed files with 485 additions and 152 deletions

View File

@ -33,6 +33,9 @@
* @(#)if_ether.h 7.5 (Berkeley) 6/28/90
*/
#ifndef _NETINET_IF_ETHER_H_
#define _NETINET_IF_ETHER_H_
/*
* Structure of a 10Mb/s Ethernet header.
*/
@ -106,3 +109,5 @@ struct arptab *arptnew();
int ether_output(), ether_input();
char *ether_sprintf();
#endif
#endif /* !_NETINET_IF_ETHER_H_ */

View File

@ -33,6 +33,9 @@
* @(#)af.h 7.5 (Berkeley) 6/28/90
*/
#ifndef _NET_AF_H_
#define _NET_AF_H_
/*
* This file is obsolete, I think. kls 12/21/88
@ -62,3 +65,5 @@ struct afhash {
struct afswitch afswitch[];
#endif
*/
#endif /* !_NET_AF_H_ */

View File

@ -37,9 +37,12 @@
*
* @(#)bpf.h 7.1 (Berkeley) 5/7/91
*
* @(#) $Header: /cvsroot/src/sys/net/bpf.h,v 1.2 1993/03/25 00:27:52 cgd Exp $ (LBL)
* @(#) $Header: /cvsroot/src/sys/net/bpf.h,v 1.3 1993/04/19 03:47:42 mycroft Exp $ (LBL)
*/
#ifndef _NET_BPF_H_
#define _NET_BPF_H_
/*
* Alignment macros. BPF_WORDALIGN rounds up to the next
* even multiple of BPF_ALIGNMENT.
@ -242,3 +245,4 @@ extern void bpf_mtap();
*/
#define BPF_MEMWORDS 16
#endif /* !_NET_BPF_H_ */

View File

@ -37,9 +37,12 @@
*
* @(#)bpfdesc.h 7.1 (Berkeley) 5/7/91
*
* @(#) $Header: /cvsroot/src/sys/net/bpfdesc.h,v 1.3 1993/04/06 06:50:20 deraadt Exp $ (LBL)
* @(#) $Header: /cvsroot/src/sys/net/bpfdesc.h,v 1.4 1993/04/19 03:47:43 mycroft Exp $ (LBL)
*/
#ifndef _NET_BPFDESC_H_
#define _NET_BPFDESC_H_
/*
* Descriptor associated with each open bpf file.
*/
@ -96,3 +99,5 @@ struct bpf_if {
u_int bif_hdrlen; /* length of header (with padding) */
struct ifnet *bif_ifp; /* correspoding interface */
};
#endif /* !_NET_BPFDESC_H_ */

View File

@ -33,6 +33,9 @@
* @(#)if.h 7.11 (Berkeley) 3/19/91
*/
#ifndef _NET_IF_H_
#define _NET_IF_H_
/*
* Structures defining a network interface, providing a packet
* transport mechanism (ala level 0 of the PUP protocols).
@ -252,3 +255,5 @@ struct ifaddr *ifa_ifwithdstaddr();
#else KERNEL
#include <net/if_arp.h>
#endif KERNEL
#endif /* !_NET_IF_H_ */

View File

@ -33,6 +33,9 @@
* @(#)if_arp.h 7.4 (Berkeley) 6/28/90
*/
#ifndef _NET_IF_ARP_H_
#define _NET_IF_ARP_H_
/*
* Address Resolution Protocol.
*
@ -76,3 +79,5 @@ struct arpreq {
#define ATF_PERM 0x04 /* permanent entry */
#define ATF_PUBL 0x08 /* publish entry (respond for other host) */
#define ATF_USETRAILERS 0x10 /* has requested trailers */
#endif /* !_NET_IF_ARP_H_ */

View File

@ -33,6 +33,9 @@
* @(#)if_dl.h 7.2 (Berkeley) 2/22/91
*/
#ifndef _NET_IF_DL_H_
#define _NET_IF_DL_H_
/*
* A Link-Level Sockaddr may specify the interface in one of two
* ways: either by means of a system-provided index number (computed
@ -78,3 +81,5 @@ char *link_ntoa __P((const struct sockaddr_dl *));
__END_DECLS
#endif /* !KERNEL */
#endif /* !_NET_IF_DL_H_ */

View File

@ -33,6 +33,9 @@
* @(#)if_llc.h 7.2 (Berkeley) 6/28/90
*/
#ifndef _NET_IF_LLC_H_
#define _NET_IF_LLC_H_
/*
* IEEE 802.2 Link Level Control headers, for use in conjunction with
* 802.{3,4,5} media access control methods.
@ -80,3 +83,5 @@ struct llc {
#define LLC_ISO_LSAP 0xfe
#define LLC_SNAP_LSAP 0xaa
#endif /* !_NET_IF_LLC_H_ */

View File

@ -32,9 +32,12 @@
*
* @(#)if_slvar.h 7.7 (Berkeley) 5/7/91
*
* $Header: /cvsroot/src/sys/net/if_slvar.h,v 1.3 1993/03/25 00:27:59 cgd Exp $
* $Header: /cvsroot/src/sys/net/if_slvar.h,v 1.4 1993/04/19 03:47:51 mycroft Exp $
*/
#ifndef _NET_IF_SLVAR_H_
#define _NET_IF_SLVAR_H_
/*
* Definitions for SLIP interface data structures
*
@ -73,3 +76,5 @@ struct sl_softc {
#define SLIOCGFLAGS _IOR('t', 90, int) /* get configuration flags */
#define SLIOCSFLAGS _IOW('t', 89, int) /* set configuration flags */
#define SLIOCGUNIT _IOR('t', 88, int) /* get slip unit number */
#endif /* !_NET_IF_SLVAR_H_ */

View File

@ -33,6 +33,8 @@
* @(#)if_types.h 7.3 (Berkeley) 6/28/90
*/
#ifndef _NET_IF_TYPES_H_
#define _NET_IF_TYPES_H_
/* interface types for benefit of parsing media address headers */
#define IFT_OTHER 0x1 /* none of the following */
@ -62,3 +64,5 @@
#define IFT_XETHER 0x1a /* obsolete 3MB experimental ethernet */
#define IFT_NSIP 0x1b /* XNS over IP */
#define IFT_SLIP 0x1c /* IP over generic TTY */
#endif /* !_NET_IF_TYPES_H_ */

View File

@ -33,6 +33,9 @@
* @(#)netisr.h 7.8 (Berkeley) 5/7/91
*/
#ifndef _NET_NETISR_H_
#define _NET_NETISR_H_
/*
* The networking code runs off software interrupts.
*
@ -84,3 +87,5 @@ int softem;
int netisr; /* scheduling bits for network */
#endif
#endif
#endif /* !_NET_NETISR_H_ */

View File

@ -33,6 +33,9 @@
* @(#)radix.h 7.4 (Berkeley) 6/28/90
*/
#ifndef _NET_RADIX_H_
#define _NET_RADIX_H_
/*
* Radix search tree node layout.
*/
@ -116,3 +119,5 @@ extern struct radix_node_head {
#define R_Malloc(p, t, n) (p = (t) malloc((unsigned long)(n), M_RTABLE, M_DONTWAIT))
#define Free(p) free((caddr_t)p, M_RTABLE);
#endif /*KERNEL*/
#endif /* !_NET_RADIX_H_ */

View File

@ -33,6 +33,9 @@
* @(#)raw_cb.h 7.6 (Berkeley) 6/28/90
*/
#ifndef _NET_RAW_CB_H_
#define _NET_RAW_CB_H_
/*
* Raw protocol interface control block. Used
* to tie a socket to the generic raw interface.
@ -57,3 +60,5 @@ struct rawcb {
#ifdef KERNEL
struct rawcb rawcb; /* head of list */
#endif
#endif /* !_NET_RAW_CB_H_ */

View File

@ -33,6 +33,9 @@
* @(#)route.h 7.13 (Berkeley) 4/25/91
*/
#ifndef _NET_ROUTE_H_
#define _NET_ROUTE_H_
/*
* Kernel resident routing tables.
*
@ -221,3 +224,5 @@ struct mbuf *rtnet[RTHASHSIZ];
struct rtstat rtstat;
struct rtentry *rtalloc1();
#endif
#endif /* !_NET_ROUTE_H_ */

View File

@ -2,7 +2,7 @@
/*
* Definitions for tcp compression routines.
*
* $Header: /cvsroot/src/sys/net/slcompress.h,v 1.1.1.1 1993/03/21 09:45:37 cgd Exp $
* $Header: /cvsroot/src/sys/net/slcompress.h,v 1.2 1993/04/19 03:48:01 mycroft Exp $
*
* Copyright (c) 1989 Regents of the University of California.
* All rights reserved.
@ -39,6 +39,9 @@
* - Initial distribution.
*/
#ifndef _NET_SLCOMPRESS_H_
#define _NET_SLCOMPRESS_H_
#define MAX_STATES 16 /* must be > 2 and < 256 */
#define MAX_HDR MLEN /* XXX 4bsd-ism: should really be 128 */
@ -155,3 +158,5 @@ extern void sl_compress_init(/* struct slcompress * */);
extern u_char sl_compress_tcp(/* struct mbuf *, struct ip *,
struct slcompress *, int compress_cid_flag */);
extern int sl_uncompress_tcp(/* u_char **, int, u_char, struct slcompress * */);
#endif /* !_NET_SLCOMPRESS_H_ */

View File

@ -2,7 +2,7 @@
* Definitions that user level programs might need to know to interact
* with serial line IP (slip) lines.
* @(#) $Header: /cvsroot/src/sys/net/slip.h,v 1.1 1993/03/25 00:30:55 cgd Exp $ (LBL)
* @(#) $Header: /cvsroot/src/sys/net/slip.h,v 1.2 1993/04/19 03:48:03 mycroft Exp $ (LBL)
*
* Copyright (c) 1990 Regents of the University of California.
* All rights reserved.
@ -20,6 +20,9 @@
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
#ifndef _NET_SLIP_H_
#define _NET_SLIP_H_
/*
* ioctl to get slip interface unit number (e.g., sl0, sl1, etc.)
* assigned to some terminal line with a slip module pushed on it.
@ -43,3 +46,4 @@
#define SLIPDIR_IN 0
#define SLIPDIR_OUT 1
#endif /* !_NET_SLIP_H_ */

View File

@ -38,6 +38,9 @@
* @(#)hd_var.h 7.4 (Berkeley) 5/29/91
*/
#ifndef _NETCCITT_HD_VAR_H_
#define _NETCCITT_HD_VAR_H_
/*
*
* hdlc control block
@ -105,3 +108,5 @@ int hd_t1; /* timer T1 value */
int hd_t3; /* RR send timer */
int hd_n2; /* frame retransmission limit */
#endif
#endif /* !_NETCCITT_HD_VAR_H_ */

View File

@ -38,6 +38,9 @@
* @(#)hdlc.h 7.4 (Berkeley) 5/6/91
*/
#ifndef _NETCCITT_HDLC_H_
#define _NETCCITT_HDLC_H_
#ifndef ORDER4
#define FALSE 0
#define TRUE 1
@ -154,3 +157,5 @@ struct Hdlc_frame {
bool range_check ();
bool valid_nr ();
struct mbuf *hd_remove ();
#endif /* !_NETCCITT_HDLC_H_ */

View File

@ -38,6 +38,9 @@
* @(#)pk.h 7.8 (Berkeley) 4/30/91
*/
#ifndef _NETCCITT_PK_H_
#define _NETCCITT_PK_H_
/*
*
* X.25 Packet Level Definitions:
@ -190,3 +193,5 @@ struct mbuf *pk_template ();
#define DIAG_TYPE 14 * MAXSTATES
#define INVALID_PACKET 15 * MAXSTATES
#define DELETE_PACKET INVALID_PACKET
#endif /* !_NETCCITT_PK_H_ */

View File

@ -38,6 +38,8 @@
* @(#)pk_var.h 7.11 (Berkeley) 5/29/91
*/
#ifndef _NETCCITT_PK_VAR_H_
#define _NETCCITT_PK_VAR_H_
/*
*
@ -172,3 +174,5 @@ struct pklcd *pk_attach();
extern char *pk_name[], *pk_state[];
int pk_t20, pk_t21, pk_t22, pk_t23;
#endif
#endif /* !_NETCCITT_PK_VAR_H_ */

View File

@ -38,6 +38,9 @@
* @(#)x25.h 7.8 (Berkeley) 5/29/91
*/
#ifndef _NETCCITT_X25_H_
#define _NETCCITT_X25_H_
#ifdef KERNEL
#define PRC_IFUP 3
#define PRC_LINKUP 4
@ -150,3 +153,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 /* !_NETCCITT_X25_H_ */

View File

@ -38,6 +38,9 @@
* @(#)x25acct.h 7.2 (Berkeley) 5/11/90
*/
#ifndef _NETCCITT_X25ACCT_H_
#define _NETCCITT_X25ACCT_H_
/*
* Format of X.25 accounting record written
* to X25ACCTF whenever a circuit is closed.
@ -68,3 +71,5 @@ struct x25acct {
long x25acct_txcnt; /* packets transmitted */
long x25acct_rxcnt; /* packets received */
};
#endif /* !_NETCCITT_X25ACCT_H_ */

View File

@ -38,6 +38,9 @@
* @(#)x25err.h 7.2 (Berkeley) 5/11/90
*/
#ifndef _NETCCITT_X25ERR_H_
#define _NETCCITT_X25ERR_H_
/*
*
* X.25 Reset and Clear errors and diagnostics. These values are
@ -62,3 +65,4 @@
#define EXCNCG 118 /* Clear: network congestion */
#define EXCNOB 119 /* Clear: not obtainable */
#endif /* !_NETCCITT_X25ERR_H_ */

View File

@ -33,6 +33,9 @@
* @(#)icmp_var.h 7.5 (Berkeley) 6/28/90
*/
#ifndef _NETINET_ICMP_VAR_H_
#define _NETINET_ICMP_VAR_H_
/*
* Variables related to this implementation
* of the internet control message protocol.
@ -55,3 +58,5 @@ struct icmpstat {
#ifdef KERNEL
struct icmpstat icmpstat;
#endif
#endif /* !_NETINET_ICMP_VAR_H_ */

View File

@ -33,6 +33,9 @@
* @(#)if_ether.h 7.5 (Berkeley) 6/28/90
*/
#ifndef _NETINET_IF_ETHER_H_
#define _NETINET_IF_ETHER_H_
/*
* Structure of a 10Mb/s Ethernet header.
*/
@ -106,3 +109,5 @@ struct arptab *arptnew();
int ether_output(), ether_input();
char *ether_sprintf();
#endif
#endif /* !_NETINET_IF_ETHER_H_ */

View File

@ -33,6 +33,9 @@
* @(#)if_ether.h 7.5 (Berkeley) 6/28/90
*/
#ifndef _NETINET_IF_ETHER_H_
#define _NETINET_IF_ETHER_H_
/*
* Structure of a 10Mb/s Ethernet header.
*/
@ -106,3 +109,5 @@ struct arptab *arptnew();
int ether_output(), ether_input();
char *ether_sprintf();
#endif
#endif /* !_NETINET_IF_ETHER_H_ */

View File

@ -33,6 +33,9 @@
* @(#)if_ether.h 7.5 (Berkeley) 6/28/90
*/
#ifndef _NETINET_IF_ETHER_H_
#define _NETINET_IF_ETHER_H_
/*
* Structure of a 10Mb/s Ethernet header.
*/
@ -106,3 +109,5 @@ struct arptab *arptnew();
int ether_output(), ether_input();
char *ether_sprintf();
#endif
#endif /* !_NETINET_IF_ETHER_H_ */

View File

@ -33,6 +33,9 @@
* @(#)in.h 7.11 (Berkeley) 4/20/91
*/
#ifndef _NETINET_IN_H_
#define _NETINET_IN_H_
/*
* Constants and structures defined by the internet system,
* Per RFC 790, September 1981.
@ -149,3 +152,5 @@ struct ip_opts {
struct in_addr in_makeaddr();
u_long in_netof(), in_lnaof();
#endif
#endif /* !_NETINET_IN_H_ */

View File

@ -33,6 +33,9 @@
* @(#)in_pcb.h 7.6 (Berkeley) 6/28/90
*/
#ifndef _NETINET_IN_PCB_H_
#define _NETINET_IN_PCB_H_
/*
* Common structure pcb for internet protocol implementation.
* Here are stored pointers to local and foreign host table
@ -89,3 +92,5 @@ struct raw_inpcb {
#ifdef KERNEL
struct inpcb *in_pcblookup();
#endif
#endif /* !_NETINET_IN_PCB_H_ */

View File

@ -33,6 +33,9 @@
* @(#)in_systm.h 7.4 (Berkeley) 6/28/90
*/
#ifndef _NETINET_IN_SYSTM_H_
#define _NETINET_IN_SYSTM_H_
/*
* Miscellaneous internetwork
* definitions for kernel.
@ -54,3 +57,5 @@ typedef u_long n_time; /* ms since 00:00 GMT, byte rev */
#ifdef KERNEL
n_time iptime();
#endif
#endif /* !_NETINET_IN_SYSTM_H_ */

View File

@ -33,6 +33,9 @@
* @(#)in_var.h 7.6 (Berkeley) 6/28/90
*/
#ifndef _NETINET_IN_VAR_H_
#define _NETINET_IN_VAR_H_
/*
* Interface address, Internet version. One of these structures
* is allocated for each interface with an Internet address.
@ -74,3 +77,5 @@ struct in_ifaddr *in_ifaddr;
struct in_ifaddr *in_iaonnetof();
struct ifqueue ipintrq; /* ip packet input queue */
#endif
#endif /* !_NETINET_IN_VAR_H_ */

View File

@ -33,6 +33,9 @@
* @(#)ip.h 7.10 (Berkeley) 6/28/90
*/
#ifndef _NETINET_IP_H_
#define _NETINET_IP_H_
/*
* Definitions for internet protocol version 4.
* Per RFC 791, September 1981.
@ -164,3 +167,5 @@ struct ip_timestamp {
#define IPTTLDEC 1 /* subtracted when forwarding */
#define IP_MSS 576 /* default maximum segment size */
#endif /* !_NETINET_IP_H_ */

View File

@ -33,6 +33,9 @@
* @(#)ip_icmp.h 7.5 (Berkeley) 6/28/90
*/
#ifndef _NETINET_IP_ICMP_H_
#define _NETINET_IP_ICMP_H_
/*
* Interface Control Message Protocol Definitions.
* Per RFC 792, September 1981.
@ -131,3 +134,5 @@ struct icmp {
(type) == ICMP_TSTAMP || (type) == ICMP_TSTAMPREPLY || \
(type) == ICMP_IREQ || (type) == ICMP_IREQREPLY || \
(type) == ICMP_MASKREQ || (type) == ICMP_MASKREPLY)
#endif /* !_NETINET_IP_ICMP_H_ */

View File

@ -33,6 +33,9 @@
* @(#)ip_var.h 7.7 (Berkeley) 6/28/90
*/
#ifndef _NETINET_IP_VAR_H_
#define _NETINET_IP_VAR_H_
/*
* Overlay for ip header used by other protocols (tcp, udp).
*/
@ -134,3 +137,5 @@ u_short ip_id; /* ip packet ctr, for ids */
struct mbuf *ip_srcroute();
#endif
#endif /* !_NETINET_IP_VAR_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tcp.h 7.7 (Berkeley) 6/28/90
*/
#ifndef _NETINET_TCP_H_
#define _NETINET_TCP_H_
typedef u_long tcp_seq;
/*
* TCP header.
@ -82,3 +85,5 @@ struct tcphdr {
*/
#define TCP_NODELAY 0x01 /* don't delay send to coalesce packets */
#define TCP_MAXSEG 0x02 /* set maximum segment size */
#endif /* !_NETINET_TCP_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tcp_debug.h 7.4 (Berkeley) 6/28/90
*/
#ifndef _NETINET_TCP_DEBUG_H_
#define _NETINET_TCP_DEBUG_H_
struct tcp_debug {
n_time td_time;
short td_act;
@ -57,3 +60,5 @@ char *tanames[] =
#define TCP_NDEBUG 100
struct tcp_debug tcp_debug[TCP_NDEBUG];
int tcp_debx;
#endif /* !_NETINET_TCP_DEBUG_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tcp_fsm.h 7.4 (Berkeley) 6/28/90
*/
#ifndef _NETINET_TCP_FSM_H_
#define _NETINET_TCP_FSM_H_
/*
* TCP FSM state definitions.
* Per RFC793, September, 1981.
@ -83,3 +86,5 @@ char *tcpstates[] = {
"LAST_ACK", "FIN_WAIT_2", "TIME_WAIT",
};
#endif
#endif /* !_NETINET_TCP_FSM_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tcp_seq.h 7.4 (Berkeley) 6/28/90
*/
#ifndef _NETINET_TCP_SEQ_H_
#define _NETINET_TCP_SEQ_H_
/*
* TCP sequence numbers are 32 bit integers operated
* on with modular arithmetic. These macros can be
@ -60,3 +63,5 @@
#ifdef KERNEL
tcp_seq tcp_iss; /* tcp initial send seq # */
#endif
#endif /* !_NETINET_TCP_SEQ_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tcp_timer.h 7.8 (Berkeley) 6/28/90
*/
#ifndef _NETINET_TCP_TIMER_H_
#define _NETINET_TCP_TIMER_H_
/*
* Definitions of the TCP timers. These timers are counted
* down PR_SLOWHZ times a second.
@ -127,3 +130,5 @@ extern int tcp_maxidle; /* time to drop after starting probes */
extern int tcp_ttl; /* time to live for TCP segs */
extern int tcp_backoff[];
#endif
#endif /* !_NETINET_TCP_TIMER_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tcp_var.h 7.10 (Berkeley) 6/28/90
*/
#ifndef _NETINET_TCP_VAR_H_
#define _NETINET_TCP_VAR_H_
/*
* Kernel variables for tcp.
*/
@ -216,3 +219,5 @@ struct tcpiphdr *tcp_template();
struct tcpcb *tcp_close(), *tcp_drop();
struct tcpcb *tcp_timers(), *tcp_disconnect(), *tcp_usrclosed();
#endif
#endif /* !_NETINET_TCP_VAR_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tcpip.h 7.4 (Berkeley) 6/28/90
*/
#ifndef _NETINET_TCPIP_H_
#define _NETINET_TCPIP_H_
/*
* Tcp+ip header, after ip options removed.
*/
@ -57,3 +60,5 @@ struct tcpiphdr {
#define ti_win ti_t.th_win
#define ti_sum ti_t.th_sum
#define ti_urp ti_t.th_urp
#endif /* !_NETINET_TCPIP_H_ */

View File

@ -33,6 +33,9 @@
* @(#)udp.h 7.4 (Berkeley) 6/28/90
*/
#ifndef _NETINET_UDP_H_
#define _NETINET_UDP_H_
/*
* Udp protocol header.
* Per RFC 768, September, 1981.
@ -43,3 +46,5 @@ struct udphdr {
short uh_ulen; /* udp length */
u_short uh_sum; /* udp checksum */
};
#endif /* !_NETINET_UDP_H_ */

View File

@ -33,6 +33,9 @@
* @(#)udp_var.h 7.7 (Berkeley) 6/28/90
*/
#ifndef _NETINET_UDP_VAR_H_
#define _NETINET_UDP_VAR_H_
/*
* UDP kernel structures and variables.
*/
@ -72,3 +75,5 @@ struct udpstat {
struct inpcb udb;
struct udpstat udpstat;
#endif
#endif /* !_NETINET_UDP_VAR_H_ */

View File

@ -33,6 +33,9 @@
* @(#)argo_debug.h 7.4 (Berkeley) 5/6/91
*/
#ifndef _NETISO_ARGO_DEBUG_H_
#define _NETISO_ARGO_DEBUG_H_
/*****************************************************************
Copyright IBM Corporation 1987
@ -60,13 +63,10 @@ SOFTWARE.
* ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
*/
/*
* $Header: /cvsroot/src/sys/netiso/Attic/argo_debug.h,v 1.1 1993/04/09 12:00:44 cgd Exp $
* $Header: /cvsroot/src/sys/netiso/Attic/argo_debug.h,v 1.2 1993/04/19 03:45:34 mycroft Exp $
* $Source: /cvsroot/src/sys/netiso/Attic/argo_debug.h,v $
*/
#ifndef __ARGO_DEBUG__
#define __ARGO_DEBUG__
#define dump_buf(a, b) Dump_buf((caddr_t)(a), (int)(b))
/***********************************************
@ -293,4 +293,4 @@ void dump_mbuf();
#endif ARGO_DEBUG
#endif __ARGO_DEBUG__
#endif /* !_NETISO_ARGO_DEBUG_H_ */

View File

@ -33,6 +33,9 @@
* @(#)clnl.h 7.3 (Berkeley) 5/6/91
*/
#ifndef _NETISO_CLNL_H_
#define _NETISO_CLNL_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -62,3 +65,5 @@ SOFTWARE.
struct clnl_protosw {
int (*clnl_input)(); /* input routine */
};
#endif /* !_NETISO_CLNL_H_ */

View File

@ -33,6 +33,9 @@
* @(#)clnp.h 7.8 (Berkeley) 5/6/91
*/
#ifndef _NETISO_CLNP_H_
#define _NETISO_CLNP_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -59,7 +62,7 @@ SOFTWARE.
/*
* ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
*/
/* $Header: /cvsroot/src/sys/netiso/Attic/clnp.h,v 1.1 1993/04/09 12:00:46 cgd Exp $ */
/* $Header: /cvsroot/src/sys/netiso/Attic/clnp.h,v 1.2 1993/04/19 03:45:37 mycroft Exp $ */
/* $Source: /cvsroot/src/sys/netiso/Attic/clnp.h,v $ */
#ifndef BYTE_ORDER
@ -476,3 +479,5 @@ struct mbuf *clnp_reass();
struct troll trollctl;
#endif TROLL
#endif KERNEL
#endif /* !_NETISO_CLNP_H_ */

View File

@ -33,6 +33,9 @@
* @(#)clnp_stat.h 7.4 (Berkeley) 5/6/91
*/
#ifndef _NETISO_CLNP_STAT_H_
#define _NETISO_CLNP_STAT_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -59,13 +62,9 @@ SOFTWARE.
/*
* ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
*/
/* $Header: /cvsroot/src/sys/netiso/Attic/clnp_stat.h,v 1.1 1993/04/09 12:00:57 cgd Exp $ */
/* $Header: /cvsroot/src/sys/netiso/Attic/clnp_stat.h,v 1.2 1993/04/19 03:45:38 mycroft Exp $ */
/* $Source: /cvsroot/src/sys/netiso/Attic/clnp_stat.h,v $ */
#ifndef __CLNP_STAT__
#define __CLNP_STAT__
struct clnp_stat {
int cns_total; /* total pkts received */
int cns_toosmall; /* fixed part of header too small */
@ -100,4 +99,4 @@ struct clnp_stat {
#endif INCSTAT
#define INCSTAT(x) clnp_stat./**/x/**/++
#endif __CLNP_STAT__
#endif /* !_NETISO_CLNP_STAT_H_ */

View File

@ -33,6 +33,9 @@
* @(#)cltp_var.h 7.3 (Berkeley) 6/28/90
*/
#ifndef _NETISO_CLTP_VAR_H_
#define _NETISO_CLTP_VAR_H_
#define UD_TPDU_type 0x40 /* packet type */
#define CLTPOVAL_SRC 0xc1 /* Source TSAP -- required */
@ -52,3 +55,5 @@ struct cltpstat {
struct isopcb cltb;
struct cltpstat cltpstat;
#endif
#endif /* !_NETISO_CLTP_VAR_H_ */

View File

@ -33,6 +33,9 @@
* @(#)cons.h 7.3 (Berkeley) 5/6/91
*/
#ifndef _NETISO_CONS_H_
#define _NETISO_CONS_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -60,7 +63,7 @@ SOFTWARE.
* ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
*/
/*
* $Header: /cvsroot/src/sys/netiso/Attic/cons.h,v 1.1 1993/04/09 12:01:03 cgd Exp $
* $Header: /cvsroot/src/sys/netiso/Attic/cons.h,v 1.2 1993/04/19 03:45:40 mycroft Exp $
* $Source: /cvsroot/src/sys/netiso/Attic/cons.h,v $
*
* interface between TP and CONS
@ -90,3 +93,5 @@ struct dte_addr {
#define PRC_CONS_SEND_DONE 2 /* something unused in protosw.h */
#endif KERNEL
#endif /* !_NETISO_CONS_H_ */

View File

@ -33,6 +33,9 @@
* @(#)cons_pcb.h 7.4 (Berkeley) 5/6/91
*/
#ifndef _NETISO_CONS_PCB_H_
#define _NETISO_CONS_PCB_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -59,7 +62,7 @@ SOFTWARE.
/*
* ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
*/
/* $Header: /cvsroot/src/sys/netiso/Attic/cons_pcb.h,v 1.1 1993/04/09 12:01:05 cgd Exp $ */
/* $Header: /cvsroot/src/sys/netiso/Attic/cons_pcb.h,v 1.2 1993/04/19 03:45:41 mycroft Exp $ */
/* $Source: /cvsroot/src/sys/netiso/Attic/cons_pcb.h,v $ */
/*
@ -191,3 +194,5 @@ struct e_clear_data {
#ifdef KERNEL
#define IncStat(XYZ) cons_stat.XYZ++
#endif KERNEL
#endif /* !_NETISO_CONS_PCB_H_ */

View File

@ -33,6 +33,9 @@
* @(#)eonvar.h 7.5 (Berkeley) 5/6/91
*/
#ifndef _NETISO_EONVAR_H_
#define _NETISO_EONVAR_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -168,3 +171,5 @@ struct eon_llinfo {
};
#define el_iphdr el_ei.ei_ip
#define el_eonhdr el_ei.ei_eh
#endif /* !_NETISO_EONVAR_H_ */

View File

@ -33,6 +33,9 @@
* @(#)esis.h 7.4 (Berkeley) 5/6/91
*/
#ifndef _NETISO_ESIS_H_
#define _NETISO_ESIS_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -60,7 +63,7 @@ SOFTWARE.
* ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
*/
/*
* $Header: /cvsroot/src/sys/netiso/Attic/esis.h,v 1.1 1993/04/09 12:01:08 cgd Exp $
* $Header: /cvsroot/src/sys/netiso/Attic/esis.h,v 1.2 1993/04/19 03:45:43 mycroft Exp $
* $Source: /cvsroot/src/sys/netiso/Attic/esis.h,v $
*/
@ -133,3 +136,5 @@ struct esis_stat {
#ifdef KERNEL
struct esis_stat esis_stat;
#endif KERNEL
#endif /* !_NETISO_ESIS_H_ */

View File

@ -33,6 +33,9 @@
* @(#)iso.h 7.6 (Berkeley) 5/6/91
*/
#ifndef _NETISO_ISO_H_
#define _NETISO_ISO_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -59,12 +62,9 @@ SOFTWARE.
/*
* ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
*/
/* $Header: /cvsroot/src/sys/netiso/Attic/iso.h,v 1.1 1993/04/09 12:01:13 cgd Exp $ */
/* $Header: /cvsroot/src/sys/netiso/Attic/iso.h,v 1.2 1993/04/19 03:45:44 mycroft Exp $ */
/* $Source: /cvsroot/src/sys/netiso/Attic/iso.h,v $ */
#ifndef __ISO__
#define __ISO__
/*
* Return true if this is a multicast address
* This assumes that the bit transmission is lsb first. This
@ -187,4 +187,5 @@ __END_DECLS
#endif /* KERNEL */
#define _offsetof(t, m) ((int)((caddr_t)&((t *)0)->m))
#endif __ISO__
#endif /* !_NETISO_ISO_H_ */

View File

@ -33,6 +33,9 @@
* @(#)iso_errno.h 7.5 (Berkeley) 5/6/91
*/
#ifndef _NETISO_ISO_ERRNO_H_
#define _NETISO_ISO_ERRNO_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -60,9 +63,6 @@ SOFTWARE.
* ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
*/
#ifndef __ISO_ERRNO__
#define __ISO_ERRNO__
#define ISO_ERROR_MASK 0x8000
#define BSD_ERROR_MASK 0x0000
#define TP_ERROR_MASK 0x8800 /* transport layer */
@ -271,4 +271,4 @@ SOFTWARE.
#define CONL_ERROR_MAX 0x1c3
#endif __ISO_ERRNO__
#endif /* !_NETISO_ISO_ERRNO_H_ */

View File

@ -33,6 +33,9 @@
* @(#)iso_map.h 7.3 (Berkeley) 5/6/91
*/
#ifndef _NETISO_ISO_MAP_H_
#define _NETISO_ISO_MAP_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -64,3 +67,5 @@ struct maptab {
u_char map_enaddr[6]; /* ethernet address */
u_char map_valid; /* true if entry is valid */
};
#endif /* !_NETISO_ISO_MAP_H_ */

View File

@ -33,6 +33,9 @@
* @(#)iso_pcb.h 7.5 (Berkeley) 5/6/91
*/
#ifndef _NETISO_ISO_PCB_H_
#define _NETISO_ISO_PCB_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -59,7 +62,7 @@ SOFTWARE.
/*
* ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
*/
/* $Header: /cvsroot/src/sys/netiso/Attic/iso_pcb.h,v 1.1 1993/04/09 12:01:19 cgd Exp $ */
/* $Header: /cvsroot/src/sys/netiso/Attic/iso_pcb.h,v 1.2 1993/04/19 03:45:47 mycroft Exp $ */
/* $Source: /cvsroot/src/sys/netiso/Attic/iso_pcb.h,v $ */
#define MAXX25CRUDLEN 16 /* 16 bytes of call request user data */
@ -110,3 +113,5 @@ struct rawisopcb {
#ifdef KERNEL
struct isopcb *iso_pcblookup();
#endif
#endif /* !_NETISO_ISO_PCB_H_ */

View File

@ -33,6 +33,9 @@
* @(#)iso_snpac.h 7.8 (Berkeley) 5/6/91
*/
#ifndef _NETISO_ISO_SNPAC_H_
#define _NETISO_ISO_SNPAC_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -110,3 +113,5 @@ struct llinfo_llc {
#ifdef KERNEL
struct llinfo_llc llinfo_llc; /* head for linked lists */
#endif KERNEL
#endif /* !_NETISO_ISO_SNPAC_H_ */

View File

@ -33,6 +33,9 @@
* @(#)iso_var.h 7.5 (Berkeley) 5/6/91
*/
#ifndef _NETISO_ISO_VAR_H_
#define _NETISO_ISO_VAR_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -59,7 +62,7 @@ SOFTWARE.
/*
* ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
*/
/* $Header: /cvsroot/src/sys/netiso/Attic/iso_var.h,v 1.1 1993/04/09 12:01:24 cgd Exp $
/* $Header: /cvsroot/src/sys/netiso/Attic/iso_var.h,v 1.2 1993/04/19 03:45:49 mycroft Exp $
* $Source: /cvsroot/src/sys/netiso/Attic/iso_var.h,v $
*/
@ -135,3 +138,5 @@ struct iso_ifaddr *iso_ifaddr; /* linked list of iso address ifaces */
struct iso_ifaddr *iso_localifa(); /* linked list of iso address ifaces */
struct ifqueue clnlintrq; /* clnl packet input queue */
#endif KERNEL
#endif /* !_NETISO_ISO_VAR_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tp_clnp.h 7.3 (Berkeley) 5/6/91
*/
#ifndef _NETISO_TP_CLNP_H_
#define _NETISO_TP_CLNP_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -62,17 +65,13 @@ SOFTWARE.
/*
* ARGO TP
*
* $Header: /cvsroot/src/sys/netiso/Attic/tp_clnp.h,v 1.1 1993/04/09 12:01:27 cgd Exp $
* $Header: /cvsroot/src/sys/netiso/Attic/tp_clnp.h,v 1.2 1993/04/19 03:45:50 mycroft Exp $
* $Source: /cvsroot/src/sys/netiso/Attic/tp_clnp.h,v $
*
* AF_ISO net-dependent structures and include files
*
*/
#ifndef __TP_CLNP__
#define __TP_CLNP__
#ifndef SOCK_STREAM
#include "socket.h"
#endif SOCK_STREAM
@ -91,4 +90,4 @@ SOFTWARE.
struct isopcb tp_isopcb;
/* queue of active inpcbs for tp ; for tp with dod ip */
#endif __TP_CLNP__
#endif /* !_NETISO_TP_CLNP_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tp_ip.h 7.3 (Berkeley) 5/6/91
*/
#ifndef _NETISO_TP_IP_H_
#define _NETISO_TP_IP_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -62,17 +65,13 @@ SOFTWARE.
/*
* ARGO TP
*
* $Header: /cvsroot/src/sys/netiso/Attic/tp_ip.h,v 1.1 1993/04/09 12:01:36 cgd Exp $
* $Header: /cvsroot/src/sys/netiso/Attic/tp_ip.h,v 1.2 1993/04/19 03:45:51 mycroft Exp $
* $Source: /cvsroot/src/sys/netiso/Attic/tp_ip.h,v $
*
* internet IP-dependent structures and include files
*
*/
#ifndef __TP_IP__
#define __TP_IP__
#ifndef SOCK_STREAM
#include "socket.h"
#endif SOCK_STREAM
@ -88,4 +87,4 @@ SOFTWARE.
struct inpcb tp_inpcb;
/* queue of active inpcbs for tp ; for tp with dod ip */
#endif __TP_IP__
#endif /* !_NETISO_TP_IP_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tp_meas.h 7.5 (Berkeley) 5/6/91
*/
#ifndef _NETISO_TP_MEAS_H_
#define _NETISO_TP_MEAS_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -92,3 +95,5 @@ extern struct tp_Meas tp_Meas[];
#define TPtime_close 0x09
#endif TP_PERF_MEAS
#endif /* !_NETISO_TP_MEAS_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tp_param.h 7.8 (Berkeley) 6/27/91
*/
#ifndef _NETISO_TP_PARAM_H_
#define _NETISO_TP_PARAM_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -62,15 +65,11 @@ SOFTWARE.
/*
* ARGO TP
*
* $Header: /cvsroot/src/sys/netiso/Attic/tp_param.h,v 1.1 1993/04/09 12:01:42 cgd Exp $
* $Header: /cvsroot/src/sys/netiso/Attic/tp_param.h,v 1.2 1993/04/19 03:45:55 mycroft Exp $
* $Source: /cvsroot/src/sys/netiso/Attic/tp_param.h,v $
*
*/
#ifndef __TP_PARAM__
#define __TP_PARAM__
/******************************************************
* compile time parameters that can be changed
*****************************************************/
@ -366,4 +365,4 @@ bcopy((caddr_t)&(((struct tp_vbp *)(src))->tpv_val),(caddr_t)&(dst),sizeof(type)
#endif tp_NSTATES
#endif KERNEL
#endif __TP_PARAM__
#endif /* !_NETISO_TP_PARAM_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tp_pcb.h 7.9 (Berkeley) 5/6/91
*/
#ifndef _NETISO_TP_PCB_H_
#define _NETISO_TP_PCB_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -62,7 +65,7 @@ SOFTWARE.
/*
* ARGO TP
*
* $Header: /cvsroot/src/sys/netiso/Attic/tp_pcb.h,v 1.1 1993/04/09 12:01:44 cgd Exp $
* $Header: /cvsroot/src/sys/netiso/Attic/tp_pcb.h,v 1.2 1993/04/19 03:45:56 mycroft Exp $
* $Source: /cvsroot/src/sys/netiso/Attic/tp_pcb.h,v $
*
*
@ -70,9 +73,6 @@ SOFTWARE.
* and a bunch of #define values that are used in the tpcb.
*/
#ifndef __TP_PCB__
#define __TP_PCB__
#include "../netiso/tp_param.h"
#include "../netiso/tp_timer.h"
#include "../netiso/tp_user.h"
@ -371,4 +371,4 @@ extern struct tp_pcb *tp_intercepts;
#define tpcbtoso(tp) ((struct socket *)((tp)->tp_sock))
#define tpcbtoref(tp) ((struct tp_ref *)((tp)->tp_ref))
#endif __TP_PCB__
#endif /* !_NETISO_TP_PCB_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tp_seq.h 7.5 (Berkeley) 5/6/91
*/
#ifndef _NETISO_TP_SEQ_H_
#define _NETISO_TP_SEQ_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -62,7 +65,7 @@ SOFTWARE.
/*
* ARGO TP
*
* $Header: /cvsroot/src/sys/netiso/Attic/tp_seq.h,v 1.1 1993/04/09 12:01:45 cgd Exp $
* $Header: /cvsroot/src/sys/netiso/Attic/tp_seq.h,v 1.2 1993/04/19 03:45:57 mycroft Exp $
* $Source: /cvsroot/src/sys/netiso/Attic/tp_seq.h,v $
*
* These macros perform sequence number arithmetic modulo (2**7 or 2**31).
@ -73,9 +76,6 @@ SOFTWARE.
* Not exactly fast, but at least it's maintainable.
*/
#ifndef __TP_SEQ__
#define __TP_SEQ__
#define SEQ(tpcb,x) \
((x) & (tpcb)->tp_seqmask)
@ -121,4 +121,4 @@ SOFTWARE.
#define IN_SWINDOW(tpcb, seq, lwe, uwe)\
( SEQ_GT(tpcb, seq, lwe) && SEQ_LEQ(tpcb, seq, uwe) )
#endif __TP_SEQ__
#endif /* !_NETISO_TP_SEQ_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tp_stat.h 7.5 (Berkeley) 6/27/91
*/
#ifndef _NETISO_TP_STAT_H_
#define _NETISO_TP_STAT_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -62,16 +65,13 @@ SOFTWARE.
/*
* ARGO TP
*
* $Header: /cvsroot/src/sys/netiso/Attic/tp_stat.h,v 1.1 1993/04/09 12:01:47 cgd Exp $
* $Header: /cvsroot/src/sys/netiso/Attic/tp_stat.h,v 1.2 1993/04/19 03:45:58 mycroft Exp $
* $Source: /cvsroot/src/sys/netiso/Attic/tp_stat.h,v $
*
* Here are the data structures in which the global
* statistics(counters) are gathered.
*/
#ifndef __TP_STAT__
#define __TP_STAT__
struct tp_stat {
u_long ts_param_ignored;
u_long ts_unused3;
@ -278,4 +278,4 @@ int PStat_Junk;
#endif TP_PERF_MEAS
#endif __TP_STAT__
#endif /* !_NETISO_TP_STAT_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tp_timer.h 7.4 (Berkeley) 5/6/91
*/
#ifndef _NETISO_TP_TIMER_H_
#define _NETISO_TP_TIMER_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -62,16 +65,13 @@ SOFTWARE.
/*
* ARGO TP
*
* $Header: /cvsroot/src/sys/netiso/Attic/tp_timer.h,v 1.1 1993/04/09 12:01:54 cgd Exp $
* $Header: /cvsroot/src/sys/netiso/Attic/tp_timer.h,v 1.2 1993/04/19 03:45:59 mycroft Exp $
* $Source: /cvsroot/src/sys/netiso/Attic/tp_timer.h,v $
*
* ARGO TP
* The callout structures used by the tp timers.
*/
#ifndef __TP_CALLOUT__
#define __TP_CALLOUT__
/* C timers - one per tpcb, generally cancelled */
struct Ccallout {
@ -89,4 +89,4 @@ struct Ecallout {
struct Ecallout *c_next;
};
#endif __TP_CALLOUT__
#endif /* !_NETISO_TP_TIMER_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tp_tpdu.h 7.4 (Berkeley) 5/6/91
*/
#ifndef _NETISO_TP_TPDU_H_
#define _NETISO_TP_TPDU_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -62,16 +65,13 @@ SOFTWARE.
/*
* ARGO TP
*
* $Header: /cvsroot/src/sys/netiso/Attic/tp_tpdu.h,v 1.1 1993/04/09 12:01:55 cgd Exp $
* $Header: /cvsroot/src/sys/netiso/Attic/tp_tpdu.h,v 1.2 1993/04/19 03:46:00 mycroft Exp $
* $Source: /cvsroot/src/sys/netiso/Attic/tp_tpdu.h,v $
*
* This ghastly set of macros makes it possible to
* refer to tpdu structures without going mad.
*/
#ifndef __TP_TPDU__
#define __TP_TPDU__
#ifndef BYTE_ORDER
/*
* Definitions for byte order,
@ -293,4 +293,4 @@ struct tpdu {
union tpdu_fixed_rest _tpdufr;
};
#endif __TP_TPDU__
#endif /* !_NETISO_TP_TPDU_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tp_trace.h 7.5 (Berkeley) 6/27/91
*/
#ifndef _NETISO_TP_TRACE_H_
#define _NETISO_TP_TRACE_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -62,17 +65,13 @@ SOFTWARE.
/*
* ARGO TP
*
* $Header: /cvsroot/src/sys/netiso/Attic/tp_trace.h,v 1.1 1993/04/09 12:01:58 cgd Exp $
* $Header: /cvsroot/src/sys/netiso/Attic/tp_trace.h,v 1.2 1993/04/19 03:46:01 mycroft Exp $
* $Source: /cvsroot/src/sys/netiso/Attic/tp_trace.h,v $
*
*
* Definitions needed for the protocol trace mechanism.
*/
#ifndef __TP_TRACE__
#define __TP_TRACE__
#define TPPTsendack 1
#define TPPTgotack 2
#define TPPTXack 3
@ -193,6 +192,4 @@ int tp_Tracen = 0;
#endif TPPT
#endif __TP_TRACE__
#endif /* !_NETISO_TP_TRACE_H_ */

View File

@ -33,6 +33,9 @@
* @(#)tp_user.h 7.10 (Berkeley) 5/6/91
*/
#ifndef _NETISO_TP_USER_H_
#define _NETISO_TP_USER_H_
/***********************************************************
Copyright IBM Corporation 1987
@ -62,7 +65,7 @@ SOFTWARE.
/*
* ARGO TP
*
* $Header: /cvsroot/src/sys/netiso/Attic/tp_user.h,v 1.1 1993/04/09 12:01:59 cgd Exp $
* $Header: /cvsroot/src/sys/netiso/Attic/tp_user.h,v 1.2 1993/04/19 03:46:03 mycroft Exp $
* $Source: /cvsroot/src/sys/netiso/Attic/tp_user.h,v $
*
* These are the values a real-live user ;-) needs.
@ -76,9 +79,6 @@ SOFTWARE.
#endif KERNEL
#endif
#ifndef __TP_USER__
#define __TP_USER__
struct tp_conn_param {
/* PER CONNECTION parameters */
short p_Nretrans;
@ -168,5 +168,4 @@ struct tp_disc_reason {
***********************end flags******************************
*/
#endif __TP_USER__
#endif /* !_NETISO_TP_USER_H_ */

View File

@ -33,6 +33,9 @@
* @(#)idp.h 7.4 (Berkeley) 6/28/90
*/
#ifndef _NETNS_IDP_H_
#define _NETNS_IDP_H_
/*
* Definitions for NS(tm) Internet Datagram Protocol
*/
@ -44,3 +47,5 @@ struct idp {
struct ns_addr idp_dna; /* Destination Network Address */
struct ns_addr idp_sna; /* Source Network Address */
};
#endif /* !_NETNS_IDP_H_ */

View File

@ -33,6 +33,9 @@
* @(#)idp_var.h 7.4 (Berkeley) 6/28/90
*/
#ifndef _NETNS_IDP_VAR_H_
#define _NETNS_IDP_VAR_H_
/*
* IDP Kernel Structures and Variables
*/
@ -47,3 +50,5 @@ struct idpstat {
#ifdef KERNEL
struct idpstat idpstat;
#endif
#endif /* !_NETNS_IDP_VAR_H_ */

View File

@ -33,6 +33,9 @@
* @(#)ns.h 7.8 (Berkeley) 2/22/91
*/
#ifndef _NETNS_NS_H_
#define _NETNS_NS_H_
/*
* Constants and Structures defined by the Xerox Network Software
* per "Internet Transport Protocols", XSIS 028112, December 1981
@ -149,3 +152,5 @@ extern char *ns_ntoa __P((struct ns_addr));
__END_DECLS
#endif
#endif /* !_NETNS_NS_H_ */

View File

@ -33,6 +33,9 @@
* @(#)ns_error.h 7.5 (Berkeley) 6/28/90
*/
#ifndef _NETNS_NS_ERROR_H_
#define _NETNS_NS_ERROR_H_
/*
* Xerox NS error messages
*/
@ -88,3 +91,5 @@ struct ns_errstat {
#ifdef KERNEL
struct ns_errstat ns_errstat;
#endif
#endif /* !_NETNS_NS_ERROR_H_ */

View File

@ -33,6 +33,9 @@
* @(#)ns_if.h 7.6 (Berkeley) 6/28/90
*/
#ifndef _NETNS_NS_IF_H_
#define _NETNS_NS_IF_H_
/*
* Interface address, xerox version. One of these structures
* is allocated for each interface with an internet address.
@ -82,3 +85,5 @@ struct ns_ifaddr *ns_ifaddr;
struct ns_ifaddr *ns_iaonnetof();
struct ifqueue nsintrq; /* XNS input packet queue */
#endif
#endif /* !_NETNS_NS_IF_H_ */

View File

@ -33,6 +33,9 @@
* @(#)ns_pcb.h 7.4 (Berkeley) 6/28/90
*/
#ifndef _NETNS_NS_PCB_H_
#define _NETNS_NS_PCB_H_
/*
* Ns protocol interface control block.
*/
@ -78,3 +81,5 @@ struct nspcb {
struct nspcb nspcb; /* head of list */
struct nspcb *ns_pcblookup();
#endif
#endif /* !_NETNS_NS_PCB_H_ */

View File

@ -1 +1 @@
revision 1.1.1.1 intentionally removed
revision 1.2 intentionally removed

View File

@ -33,6 +33,9 @@
* @(#)fs.h 7.12 (Berkeley) 5/8/91
*/
#ifndef _UFS_FS_H_
#define _UFS_FS_H_
/*
* Each disk drive contains some number of file systems.
* A file system consists of a number of cylinder groups.
@ -438,3 +441,5 @@ struct ocg {
* NINDIR is the number of indirects in a file system block.
*/
#define NINDIR(fs) ((fs)->fs_nindir)
#endif /* !_UFS_FS_H_ */

View File

@ -36,6 +36,9 @@
* @(#)lockf.h 7.1 (Berkeley) 2/1/91
*/
#ifndef _UFS_LOCKF_H_
#define _UFS_LOCKF_H_
/*
* The lockf structure is a kernel structure which contains all the
* information associated with a byte range lock. The lockf structures
@ -69,3 +72,5 @@ extern struct lockf *lf_getblock(); /* Return the first blocking lock */
extern int lockf_debug;
#endif LOCKF_DEBUG
#endif KERNEL
#endif /* !_UFS_LOCKF_H_ */

View File

@ -33,5 +33,10 @@
* @(#)mfsiom.h 7.2 (Berkeley) 6/28/90
*/
#ifndef _UFS_MFSIOM_H_
#define _UFS_MFSIOM_H_
#define MFS_MAPREG (MAXPHYS/NBPG + 2) /* Kernel mapping pte's */
#define MFS_MAPSIZE 10 /* Size of alloc map for pte's */
#endif /* !_UFS_MFSIOM_H_ */

View File

@ -33,6 +33,9 @@
* @(#)mfsnode.h 7.3 (Berkeley) 4/16/91
*/
#ifndef _UFS_MFSNODE_H_
#define _UFS_MFSNODE_H_
/*
* This structure defines the control data for the memory
* based file system.
@ -194,3 +197,5 @@ int mfs_print __P((
int op, \
struct flock *fl, \
int flags))) mfs_badop)
#endif /* !_UFS_MFSNODE_H_ */

View File

@ -36,8 +36,8 @@
* @(#)quota.h 7.9 (Berkeley) 2/22/91
*/
#ifndef _QUOTA_
#define _QUOTA_
#ifndef _UFS_QUOTA_H_
#define _UFS_QUOTA_H_
/*
* Definitions for disk quotas imposed on the average user
@ -179,4 +179,5 @@ int quotactl __P((const char *, int, int, void *));
__END_DECLS
#endif /* KERNEL */
#endif /* _QUOTA_ */
#endif /* !_UFS_QUOTA_H_ */

View File

@ -33,6 +33,9 @@
* @(#)ufsmount.h 7.9 (Berkeley) 5/8/91
*/
#ifndef _UFS_UFSMOUNT_H_
#define _UFS_UFSMOUNT_H_
/*
* This structure describes the UFS specific mount structure data.
*/
@ -75,3 +78,5 @@ int ufs_sync __P((struct mount *mp, int waitfor));
int ufs_fhtovp __P((struct mount *mp, struct fid *fhp, struct vnode **vpp));
int ufs_vptofh __P((struct vnode *vp, struct fid *fhp));
int ufs_init __P(());
#endif /* !_UFS_UFSMOUNT_H_ */

View File

@ -38,8 +38,8 @@
* @(#)device_pager.h 7.1 (Berkeley) 12/5/90
*/
#ifndef _DEVICE_PAGER_
#define _DEVICE_PAGER_ 1
#ifndef _VM_DEVICE_PAGER_H_
#define _VM_DEVICE_PAGER_H_
/*
* Device pager private data.
@ -75,4 +75,4 @@ struct pagerops devicepagerops = {
#endif
#endif /* _DEVICE_PAGER_ */
#endif /* !_VM_DEVICE_PAGER_H_ */

View File

@ -62,13 +62,13 @@
* rights to redistribute these changes.
*/
#ifndef _VM_LOCK_H_
#define _VM_LOCK_H_
/*
* Locking primitives definitions
*/
#ifndef _LOCK_H_
#define _LOCK_H_
#define NCPUS 1 /* XXX */
/*
@ -172,4 +172,4 @@ boolean_t lock_try_read_to_write();
void lock_set_recursive();
void lock_clear_recursive();
#endif /* !_LOCK_H_ */
#endif /* !_VM_LOCK_H_ */

View File

@ -62,14 +62,14 @@
* rights to redistribute these changes.
*/
#ifndef _VM_PMAP_H_
#define _VM_PMAP_H_
/*
* Machine address mapping definitions -- machine-independent
* section. [For machine-dependent section, see "machine/pmap.h".]
*/
#ifndef _PMAP_VM_
#define _PMAP_VM_
#include <machine/pmap.h>
#ifdef KERNEL
@ -104,4 +104,4 @@ boolean_t pmap_access();
extern pmap_t kernel_pmap;
#endif
#endif _PMAP_VM_
#endif /* !_VM_PMAP_H_ */

View File

@ -62,13 +62,13 @@
* rights to redistribute these changes.
*/
#ifndef _VM_QUEUE_H_
#define _VM_QUEUE_H_
/*
* Type definitions for generic queues.
*/
#ifndef _QUEUE_H_
#define _QUEUE_H_
struct queue_entry {
struct queue_entry *next; /* next element */
struct queue_entry *prev; /* previous element */
@ -130,4 +130,4 @@ typedef struct queue_entry *queue_entry_t;
queue_remove((h), (e), t, f); \
}
#endif /* !_QUEUE_H_ */
#endif /* !_VM_QUEUE_H_ */

View File

@ -38,8 +38,8 @@
* @(#)swap_pager.h 7.1 (Berkeley) 12/5/90
*/
#ifndef _SWAP_PAGER_
#define _SWAP_PAGER_ 1
#ifndef _VM_SWAP_PAGER_H_
#define _VM_SWAP_PAGER_H_
/*
* In the swap pager, the backing store for an object is organized as an
@ -109,4 +109,4 @@ boolean_t swap_pager_clean();
#endif
#endif /* _SWAP_PAGER_ */
#endif /* !_VM_SWAP_PAGER_H_ */

View File

@ -33,8 +33,9 @@
* @(#)vm.h 7.1 (Berkeley) 5/5/91
*/
#ifndef VM_H
#define VM_H
#ifndef _VM_VM_H_
#define _VM_VM_H_
#include <vm/vm_param.h>
#include <vm/lock.h>
#include <vm/queue.h>
@ -71,4 +72,5 @@ struct vmspace *vmspace_alloc __P((vm_offset_t min, vm_offset_t max,
int pageable));
struct vmspace *vmspace_fork __P((struct vmspace *));
void vmspace_free __P((struct vmspace *));
#endif /* VM_H */
#endif /* !_VM_VM_H_ */

View File

@ -62,13 +62,13 @@
* rights to redistribute these changes.
*/
#ifndef _VM_VM_INHERIT_H_
#define _VM_VM_INHERIT_H_
/*
* Virtual memory map inheritance definitions.
*/
#ifndef _VM_INHERIT_
#define _VM_INHERIT_
/*
* Types defined:
*
@ -88,4 +88,4 @@ typedef int vm_inherit_t; /* might want to change this */
#define VM_INHERIT_DEFAULT VM_INHERIT_COPY
#endif _VM_INHERIT_
#endif /* !_VM_VM_INHERIT_H_ */

View File

@ -62,6 +62,9 @@
* rights to redistribute these changes.
*/
#ifndef _VM_VM_KERN_H_
#define _VM_VM_KERN_H_
/*
* Kernel memory management definitions.
*/
@ -82,3 +85,5 @@ vm_map_t mb_map;
vm_map_t kmem_map;
vm_map_t phys_map;
vm_map_t buffer_map;
#endif /* !_VM_VM_KERN_H_ */

View File

@ -69,13 +69,13 @@
* 15 Aug 92 William Jolitz Prevent running out of map entries...
*/
#ifndef _VM_VM_MAP_H_
#define _VM_VM_MAP_H_
/*
* Virtual memory map module definitions.
*/
#ifndef _VM_MAP_
#define _VM_MAP_
/*
* Types defined:
*
@ -213,4 +213,4 @@ void vm_map_verify_done();
#define MAX_KMAPENT 1000 /* 15 Aug 92*/
#endif /* !OMIT*/
#endif _VM_MAP_
#endif /* !_VM_VM_MAP_H_ */

View File

@ -62,13 +62,13 @@
* rights to redistribute these changes.
*/
#ifndef _VM_VM_OBJECT_H_
#define _VM_VM_OBJECT_H_
/*
* Virtual memory object module definitions.
*/
#ifndef _VM_OBJECT_
#define _VM_OBJECT_
#include <vm/vm_pager.h>
/*
@ -168,4 +168,4 @@ void vm_object_print();
thread_sleep((event), &(object)->Lock, (interruptible))
#endif VM_OBJECT_DEBUG
#endif _VM_OBJECT_
#endif /* !_VM_VM_OBJECT_H_ */

View File

@ -62,13 +62,13 @@
* rights to redistribute these changes.
*/
#ifndef _VM_VM_PAGE_H_
#define _VM_VM_PAGE_H_
/*
* Resident memory system definitions.
*/
#ifndef _VM_PAGE_
#define _VM_PAGE_
/*
* Management of resident (logical) pages.
*
@ -258,4 +258,5 @@ void vm_set_page_size();
#define vm_page_set_modified(m) { (m)->clean = FALSE; }
#endif KERNEL
#endif _VM_PAGE_
#endif /* !_VM_VM_PAGE_H_ */

View File

@ -62,6 +62,9 @@
* rights to redistribute these changes.
*/
#ifndef _VM_VM_PAGEOUT_H_
#define _VM_VM_PAGEOUT_H_
/*
* Header file for pageout daemon.
*/
@ -88,3 +91,5 @@ simple_lock_data_t vm_pages_needed_lock;
thread_sleep((int)&vm_page_free_count, \
&vm_pages_needed_lock, FALSE); \
}
#endif /* !_VM_VM_PAGEOUT_H_ */

View File

@ -38,14 +38,14 @@
* @(#)vm_pager.h 7.2 (Berkeley) 4/20/91
*/
#ifndef _VM_VM_PAGER_H_
#define _VM_VM_PAGER_H_
/*
* Pager routine interface definition.
* For BSD we use a cleaner version of the internal pager interface.
*/
#ifndef _VM_PAGER_
#define _VM_PAGER_
struct pager_struct {
queue_head_t pg_list; /* links for list management */
caddr_t pg_handle; /* external handle (vp, dev, fp) */
@ -103,4 +103,4 @@ void vm_pager_sync();
extern struct pagerops *dfltpagerops;
#endif
#endif /* _VM_PAGER_ */
#endif /* !_VM_VM_PAGER_H_ */

View File

@ -62,13 +62,13 @@
* rights to redistribute these changes.
*/
#ifndef _VM_VM_PARAM_H_
#define _VM_VM_PARAM_H_
/*
* Machine independent virtual memory parameters.
*/
#ifndef _VM_PARAM_
#define _VM_PARAM_
#ifdef KERNEL
#include "machine/vmparam.h"
#else
@ -148,4 +148,4 @@ extern vm_offset_t last_addr; /* last physical page */
#endif ASSEMBLER
#endif _VM_PARAM_
#endif /* !_VM_VM_PARAM_H_ */

View File

@ -62,13 +62,13 @@
* rights to redistribute these changes.
*/
#ifndef _VM_VM_PROT_H_
#define _VM_VM_PROT_H_
/*
* Virtual memory protection definitions.
*/
#ifndef _VM_PROT_
#define _VM_PROT_
/*
* Types defined:
*
@ -99,4 +99,4 @@ typedef int vm_prot_t;
#define VM_PROT_ALL (VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE)
#endif _VM_PROT_
#endif /* !_VM_VM_PROT_H_ */

View File

@ -62,13 +62,13 @@
* rights to redistribute these changes.
*/
#ifndef _VM_VM_STATISTICS_H_
#define _VM_VM_STATISTICS_H_
/*
* Virtual memory statistics structure.
*/
#ifndef _VM_STATISTICS_
#define _VM_STATISTICS_
struct vm_statistics {
long pagesize; /* page size in bytes */
long free_count; /* # of pages free */
@ -105,4 +105,5 @@ struct pmap_statistics {
};
typedef struct pmap_statistics *pmap_statistics_t;
#endif _VM_STATISTICS_
#endif /* !_VM_VM_STATISTICS_H_ */

View File

@ -62,17 +62,17 @@
* rights to redistribute these changes.
*/
#ifndef _VM_VM_USER_H_
#define _VM_VM_USER_H_
/*
* Kernel memory management definitions.
*/
#ifndef _VM_USER_
#define _VM_USER_
int vm_allocate();
int vm_deallocate();
int vm_inherit();
int vm_protect();
int vm_statistics();
#endif _VM_USER_
#endif /* !_VM_VM_USER_H_ */

View File

@ -38,8 +38,8 @@
* @(#)vnode_pager.h 7.1 (Berkeley) 12/5/90
*/
#ifndef _VNODE_PAGER_
#define _VNODE_PAGER_ 1
#ifndef _VM_VNODE_PAGER_H_
#define _VM_VNODE_PAGER_H_
/*
* VNODE pager private data.
@ -75,4 +75,4 @@ struct pagerops vnodepagerops = {
#endif
#endif /* _VNODE_PAGER_ */
#endif /* !_VM_VNODE_PAGER_H_ */