home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / bsd / netinet / icmp_var.h < prev    next >
C/C++ Source or Header  |  1993-10-19  |  2KB  |  44 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. /*
  9.  * Copyright (c) 1982, 1986 Regents of the University of California.
  10.  * All rights reserved.
  11.  *
  12.  * Redistribution and use in source and binary forms are permitted
  13.  * provided that this notice is preserved and that due credit is given
  14.  * to the University of California at Berkeley. The name of the University
  15.  * may not be used to endorse or promote products derived from this
  16.  * software without specific prior written permission. This software
  17.  * is provided ``as is'' without express or implied warranty.
  18.  *
  19.  *    @(#)icmp_var.h    7.3 (Berkeley) 12/7/87
  20.  */
  21.  
  22. /*
  23.  * Variables related to this implementation
  24.  * of the internet control message protocol.
  25.  */
  26. struct    icmpstat {
  27. /* statistics related to icmp packets generated */
  28.     int    icps_error;        /* # of calls to icmp_error */
  29.     int    icps_oldshort;        /* no error 'cuz old ip too short */
  30.     int    icps_oldicmp;        /* no error 'cuz old was icmp */
  31.     int    icps_outhist[ICMP_MAXTYPE + 1];
  32. /* statistics related to input messages processed */
  33.      int    icps_badcode;        /* icmp_code out of range */
  34.     int    icps_tooshort;        /* packet < ICMP_MINLEN */
  35.     int    icps_checksum;        /* bad checksum */
  36.     int    icps_badlen;        /* calculated bound mismatch */
  37.     int    icps_reflect;        /* number of responses */
  38.     int    icps_inhist[ICMP_MAXTYPE + 1];
  39. };
  40.  
  41. #ifdef KERNEL
  42. struct    icmpstat icmpstat;
  43. #endif
  44.