Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

IN_SYSTM.H

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1982, 1986, 1993
00003  *      The Regents of the University of California.  All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  * 1. Redistributions of source code must retain the above copyright
00009  *    notice, this list of conditions and the following disclaimer.
00010  * 2. Redistributions in binary form must reproduce the above copyright
00011  *    notice, this list of conditions and the following disclaimer in the
00012  *    documentation and/or other materials provided with the distribution.
00013  * 3. All advertising materials mentioning features or use of this software
00014  *    must display the following acknowledgement:
00015  *      This product includes software developed by the University of
00016  *      California, Berkeley and its contributors.
00017  * 4. Neither the name of the University nor the names of its contributors
00018  *    may be used to endorse or promote products derived from this software
00019  *    without specific prior written permission.
00020  *
00021  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
00022  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00023  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00024  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
00025  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00026  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00027  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00028  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00029  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00030  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00031  * SUCH DAMAGE.
00032  *
00033  *      @(#)in_systm.h  8.1 (Berkeley) 6/10/93
00034  */
00035 
00036 /*
00037  * Miscellaneous internetwork
00038  * definitions for kernel.
00039  */
00040 
00041 /*
00042  * Network types.
00043  *
00044  * Internally the system keeps counters in the headers with the bytes
00045  * swapped so that VAX instructions will work on them.  It reverses
00046  * the bytes before transmission at each protocol level.  The n_ types
00047  * represent the types with the bytes in ``high-ender'' order.
00048  */
00049 typedef u_short n_short;                /* short as received from the net */
00050 typedef u_int   n_long;                 /* long as received from the net */
00051 
00052 typedef u_int   n_time;                 /* ms since 00:00 GMT, byte rev */
00053 
00054 #ifdef KERNEL
00055 n_time   iptime __P((void));
00056 #endif
00057 
00058 #ifndef _SA_FAMILY_T
00059 #define _SA_FAMILY_T
00060 typedef unsigned short  sa_family_t;
00061 #endif
00062 

Generated on Sun May 14 14:51:20 2006 by  doxygen 1.4.2