Please wait until the page is fully downloaded and then press the "Expand" button or the blue line numbers.

0086000 /*
0086001 server/ip/gen/in.h
0086002 */
0086003 
0086004 #ifndef __SERVER__IP__GEN__IN_H__
0086005 #define __SERVER__IP__GEN__IN_H__
0086006 
0086007 #define IP_MIN_HDR_SIZE              20
0086008 #define IP_MAX_HDR_SIZE              60              /* 15 * 4 */
0086009 #define IP_VERSION              4
0086010 #define IP_MAX_TTL              255
0086011 #define IP_DEF_MSS              576
0086012 #define IP_MAX_PACKSIZE              40000              /* 8192 */
0086013          /* Note: this restriction is not part of the IP-protocol but
0086014           introduced by this implementation. */
0086015 
0086016 #define IPPROTO_ICMP              1
0086017 #define IPPROTO_TCP              6
0086018 #define IPPROTO_UDP              17
0086019 
0086020 typedef u32_t ipaddr_t;
0086021 typedef u8_t ipproto_t;
0086022 typedef struct ip_hdropt
0086023 {
0086024          u8_t iho_opt_siz;
0086025          u8_t iho_data[IP_MAX_HDR_SIZE-IP_MIN_HDR_SIZE];
0086026 } ip_hdropt_t;
0086027 
0086028 #endif /* __SERVER__IP__GEN__IN_H__ */
0086029 
0086030 /*
0086031  * $PchId: in.h,v 1.3 1995/11/17 22:27:50 philip Exp $
0086032  */