icmpmsg.c
来自「网友张巍提供的tcpip协议栈,是一个成功稳定的以太网接口上的TCP/IP协议程」· C语言 代码 · 共 67 行
C
67 行
/* ICMP message type tables
*/
#include "global.h"
/* ICMP message types */
char *Icmptypes[] = {
"Echo Reply",
NULL,
NULL,
"Unreachable",
"Source Quench",
"Redirect",
NULL,
NULL,
"Echo Request",
NULL,
NULL,
"Time Exceeded",
"Parameter Problem",
"Timestamp",
"Timestamp Reply",
"Information Request",
"Information Reply",
"Address mask request",
"Address mask reply",
"Security Association"
};
/* ICMP unreachable messages */
char *Unreach[] = {
"Network",
"Host",
"Protocol",
"Port",
"Fragmentation",
"Source route",
"Dest net unknown",
"Dest host unknown",
"Source host isolated",
"Net prohibited",
"Host prohibited",
"Net TOS",
"Host TOS",
"Administratively Prohibited"
};
/* ICMP Time exceeded messages */
char *Exceed[] = {
"Time-to-live",
"Fragment reassembly"
};
/* ICMP redirect messages */
char *Redirect[] = {
"Network",
"Host",
"TOS & Network",
"TOS & Host"
};
/* Bad SAID messages */
char *Said_icmp[] = {
"Unknown SAID",
"Authentication failed",
"Decryption failed"
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?