xref: /csrg-svn/sys/netinet/in_systm.h (revision 29140)
123180Smckusick /*
2*29140Smckusick  * Copyright (c) 1982, 1986 Regents of the University of California.
323180Smckusick  * All rights reserved.  The Berkeley software License Agreement
423180Smckusick  * specifies the terms and conditions for redistribution.
523180Smckusick  *
6*29140Smckusick  *	@(#)in_systm.h	7.1 (Berkeley) 06/05/86
723180Smckusick  */
84806Swnj 
94806Swnj /*
104806Swnj  * Miscellaneous internetwork
114806Swnj  * definitions for kernel.
124806Swnj  */
134806Swnj 
144806Swnj /*
154806Swnj  * Network types.
164806Swnj  *
174806Swnj  * Internally the system keeps counters in the headers with the bytes
184806Swnj  * swapped so that VAX instructions will work on them.  It reverses
194806Swnj  * the bytes before transmission at each protocol level.  The n_ types
204806Swnj  * represent the types with the bytes in ``high-ender'' order.
214806Swnj  */
224806Swnj typedef u_short n_short;		/* short as received from the net */
234806Swnj typedef u_long	n_long;			/* long as received from the net */
244806Swnj 
254806Swnj typedef	u_long	n_time;			/* ms since 00:00 GMT, byte rev */
264806Swnj 
276263Swnj #ifdef KERNEL
284923Swnj n_time	iptime();
294806Swnj #endif
30