icmp.h
来自「实用的程序代码」· C头文件 代码 · 共 25 行
H
25 行
/* * 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 + =
减小字号Ctrl + -
显示快捷键?