35#ifndef _NETINET_ICMP_VAR_H_
36#define _NETINET_ICMP_VAR_H_
62#include <sys/counter.h>
69#define ICMPSTAT_ADD(name, val) \
70 VNET_PCPUSTAT_ADD(struct icmpstat, icmpstat, name, (val))
71#define ICMPSTAT_INC(name) ICMPSTAT_ADD(name, 1)
77#define KMOD_ICMPSTAT_INC(name) \
78 kmod_icmpstat_inc(offsetof(struct icmpstat, name) / sizeof(uint64_t))
84#define ICMPCTL_MASKREPL 1
85#define ICMPCTL_STATS 2
86#define ICMPCTL_ICMPLIM 3
92#define BANDLIM_UNLIMITED -1
93#define BANDLIM_ICMP_UNREACH 0
94#define BANDLIM_ICMP_ECHO 1
95#define BANDLIM_ICMP_TSTAMP 2
96#define BANDLIM_RST_CLOSEDPORT 3
97#define BANDLIM_RST_OPENPORT 4
98#define BANDLIM_ICMP6_UNREACH 5
99#define BANDLIM_SCTP_OOTB 6
VNET_PCPUSTAT_DECLARE(struct icmpstat, icmpstat)
SYSCTL_DECL(_net_inet_icmp)
void kmod_icmpstat_inc(int statnum)
u_long icps_inhist[ICMP_MAXTYPE+1]
u_long icps_outhist[ICMP_MAXTYPE+1]