icmp.h

来自「Network Stats using PSSDK」· C头文件 代码 · 共 19 行

H
19
字号
#ifndef __ICMP_H__
#define __ICMP_H__

#define ICMP_ECHO         8
#define ICMP_ECHOREPLY    0

#define ICMP_MIN          8              // minimum 8 byte icmp packet (just header)

typedef struct _ICMP_HEADER
 {
   unsigned char  IcmpType;
   unsigned char  IcmpCode;              // Type sub code 
   unsigned short IcmpChecksum;
   unsigned short IcmpId;
   unsigned short IcmpSeq;
   unsigned long  IcmpTimestamp;         // Not standard field in header, but reserved nonetheless
 }ICMP_HEADER, *PICMP_HEADER;

#endif //__ICMP_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?