# 2.11BSD#431 - /usr/src/sys/netinet/icmp_var.h

##### Variables

    icmpstat          X

##### Macros

    ICMPCTL_MASKREPL  X
    ICMPCTL_MAXID     X
    ICMPCTL_NAMES     X

##### struct's

    icmpstat          X

       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

- in /usr/src/new/crash/inet.c line 286, 292-298(7), 304-315(10), 321-324(3)
- in /usr/src/sys/netinet/ip_icmp.c line 67, 77, 93, 159, 165, 173, 189, 221, 235, 244, 286-287(2), 293
- in /usr/src/ucb/netstat/inet.c line 301, 307-313(7), 319-330(10), 336-339(3)

#### Defined struct's

icmpstat defined in line 20; used 6 times

- in line 49(2)
- in /usr/src/new/crash/inet.c line 286(2)
- in /usr/src/ucb/netstat/inet.c line 301(2)

#### Defined macros

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

- in /usr/src/bin/sysctl/sysctl.c line 527

ICMPCTL_NAMES defined in line 42; used 1 times

- in /usr/src/bin/sysctl/sysctl.c line 522

#### Usage of this include

icmp_var.h used 5 times

- in /usr/src/bin/sysctl/sysctl.c line 52
- in /usr/src/new/crash/inet.c line 23
- in /usr/src/sys/netinet/ip_icmp.c line 33
- in /usr/src/ucb/PORT/systat/netstat.c line 26
- in /usr/src/ucb/netstat/inet.c line 34

Last modified: 1995-10-10 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1049 |