/* if_hy.h 4.2 83/02/21 */
* Network Systems Corporation Hyperchannel
#define HYRSIZE 37 /* max number of adapters in routing tables */
struct timeval hyr_lasttime
; /* last update time */
u_short hyr_flags
; /* status flags - see below */
u_short hyr_key
; /* desired address */
* direct entry (can get there directly)
u_short hyru_dst
; /* adapter number & port */
u_short hyru_ctl
; /* trunks to try */
u_short hyru_access
; /* access code (mostly unused) */
#define hyr_dst hyr_u.hyr_d.hyru_dst
#define hyr_ctl hyr_u.hyr_d.hyru_ctl
#define hyr_access hyr_u.hyr_d.hyru_access
* indirect entry (one or more hops required)
u_char hyru_pgate
; /* 1st gateway slot */
u_char hyru_egate
; /* # gateways */
u_char hyru_nextgate
; /* gateway to use next */
#define hyr_pgate hyr_u.hyr_i.hyru_pgate
#define hyr_egate hyr_u.hyr_i.hyru_egate
#define hyr_nextgate hyr_u.hyr_i.hyru_nextgate
struct hyroute hy_route
[NHY
];
#define HYR_INUSE 0x01 /* entry in use */
#define HYR_DIR 0x02 /* direct entry */
#define HYR_GATE 0x04 /* gateway entry */
#define HYRHASH(x) (((x) ^ ((x) >> 16)) % HYRSIZE)
#define HYSETROUTE _IOW(H, 0x80, sizeof (struct hyroute))
#define HYGETROUTE _IOR(H, 0x81, sizeof (struct hyroute))