source: trunk/minix/include/net/gen/icmp.h@ 19

Last change on this file since 19 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.4 KB
Line 
1/*
2server/ip/gen/icmp.h
3*/
4
5#ifndef __SERVER__IP__GEN__ICMP_H__
6#define __SERVER__IP__GEN__ICMP_H__
7
8#define ICMP_MIN_HDR_SIZE 4
9
10#define ICMP_TYPE_ECHO_REPL 0
11#define ICMP_TYPE_DST_UNRCH 3
12# define ICMP_NET_UNRCH 0
13# define ICMP_HOST_UNRCH 1
14# define ICMP_PROTOCOL_UNRCH 2
15# define ICMP_PORT_UNRCH 3
16# define ICMP_FRAGM_AND_DF 4
17# define ICMP_SOURCE_ROUTE_FAILED 5
18#define ICMP_TYPE_SRC_QUENCH 4
19#define ICMP_TYPE_REDIRECT 5
20# define ICMP_REDIRECT_NET 0
21# define ICMP_REDIRECT_HOST 1
22# define ICMP_REDIRECT_TOS_AND_NET 2
23# define ICMP_REDIRECT_TOS_AND_HOST 3
24#define ICMP_TYPE_ECHO_REQ 8
25#define ICMP_TYPE_ROUTER_ADVER 9
26#define ICMP_TYPE_ROUTE_SOL 10
27#define ICMP_TYPE_TIME_EXCEEDED 11
28# define ICMP_TTL_EXC 0
29# define ICMP_FRAG_REASSEM 1
30#define ICMP_TYPE_PARAM_PROBLEM 12
31#define ICMP_TYPE_TS_REQ 13
32#define ICMP_TYPE_TS_REPL 14
33#define ICMP_TYPE_INFO_REQ 15
34#define ICMP_TYPE_INFO_REPL 16
35
36/* Preferences for router advertisements. A router daemon installs itself
37 * as the default router in the router's interfaces by sending router
38 * advertisements to localhost with preference ICMP_RA_LOCAL_PREF.
39 */
40#define ICMP_RA_DEFAULT_PREF 0x00000000
41#define ICMP_RA_INVAL_PREF 0x80000000
42#define ICMP_RA_MAX_PREF 0x7fffffff
43#define ICMP_RA_LOCAL_PREF 0x10000000
44
45#endif /* __SERVER__IP__GEN__ICMP_H__ */
46
47/*
48 * $PchId: icmp.h,v 1.6 2002/06/10 07:10:26 philip Exp $
49 */
Note: See TracBrowser for help on using the repository browser.