in_systm.h revision 37620
1187692Snwhitehorn/* 2187692Snwhitehorn * Copyright (c) 1982, 1986, 1993 3187692Snwhitehorn * The Regents of the University of California. All rights reserved. 4187692Snwhitehorn * 5187692Snwhitehorn * Redistribution and use in source and binary forms, with or without 6187692Snwhitehorn * modification, are permitted provided that the following conditions 7187692Snwhitehorn * are met: 8187692Snwhitehorn * 1. Redistributions of source code must retain the above copyright 9187692Snwhitehorn * notice, this list of conditions and the following disclaimer. 10187692Snwhitehorn * 2. Redistributions in binary form must reproduce the above copyright 11187692Snwhitehorn * notice, this list of conditions and the following disclaimer in the 12187692Snwhitehorn * documentation and/or other materials provided with the distribution. 13187692Snwhitehorn * 3. All advertising materials mentioning features or use of this software 14187692Snwhitehorn * must display the following acknowledgement: 15187692Snwhitehorn * This product includes software developed by the University of 16187692Snwhitehorn * California, Berkeley and its contributors. 17187692Snwhitehorn * 4. Neither the name of the University nor the names of its contributors 18187692Snwhitehorn * may be used to endorse or promote products derived from this software 19187692Snwhitehorn * without specific prior written permission. 20187692Snwhitehorn * 21187692Snwhitehorn * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22187692Snwhitehorn * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23187692Snwhitehorn * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24187692Snwhitehorn * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25187692Snwhitehorn * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26187692Snwhitehorn * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27187692Snwhitehorn * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28187692Snwhitehorn * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29187692Snwhitehorn * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30187692Snwhitehorn * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31187692Snwhitehorn * SUCH DAMAGE. 32187692Snwhitehorn * 33187692Snwhitehorn * @(#)in_systm.h 8.1 (Berkeley) 6/10/93 34187692Snwhitehorn * $Id: in_systm.h,v 1.6 1998/06/07 17:12:14 dfr Exp $ 35187692Snwhitehorn */ 36187692Snwhitehorn 37187692Snwhitehorn#ifndef _NETINET_IN_SYSTM_H_ 38187692Snwhitehorn#define _NETINET_IN_SYSTM_H_ 39187692Snwhitehorn 40187692Snwhitehorn/* 41187692Snwhitehorn * Miscellaneous internetwork 42187692Snwhitehorn * definitions for kernel. 43187692Snwhitehorn */ 44187692Snwhitehorn 45187692Snwhitehorn/* 46193640Sariff * Network types. 47193640Sariff * 48193640Sariff * Internally the system keeps counters in the headers with the bytes 49193640Sariff * swapped so that VAX instructions will work on them. It reverses 50193640Sariff * the bytes before transmission at each protocol level. The n_ types 51187692Snwhitehorn * represent the types with the bytes in ``high-ender'' order. 52187692Snwhitehorn */ 53193640Sarifftypedef u_int16_t n_short; /* short as received from the net */ 54187692Snwhitehorntypedef u_int32_t n_long; /* long as received from the net */ 55187692Snwhitehorn 56187692Snwhitehorntypedef u_int32_t n_time; /* ms since 00:00 GMT, byte rev */ 57187692Snwhitehorn 58187692Snwhitehorn#ifdef KERNEL 59187692Snwhitehornn_time iptime __P((void)); 60187692Snwhitehorn#endif 61187692Snwhitehorn 62187692Snwhitehorn#endif 63187692Snwhitehorn