1 #ifndef __LIB_ICMP_TYPE_INCLUDE_H__ 2 #define __LIB_ICMP_TYPE_INCLUDE_H__ 4 #define ICMP_TYPE_ECHOREPLY 0 5 #define ICMP_TYPE_ECHO 8 7 #define ICMP_CODE_EXTRA 16 27 #define ICMP_MIN_PACKET 32 28 #define ICMP_MAX_PACKET 1024 42 #define ICMP_STATUS_INIT 0 43 #define ICMP_STATUS_OK 1 44 #define ICMP_STATUS_UNREACH (1<<1) 45 #define ICMP_STATUS_TIMEOUT (1<<2)
void(* stat_unreach)(ICMP_PKT_STATUS *, void *)
struct ICMP_CHAT ICMP_CHAT
void(* stat_finish)(ICMP_HOST *, void *)
struct ICMP_STREAM ICMP_STREAM
void(* stat_timeout)(ICMP_PKT_STATUS *, void *)
void(* stat_respond)(ICMP_PKT_STATUS *, void *)