in_systm.h revision 36735
1196938Strasz/* 2196938Strasz * Copyright (c) 1982, 1986, 1993 3196938Strasz * The Regents of the University of California. All rights reserved. 4196938Strasz * 5196938Strasz * Redistribution and use in source and binary forms, with or without 6196938Strasz * modification, are permitted provided that the following conditions 7196938Strasz * are met: 8196938Strasz * 1. Redistributions of source code must retain the above copyright 9196938Strasz * notice, this list of conditions and the following disclaimer. 10196938Strasz * 2. Redistributions in binary form must reproduce the above copyright 11196938Strasz * notice, this list of conditions and the following disclaimer in the 12196938Strasz * documentation and/or other materials provided with the distribution. 13196938Strasz * 3. All advertising materials mentioning features or use of this software 14196938Strasz * must display the following acknowledgement: 15196938Strasz * This product includes software developed by the University of 16196938Strasz * California, Berkeley and its contributors. 17196938Strasz * 4. Neither the name of the University nor the names of its contributors 18196938Strasz * may be used to endorse or promote products derived from this software 19196938Strasz * without specific prior written permission. 20196938Strasz * 21196938Strasz * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22196938Strasz * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23196938Strasz * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24196938Strasz * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25196938Strasz * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26196938Strasz * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27196938Strasz * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28196938Strasz * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29196938Strasz * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30196938Strasz * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31196938Strasz * SUCH DAMAGE. 32196938Strasz * 33196938Strasz * @(#)in_systm.h 8.1 (Berkeley) 6/10/93 34196938Strasz * $Id: in_systm.h,v 1.5 1997/02/22 09:41:30 peter Exp $ 35196938Strasz */ 36196938Strasz 37196938Strasz#ifndef _NETINET_IN_SYSTM_H_ 38196938Strasz#define _NETINET_IN_SYSTM_H_ 39196938Strasz 40196938Strasz/* 41196938Strasz * Miscellaneous internetwork 42196938Strasz * definitions for kernel. 43196938Strasz */ 44196938Strasz 45196938Strasz/* 46196938Strasz * Network types. 47196938Strasz * 48196938Strasz * Internally the system keeps counters in the headers with the bytes 49196938Strasz * swapped so that VAX instructions will work on them. It reverses 50196938Strasz * the bytes before transmission at each protocol level. The n_ types 51196938Strasz * represent the types with the bytes in ``high-ender'' order. 52196938Strasz */ 53196938Strasztypedef u_short n_short; /* short as received from the net */ 54196938Strasz 55196938Strasz#ifdef __alpha__ 56196938Strasz 57196938Strasztypedef u_int n_long; /* long as received from the net */ 58196938Strasz 59196938Strasztypedef u_int n_time; /* ms since 00:00 GMT, byte rev */ 60196938Strasz 61196938Strasz#else 62196938Strasz 63196938Strasztypedef u_long n_long; /* long as received from the net */ 64196938Strasz 65196938Strasztypedef u_long n_time; /* ms since 00:00 GMT, byte rev */ 66196938Strasz 67196938Strasz#endif 68196938Strasz 69196938Strasz#ifdef KERNEL 70196938Straszn_time iptime __P((void)); 71196938Strasz#endif 72196938Strasz 73196938Strasz#endif 74196938Strasz