1 /*- 2 * Copyright (c) 1992 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)tuba_table.h 7.2 (Berkeley) 10/09/92 8 */ 9 10 struct tuba_cache { 11 struct radix_node tc_nodes[2]; /* convenient lookup */ 12 int tc_refcnt; 13 int tc_time; /* last looked up */ 14 int tc_flags; 15 #define TCF_PERM 1 16 int tc_index; 17 u_short tc_sum_in; /* for inbound cksum */ 18 u_short tc_sum_out; /* for outbound cksum */ 19 struct iso_addr tc_addr; 20 }; 21 22 #define ICKSUM(a, b) ((a = (b) % 0xffff), (a == 0 ? a = 0xffff : a)) 23 24 #ifdef KERNEL 25 extern struct tuba_cache **tuba_table; 26 struct radix_node_head *tuba_tree; 27 #endif 28