00001 /* 00002 server/ip/gen/in.h 00003 */ 00004 00005 #ifndef __SERVER__IP__GEN__IN_H__ 00006 #define __SERVER__IP__GEN__IN_H__ 00007 00008 #define IP_MIN_HDR_SIZE 20 00009 #define IP_MAX_HDR_SIZE 60 /* 15 * 4 */ 00010 #define IP_VERSION 4 00011 #define IP_DEF_TTL 64 00012 #define IP_MAX_TTL 255 00013 #define IP_DEF_MTU 576 00014 #define IP_MIN_MTU (IP_MAX_HDR_SIZE+8) 00015 #define IP_MAX_PACKSIZE 40000 00016 /* Note: this restriction is not part of the IP-protocol but 00017 introduced by this implementation. */ 00018 00019 #define IPPROTO_ICMP 1 00020 #define IPPROTO_TCP 6 00021 #define IPPROTO_UDP 17 00022 00023 #define IP_MC_ALL_SYSTEMS 0xE0000001 /* 224.0.0.1 */ 00024 00025 typedef u32_t ipaddr_t; 00026 typedef u8_t ipproto_t; 00027 typedef struct ip_hdropt 00028 { 00029 u8_t iho_opt_siz; 00030 u8_t iho_data[IP_MAX_HDR_SIZE-IP_MIN_HDR_SIZE]; 00031 } ip_hdropt_t; 00032 00033 #endif /* __SERVER__IP__GEN__IN_H__ */ 00034 00035 /* 00036 * $PchId: in.h,v 1.6 2002/06/10 07:11:15 philip Exp $ 00037 */
1.5.8