1 /* 2 * Copyright (c) 1982 Regents of the University of California. 3 * All rights reserved. The Berkeley software License Agreement 4 * specifies the terms and conditions for redistribution. 5 * 6 * @(#)in_systm.h 6.2 (Berkeley) 06/08/85 7 */ 8 9 /* 10 * Miscellaneous internetwork 11 * definitions for kernel. 12 */ 13 14 #ifndef LOCORE 15 /* 16 * Network types. 17 * 18 * Internally the system keeps counters in the headers with the bytes 19 * swapped so that VAX instructions will work on them. It reverses 20 * the bytes before transmission at each protocol level. The n_ types 21 * represent the types with the bytes in ``high-ender'' order. 22 */ 23 typedef u_short n_short; /* short as received from the net */ 24 typedef u_long n_long; /* long as received from the net */ 25 26 typedef u_long n_time; /* ms since 00:00 GMT, byte rev */ 27 #endif 28 29 #ifndef LOCORE 30 #ifdef KERNEL 31 n_time iptime(); 32 #endif 33 #endif 34