only delete space used by inode, on inode deletion; required
[unix-history] / usr / src / sys / netiso / iso_snpac.h
... / ...
CommitLineData
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 *
7 * @(#)iso_snpac.h 7.8 (Berkeley) %G%
8 */
9
10/***********************************************************
11 Copyright IBM Corporation 1987
12
13 All Rights Reserved
14
15Permission to use, copy, modify, and distribute this software and its
16documentation for any purpose and without fee is hereby granted,
17provided that the above copyright notice appear in all copies and that
18both that copyright notice and this permission notice appear in
19supporting documentation, and that the name of IBM not be
20used in advertising or publicity pertaining to distribution of the
21software without specific, written prior permission.
22
23IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
24ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
25IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
26ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
27WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
28ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
29SOFTWARE.
30
31******************************************************************/
32
33/*
34 * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
35 */
36
37#define MAX_SNPALEN 8 /* curiously equal to sizeof x.121 (
38 plus 1 for nibble len) addr */
39struct snpa_req {
40 struct iso_addr sr_isoa; /* nsap address */
41 u_char sr_len; /* length of snpa */
42 u_char sr_snpa[MAX_SNPALEN]; /* snpa associated
43 with nsap address */
44 u_char sr_flags; /* true if entry is valid */
45 u_short sr_ht; /* holding time */
46};
47
48#define SNPA_VALID 0x01
49#define SNPA_ES 0x02
50#define SNPA_IS 0x04
51#define SNPA_PERM 0x10
52
53struct systype_req {
54 short sr_holdt; /* holding timer */
55 short sr_configt; /* configuration timer */
56 short sr_esconfigt; /* suggested ES configuration timer */
57 char sr_type; /* SNPA_ES or SNPA_IS */
58};
59
60struct esis_req {
61 short er_ht; /* holding time */
62 u_char er_flags; /* type and validity */
63};
64/*
65 * Space for this structure gets added onto the end of a route
66 * going to an ethernet or other 802.[45x] device.
67 */
68
69struct llinfo_llc {
70 struct llinfo_llc *lc_next; /* keep all llc routes linked */
71 struct llinfo_llc *lc_prev; /* keep all llc routes linked */
72 struct rtentry *lc_rt; /* backpointer to route */
73 struct esis_req lc_er; /* holding time, etc */
74#define lc_ht lc_er.er_ht
75#define lc_flags lc_er.er_flags
76};
77
78
79/* ISO arp IOCTL data structures */
80
81#define SIOCSSTYPE _IOW('a', 39, struct systype_req) /* set system type */
82#define SIOCGSTYPE _IOR('a', 40, struct systype_req) /* get system type */
83
84#ifdef KERNEL
85struct llinfo_llc llinfo_llc; /* head for linked lists */
86#endif KERNEL