in_systm.h revision 50477
1193323Sed/* 2193323Sed * Copyright (c) 1982, 1986, 1993 3193323Sed * The Regents of the University of California. All rights reserved. 4193323Sed * 5193323Sed * Redistribution and use in source and binary forms, with or without 6193323Sed * modification, are permitted provided that the following conditions 7193323Sed * are met: 8193323Sed * 1. Redistributions of source code must retain the above copyright 9193323Sed * notice, this list of conditions and the following disclaimer. 10193323Sed * 2. Redistributions in binary form must reproduce the above copyright 11193323Sed * notice, this list of conditions and the following disclaimer in the 12193323Sed * documentation and/or other materials provided with the distribution. 13193323Sed * 3. All advertising materials mentioning features or use of this software 14193323Sed * must display the following acknowledgement: 15193323Sed * This product includes software developed by the University of 16193323Sed * California, Berkeley and its contributors. 17193323Sed * 4. Neither the name of the University nor the names of its contributors 18224145Sdim * may be used to endorse or promote products derived from this software 19193323Sed * without specific prior written permission. 20193323Sed * 21198396Srdivacky * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 22198396Srdivacky * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23198396Srdivacky * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24198396Srdivacky * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25198396Srdivacky * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26198396Srdivacky * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27198396Srdivacky * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28198396Srdivacky * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29198396Srdivacky * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30198396Srdivacky * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31198396Srdivacky * SUCH DAMAGE. 32198396Srdivacky * 33198396Srdivacky * @(#)in_systm.h 8.1 (Berkeley) 6/10/93 34198396Srdivacky * $FreeBSD: head/sys/netinet/in_systm.h 50477 1999-08-28 01:08:13Z peter $ 35193323Sed */ 36193323Sed 37193323Sed#ifndef _NETINET_IN_SYSTM_H_ 38198090Srdivacky#define _NETINET_IN_SYSTM_H_ 39193323Sed 40193323Sed/* 41193323Sed * Miscellaneous internetwork 42198090Srdivacky * definitions for kernel. 43202878Srdivacky */ 44202878Srdivacky 45193323Sed/* 46193323Sed * Network types. 47193323Sed * 48 * Internally the system keeps counters in the headers with the bytes 49 * swapped so that VAX instructions will work on them. It reverses 50 * the bytes before transmission at each protocol level. The n_ types 51 * represent the types with the bytes in ``high-ender'' order. 52 */ 53typedef u_int16_t n_short; /* short as received from the net */ 54typedef u_int32_t n_long; /* long as received from the net */ 55 56typedef u_int32_t n_time; /* ms since 00:00 GMT, byte rev */ 57 58#ifdef KERNEL 59n_time iptime __P((void)); 60#endif 61 62#endif 63