home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / bsd / netinet / in_systm.h < prev    next >
C/C++ Source or Header  |  1993-10-19  |  1KB  |  36 lines

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