| Line | |
|---|
| 1 | /*
|
|---|
| 2 | server/ip/gen/in.h
|
|---|
| 3 | */
|
|---|
| 4 |
|
|---|
| 5 | #ifndef __SERVER__IP__GEN__IN_H__
|
|---|
| 6 | #define __SERVER__IP__GEN__IN_H__
|
|---|
| 7 |
|
|---|
| 8 | #define IP_MIN_HDR_SIZE 20
|
|---|
| 9 | #define IP_MAX_HDR_SIZE 60 /* 15 * 4 */
|
|---|
| 10 | #define IP_VERSION 4
|
|---|
| 11 | #define IP_DEF_TTL 64
|
|---|
| 12 | #define IP_MAX_TTL 255
|
|---|
| 13 | #define IP_DEF_MTU 576
|
|---|
| 14 | #define IP_MIN_MTU (IP_MAX_HDR_SIZE+8)
|
|---|
| 15 | #define IP_MAX_PACKSIZE 40000
|
|---|
| 16 | /* Note: this restriction is not part of the IP-protocol but
|
|---|
| 17 | introduced by this implementation. */
|
|---|
| 18 |
|
|---|
| 19 | #define IPPROTO_ICMP 1
|
|---|
| 20 | #define IPPROTO_TCP 6
|
|---|
| 21 | #define IPPROTO_UDP 17
|
|---|
| 22 |
|
|---|
| 23 | #define IP_MC_ALL_SYSTEMS 0xE0000001 /* 224.0.0.1 */
|
|---|
| 24 |
|
|---|
| 25 | typedef u32_t ipaddr_t;
|
|---|
| 26 | typedef u8_t ipproto_t;
|
|---|
| 27 | typedef struct ip_hdropt
|
|---|
| 28 | {
|
|---|
| 29 | u8_t iho_opt_siz;
|
|---|
| 30 | u8_t iho_data[IP_MAX_HDR_SIZE-IP_MIN_HDR_SIZE];
|
|---|
| 31 | } ip_hdropt_t;
|
|---|
| 32 |
|
|---|
| 33 | #endif /* __SERVER__IP__GEN__IN_H__ */
|
|---|
| 34 |
|
|---|
| 35 | /*
|
|---|
| 36 | * $PchId: in.h,v 1.6 2002/06/10 07:11:15 philip Exp $
|
|---|
| 37 | */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.