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:  *	@(#)icmp_var.h	7.3.2 (2.11BSD GTE) 1995/10/09
  13:  */
  14: 
  15: /*
  16:  * Variables related to this implementation
  17:  * of the internet control message protocol.
  18:  */
  19: 
  20: struct  icmpstat {
  21: /* statistics related to icmp packets generated */
  22:     long    icps_error;     /* # of calls to icmp_error */
  23:     long    icps_oldshort;      /* no error 'cuz old ip too short */
  24:     long    icps_oldicmp;       /* no error 'cuz old was icmp */
  25:     long    icps_outhist[ICMP_MAXTYPE + 1];
  26: /* statistics related to input messages processed */
  27:     long    icps_badcode;       /* icmp_code out of range */
  28:     long    icps_tooshort;      /* packet < ICMP_MINLEN */
  29:     long    icps_checksum;      /* bad checksum */
  30:     long    icps_badlen;        /* calculated bound mismatch */
  31:     long    icps_reflect;       /* number of responses */
  32:     long    icps_inhist[ICMP_MAXTYPE + 1];
  33: };
  34: 
  35: /*
  36:  * Names for ICMP sysctl objects
  37:  */
  38: #define ICMPCTL_MASKREPL    1   /* allow replies to netmask requests */
  39: #define ICMPCTL_MAXID       2
  40: 
  41: #ifndef KERNEL
  42: #define ICMPCTL_NAMES { \
  43:     { 0, 0 }, \
  44:     { "maskrepl", CTLTYPE_INT }, \
  45: }
  46: #endif
  47: 
  48: #ifdef SUPERVISOR
  49: struct  icmpstat icmpstat;
  50: #endif

Defined variables

icmpstat defined in line 49; used 55 times

Defined struct's

icmpstat defined in line 20; used 6 times

Defined macros

ICMPCTL_MASKREPL defined in line 38; never used
ICMPCTL_MAXID defined in line 39; used 1 times
ICMPCTL_NAMES defined in line 42; used 1 times

Usage of this include

Last modified: 1995-10-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 3020
Valid CSS Valid XHTML 1.0 Strict