exit on end-of-file if file shorter than a screen, regardless
[unix-history] / usr / src / sys / netiso / iso_var.h
CommitLineData
d8b9f99a
KS
1/***********************************************************
2 Copyright IBM Corporation 1987
3
4 All Rights Reserved
5
6Permission to use, copy, modify, and distribute this software and its
7documentation for any purpose and without fee is hereby granted,
8provided that the above copyright notice appear in all copies and that
9both that copyright notice and this permission notice appear in
10supporting documentation, and that the name of IBM not be
11used in advertising or publicity pertaining to distribution of the
12software without specific, written prior permission.
13
14IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
15ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
16IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
17ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
18WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
19ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20SOFTWARE.
21
22******************************************************************/
23
24/*
25 * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
26 */
27/* $Header: iso_var.h,v 4.2 88/06/29 15:00:08 hagens Exp $ */
28/* $Source: /usr/argo/sys/netiso/RCS/iso_var.h,v $ */
29
30/*
31 * Interface address, iso version. One of these structures is
32 * allocated for each interface with an osi address. The ifaddr
33 * structure conatins the protocol-independent part
34 * of the structure, and is assumed to be first.
35 */
36struct iso_ifaddr {
37 struct ifaddr ia_ifa; /* protocol-independent info */
38 int ia_flags;
39 struct iso_ifaddr *ia_next; /* next in list of iso addresses */
40};
41#define ia_ifp ia_ifa.ifa_ifp
42#ifndef ia_addr
43#define ia_addr ia_ifa.ifa_addr
44#endif ia_addr
45
46/*
47 * Given a pointer to an iso_ifaddr (ifaddr),
48 * return a pointer to the addr as a sockaddr_iso
49 */
50#define IA_SIS(ia)\
51 ((struct sockaddr_iso *)(&((struct iso_ifaddr *)ia)->ia_addr))
52
53#ifndef IFA_ROUTE
54#define IFA_ROUTE 0x01 /* routing entry installed */
55#endif IFA_ROUTE
56
57#ifdef KERNEL
58struct iso_ifaddr *iso_ifaddr; /* linked list of iso address ifaces */
59struct ifqueue clnlintrq; /* clnl packet input queue */
60#endif KERNEL