123171Smckusick /* 229133Smckusick * Copyright (c) 1982, 1986 Regents of the University of California. 323171Smckusick * All rights reserved. The Berkeley software License Agreement 423171Smckusick * specifies the terms and conditions for redistribution. 523171Smckusick * 6*30382Skarels * @(#)icmp_var.h 7.2 (Berkeley) 01/13/87 723171Smckusick */ 811530Ssam 911530Ssam /* 1011530Ssam * Variables related to this implementation 1111530Ssam * of the internet control message protocol. 1211530Ssam */ 1311530Ssam struct icmpstat { 1411530Ssam /* statistics related to icmp packets generated */ 1511530Ssam int icps_error; /* # of calls to icmp_error */ 1611530Ssam int icps_oldshort; /* no error 'cuz old ip too short */ 1711530Ssam int icps_oldicmp; /* no error 'cuz old was icmp */ 18*30382Skarels int icps_outhist[ICMP_MAXTYPE + 1]; 1911530Ssam /* statistics related to input messages processed */ 2015028Smckusick int icps_badcode; /* icmp_code out of range */ 2111530Ssam int icps_tooshort; /* packet < ICMP_MINLEN */ 2211530Ssam int icps_checksum; /* bad checksum */ 2311530Ssam int icps_badlen; /* calculated bound mismatch */ 2411530Ssam int icps_reflect; /* number of responses */ 25*30382Skarels int icps_inhist[ICMP_MAXTYPE + 1]; 2611530Ssam }; 2711530Ssam 2811530Ssam #ifdef KERNEL 2911531Ssam struct icmpstat icmpstat; 3011530Ssam #endif 31