home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / network / src_1218.zip / ICMPMSG.C < prev    next >
C/C++ Source or Header  |  1991-07-22  |  968b  |  59 lines

  1. /* ICMP message type tables
  2.  * Copyright 1991 Phil Karn, KA9Q
  3.  */
  4.  
  5. #include "global.h"
  6.  
  7. /* ICMP message types */
  8. char *Icmptypes[] = {
  9.     "Echo Reply",
  10.     NULLCHAR,
  11.     NULLCHAR,
  12.     "Unreachable",
  13.     "Source Quench",
  14.     "Redirect",
  15.     NULLCHAR,
  16.     NULLCHAR,
  17.     "Echo Request",
  18.     NULLCHAR,
  19.     NULLCHAR,
  20.     "Time Exceeded",
  21.     "Parameter Problem",
  22.     "Timestamp",
  23.     "Timestamp Reply",
  24.     "Information Request",
  25.     "Information Reply"
  26. };
  27.  
  28. /* ICMP unreachable messages */
  29. char *Unreach[] = {
  30.     "Network",
  31.     "Host",
  32.     "Protocol",
  33.     "Port",
  34.     "Fragmentation",
  35.         "Source route",
  36.     "Dest net unknown",
  37.     "Dest host unknown",
  38.     "Source host isolated",
  39.     "Net prohibited",
  40.     "Host prohibited",
  41.     "Net TOS",
  42.     "Host TOS",
  43.     "Administratively Prohibited"
  44. };
  45. /* ICMP Time exceeded messages */
  46. char *Exceed[] = {
  47.     "Time-to-live",
  48.     "Fragment reassembly"
  49. };
  50.  
  51. /* ICMP redirect messages */
  52. char *Redirect[] = {
  53.     "Network",
  54.     "Host",
  55.     "TOS & Network",
  56.     "TOS & Host"
  57. };
  58.  
  59.