home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / bsd / netinet / icmp_var.h < prev    next >
Text File  |  1992-07-29  |  2KB  |  43 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1987 Carnegie-Mellon University
  4.  * All rights reserved.  The CMU software License Agreement specifies
  5.  * the terms and conditions for use and redistribution.
  6. @ 
  7. /*
  8.  * Copyright (c) 1982, 1986 Regents of the University of California.
  9.  * All rights reserved.
  10.  *
  11.  * Redistribution and use in source and binary forms are permitted
  12.  * provided that this notice is preserved and that due credit is given
  13.  * to the University of California at Berkeley. The name of the University
  14.  * may not be used to endorse or promote products derived from this
  15.  * software without specific prior written permission. This software
  16.  * is provided ``as is'' without express or implied warranty.
  17.  *
  18.  *    @(#)icmp_var.h    7.3 (Berkeley) 12/7/87
  19.  */
  20.  
  21. /*
  22.  * Variables related to this implementation
  23.  * of the internet control message protocol.
  24.  */
  25. struct    icmpstat {
  26. /* statistics related to icmp packets generated */
  27.     int    icps_error;        /* # of calls to icmp_error */
  28.     int    icps_oldshort;        /* no error 'cuz old ip too short */
  29.     int    icps_oldicmp;        /* no error 'cuz old was icmp */
  30.     int    icps_outhist[ICMP_MAXTYPE + 1];
  31. /* statistics related to input messages processed */
  32.      int    icps_badcode;        /* icmp_code out of range */
  33.     int    icps_tooshort;        /* packet < ICMP_MINLEN */
  34.     int    icps_checksum;        /* bad checksum */
  35.     int    icps_badlen;        /* calculated bound mismatch */
  36.     int    icps_reflect;        /* number of responses */
  37.     int    icps_inhist[ICMP_MAXTYPE + 1];
  38. };
  39.  
  40. #ifdef KERNEL
  41. struct    icmpstat icmpstat;
  42. #endif
  43.