156482Ssklower /*- 2*56484Ssklower * Copyright (c) 1992 The Regents of the University of California. 356482Ssklower * All rights reserved. 456482Ssklower * 556482Ssklower * %sccs.include.redist.c% 656482Ssklower * 7*56484Ssklower * @(#)tuba_table.h 7.2 (Berkeley) 10/09/92 856482Ssklower */ 956482Ssklower 1056482Ssklower struct tuba_cache { 1156482Ssklower struct radix_node tc_nodes[2]; /* convenient lookup */ 1256482Ssklower int tc_refcnt; 1356482Ssklower int tc_time; /* last looked up */ 1456482Ssklower int tc_flags; 1556482Ssklower #define TCF_PERM 1 1656482Ssklower int tc_index; 1756482Ssklower u_short tc_sum_in; /* for inbound cksum */ 1856482Ssklower u_short tc_sum_out; /* for outbound cksum */ 1956482Ssklower struct iso_addr tc_addr; 2056482Ssklower }; 2156482Ssklower 2256482Ssklower #define ICKSUM(a, b) ((a = (b) % 0xffff), (a == 0 ? a = 0xffff : a)) 2356482Ssklower 2456482Ssklower #ifdef KERNEL 2556482Ssklower extern struct tuba_cache **tuba_table; 2656482Ssklower struct radix_node_head *tuba_tree; 2756482Ssklower #endif 28