| 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 | |
| 15 | Permission to use, copy, modify, and distribute this software and its |
| 16 | documentation for any purpose and without fee is hereby granted, |
| 17 | provided that the above copyright notice appear in all copies and that |
| 18 | both that copyright notice and this permission notice appear in |
| 19 | supporting documentation, and that the name of IBM not be |
| 20 | used in advertising or publicity pertaining to distribution of the |
| 21 | software without specific, written prior permission. |
| 22 | |
| 23 | IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING |
| 24 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL |
| 25 | IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR |
| 26 | ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, |
| 27 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, |
| 28 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS |
| 29 | SOFTWARE. |
| 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 */ |
| 39 | struct 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 | |
| 53 | struct 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 | |
| 60 | struct 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 | |
| 69 | struct 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 |
| 85 | struct llinfo_llc llinfo_llc; /* head for linked lists */ |
| 86 | #endif KERNEL |