5 #ifndef __SERVER__IP__GEN__IN_H__
6 #define __SERVER__IP__GEN__IN_H__
8 #include <net/gen/in.h>
11 #define IP_MIN_HDR_SIZE 20
12 #define IP_MAX_HDR_SIZE 60 /* 15 * 4 */
15 #define IP_MAX_TTL 255
16 #define IP_DEF_MTU 576
17 #define IP_MIN_MTU (IP_MAX_HDR_SIZE+8)
18 #define IP_MAX_PACKSIZE 40000
19 /* Note: this restriction is not part of the IP-protocol but
20 introduced by this implementation. */
22 #define IPPROTO_ICMP 1
24 #define IPPROTO_UDP 17
26 #define IP_MC_ALL_SYSTEMS 0xE0000001 /* 224.0.0.1 */
28 typedef u32_t ipaddr_t
;
29 typedef u8_t ipproto_t
;
30 typedef struct ip_hdropt
33 u8_t iho_data
[IP_MAX_HDR_SIZE
-IP_MIN_HDR_SIZE
];
36 #endif /* __SERVER__IP__GEN__IN_H__ */
39 * $PchId: in.h,v 1.6 2002/06/10 07:11:15 philip Exp $