1 /* 2 * Copyright (c) 1982, 1986, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)icmp_var.h 8.1 (Berkeley) 06/10/93 8 */ 9 10 /* 11 * Variables related to this implementation 12 * of the internet control message protocol. 13 */ 14 struct icmpstat { 15 /* statistics related to icmp packets generated */ 16 u_long icps_error; /* # of calls to icmp_error */ 17 u_long icps_oldshort; /* no error 'cuz old ip too short */ 18 u_long icps_oldicmp; /* no error 'cuz old was icmp */ 19 u_long icps_outhist[ICMP_MAXTYPE + 1]; 20 /* statistics related to input messages processed */ 21 u_long icps_badcode; /* icmp_code out of range */ 22 u_long icps_tooshort; /* packet < ICMP_MINLEN */ 23 u_long icps_checksum; /* bad checksum */ 24 u_long icps_badlen; /* calculated bound mismatch */ 25 u_long icps_reflect; /* number of responses */ 26 u_long icps_inhist[ICMP_MAXTYPE + 1]; 27 }; 28 29 /* 30 * Names for ICMP sysctl objects 31 */ 32 #define ICMPCTL_MASKREPL 1 /* allow replies to netmask requests */ 33 #define ICMPCTL_MAXID 2 34 35 #define ICMPCTL_NAMES { \ 36 { 0, 0 }, \ 37 { "maskrepl", CTLTYPE_INT }, \ 38 } 39 40 #ifdef KERNEL 41 struct icmpstat icmpstat; 42 #endif 43