File: codes.h

package info (click to toggle)
sing 1.1-13etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 2,480 kB
  • ctags: 2,092
  • sloc: ansic: 20,745; sh: 4,857; makefile: 718; yacc: 234; lex: 203
file content (58 lines) | stat: -rw-r--r-- 1,809 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/******************************************************/
/* Codes of ICMP error types.                         */
/******************************************************/
/* $Id: codes.h,v 1.1.1.1 2000/06/19 09:08:07 slay Exp $ */
/******************************************************/

#ifndef __CODES_H__
#define __CODES_H__

/******************/
/* Redirect codes */
/******************/
char *cod_redirect[]={ "net",
                       "host",
                       "serv-net",
                       "serv-host",
                       "max"
                     };

/***********************/
/* Time Exceeded codes */
/***********************/
char *cod_time[]={ "ttl",
                   "frag",
                   "max"
                 };

/****************************/
/* Time Exceeded long codes */
/****************************/
char *long_cod_time[]={"Time To Live Exceeded",
                       "Reassembly Time Exceeded",
                       "max"
                      };

/*****************************/
/* Destination Unreach codes */
/*****************************/                                      
char *cod_unreach[]={ "net-unreach",
                      "host-unreach",
                      "prot-unreach",
                      "port-unreach",
                      "frag-needed",
                      "sroute-fail",
                      "net-unknown",
                      "host-unknown",
                      "host-isolated",
                      "net-ano",
                      "host-ano",
                      "net-unr-tos", 
                      "host-unr-tos", 
                      "com-admin-prohib",
                      "host-precedence-viol",
                      "precedence-cutoff",
                      "max"
                    };

#endif