1 /* 2 * ICMP MIB group interface - icmp.h 3 * 4 */ 5 #ifndef _MIBGROUP_ICMP_H 6 #define _MIBGROUP_ICMP_H 7 8 #if defined(solaris2) 9 config_require(kernel_sunos5) 10 #elif defined(linux) 11 config_require(mibII/kernel_linux) 12 #elif defined(freebsd4) || defined(openbsd4) || defined(dragonfly2) || \ 13 defined(darwin10) 14 config_require(mibII/kernel_sysctl) 15 #elif defined(netbsd) || defined(netbsdelf) 16 config_require(mibII/kernel_netbsd) 17 #endif 18 19 #include <net-snmp/agent/cache_handler.h> 20 21 extern void init_icmp(void); 22 extern Netsnmp_Node_Handler icmp_handler; 23 extern Netsnmp_Node_Handler icmp_stats_table_handler; 24 extern Netsnmp_Node_Handler icmp_msg_stats_table_handler; 25 extern NetsnmpCacheLoad icmp_load; 26 extern NetsnmpCacheFree icmp_free; 27 28 #define ICMPINMSGS 1 29 #define ICMPINERRORS 2 30 #define ICMPINDESTUNREACHS 3 31 #define ICMPINTIMEEXCDS 4 32 #define ICMPINPARMPROBS 5 33 #define ICMPINSRCQUENCHS 6 34 #define ICMPINREDIRECTS 7 35 #define ICMPINECHOS 8 36 #define ICMPINECHOREPS 9 37 #define ICMPINTIMESTAMPS 10 38 #define ICMPINTIMESTAMPREPS 11 39 #define ICMPINADDRMASKS 12 40 #define ICMPINADDRMASKREPS 13 41 #define ICMPOUTMSGS 14 42 #define ICMPOUTERRORS 15 43 #define ICMPOUTDESTUNREACHS 16 44 #define ICMPOUTTIMEEXCDS 17 45 #define ICMPOUTPARMPROBS 18 46 #define ICMPOUTSRCQUENCHS 19 47 #define ICMPOUTREDIRECTS 20 48 #define ICMPOUTECHOS 21 49 #define ICMPOUTECHOREPS 22 50 #define ICMPOUTTIMESTAMPS 23 51 #define ICMPOUTTIMESTAMPREPS 24 52 #define ICMPOUTADDRMASKS 25 53 #define ICMPOUTADDRMASKREPS 26 54 55 #define ICMPSTATSTABLE 29 56 #define ICMP_STAT_IPVER 1 57 #define ICMP_STAT_INMSG 2 58 #define ICMP_STAT_INERR 3 59 #define ICMP_STAT_OUTMSG 4 60 #define ICMP_STAT_OUTERR 5 61 62 #define ICMPMSGSTATSTABLE 30 63 #define ICMP_MSG_STAT_IPVER 1 64 #define ICMP_MSG_STAT_TYPE 2 65 #define ICMP_MSG_STAT_IN_PKTS 3 66 #define ICMP_MSG_STAT_OUT_PKTS 4 67 68 #endif /* _MIBGROUP_ICMP_H */ 69