xref: /original-bsd/sys/netinet/in_systm.h (revision c3e32dec)
1 /*
2  * Copyright (c) 1982, 1986 Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)in_systm.h	7.5 (Berkeley) 06/04/93
8  */
9 
10 /*
11  * Miscellaneous internetwork
12  * definitions for kernel.
13  */
14 
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 
28 #ifdef KERNEL
29 n_time	 iptime __P((void));
30 #endif
31