📄 icmp.h
字号:
/* * ICMP Header File */#ifndef _ICMP_H#define _ICMP_H#define ICMP_ECHO_REQ_TYPE 8 /* ping req type */#define ICMP_ECHO_CODE 0 /* ping req/reply code */#define ICMP_ECHO_REPLY_TYPE 0 /* ping reply type */#define IP_PROTO_ICMP 1 /* protocol field in IP header */ #define ICMP_HDR_LEN 8 /* icmp hdr len */// icmp header structurestruct xilnet_icmp_hdr { unsigned char type; unsigned char code; unsigned short check_sum; unsigned short ident; unsigned short seq_no;};#endif /* _ICMP_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -