home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / stack16 / netinet / in_systm.h < prev    next >
Text File  |  1999-05-11  |  1KB  |  40 lines

  1. #ifndef __IN_SYSTM_32H
  2. #define __IN_SYSTM_32H
  3. /*
  4.  * Copyright (c) 1982, 1986 Regents of the University of California.
  5.  * All rights reserved.
  6.  *
  7.  * Redistribution and use in source and binary forms are permitted
  8.  * provided that this notice is preserved and that due credit is given
  9.  * to the University of California at Berkeley. The name of the University
  10.  * may not be used to endorse or promote products derived from this
  11.  * software without specific prior written permission. This software
  12.  * is provided ``as is'' without express or implied warranty.
  13.  *
  14.  *      @(#)in_systm.h  7.2 (Berkeley) 12/7/87
  15.  */
  16.  
  17. /*
  18.  * Miscellaneous internetwork
  19.  * definitions for kernel.
  20.  */
  21.  
  22. /*
  23.  * Network types.
  24.  *
  25.  * Internally the system keeps counters in the headers with the bytes
  26.  * swapped so that VAX instructions will work on them.  It reverses
  27.  * the bytes before transmission at each protocol level.  The n_ types
  28.  * represent the types with the bytes in ``high-ender'' order.
  29.  */
  30. typedef u_short n_short;                /* short as received from the net */
  31. typedef u_long  n_long;                 /* long as received from the net */
  32.  
  33. typedef u_long  n_time;                 /* ms since 00:00 GMT, byte rev */
  34.  
  35. #ifdef KERNEL
  36. n_time  iptime();
  37. #endif
  38.  
  39. #endif /* __IN_SYSTM_32H  */
  40.