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