home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / netinet / h / icmp_var next >
Encoding:
Text File  |  1995-01-11  |  1.6 KB  |  48 lines

  1. /*
  2.  * $Header: /ax/networking:include/netinet/icmp_var.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/netinet/icmp_var.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    icmp_var.h,v $
  8.  * Revision 1.1  95/01/11  10:16:48  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.3  88/06/17  20:25:51  beta
  12.  * Acorn Unix initial beta version
  13.  * 
  14.  */
  15. /* @(#)icmp_var.h       1.1 87/06/30 3.2/4.3NFSSRC +KDR BSD fixes 7.2 */
  16. /*
  17.  * Copyright (c) 1982, 1986 Regents of the University of California.
  18.  * All rights reserved.  The Berkeley software License Agreement
  19.  * specifies the terms and conditions for redistribution.
  20.  *
  21.  *      @(#)icmp_var.h  7.2 (Berkeley) 1/13/87
  22.  */
  23.  
  24. /*
  25.  * Variables related to this implementation
  26.  * of the internet control message protocol.
  27.  */
  28. struct  icmpstat {
  29. /* statistics related to icmp packets generated */
  30.         int     icps_error;             /* # of calls to icmp_error */
  31.         int     icps_oldshort;          /* no error 'cuz old ip too short */
  32.         int     icps_oldicmp;           /* no error 'cuz old was icmp */
  33.         int     icps_outhist[ICMP_MAXTYPE + 1];
  34. /* statistics related to input messages processed */
  35.         int     icps_badcode;           /* icmp_code out of range */
  36.         int     icps_tooshort;          /* packet < ICMP_MINLEN */
  37.         int     icps_checksum;          /* bad checksum */
  38.         int     icps_badlen;            /* calculated bound mismatch */
  39.         int     icps_reflect;           /* number of responses */
  40.         int     icps_inhist[ICMP_MAXTYPE + 1];
  41. };
  42.  
  43. #ifdef KERNEL
  44. struct  icmpstat icmpstat;
  45. #endif
  46.  
  47. /* EOF icmp_var.h */
  48.