icmpmsg.c
资源名称:export.zip [点击查看]
上传用户:hepax88
上传日期:2007-01-03
资源大小:1101k
文件大小:1k
源码类别:
TCP/IP协议栈
开发平台:
Visual C++
- /* ICMP message type tables
- * Copyright 1991 Phil Karn, KA9Q
- */
- #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"
- };