Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/ip.h
Show First 20 Lines • Show All 207 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Internet implementation parameters. | * Internet implementation parameters. | ||||
*/ | */ | ||||
#define MAXTTL 255 /* maximum time to live (seconds) */ | #define MAXTTL 255 /* maximum time to live (seconds) */ | ||||
#define IPDEFTTL 64 /* default ttl, from RFC 1340 */ | #define IPDEFTTL 64 /* default ttl, from RFC 1340 */ | ||||
#define IPFRAGTTL 60 /* time to live for frags, slowhz */ | #define IPFRAGTTL 60 /* time to live for frags, slowhz */ | ||||
#define IPTTLDEC 1 /* subtracted when forwarding */ | #define IPTTLDEC 1 /* subtracted when forwarding */ | ||||
#define IP_MSS 576 /* default maximum segment size */ | #define IP_MSS 576 /* default maximum segment size */ | ||||
#define IP_MMTU 68 /* Minimal MTU from RFC 1191 */ | |||||
/* | /* | ||||
* This is the real IPv4 pseudo header, used for computing the TCP and UDP | * This is the real IPv4 pseudo header, used for computing the TCP and UDP | ||||
* checksums. For the Internet checksum, struct ipovly can be used instead. | * checksums. For the Internet checksum, struct ipovly can be used instead. | ||||
* For stronger checksums, the real thing must be used. | * For stronger checksums, the real thing must be used. | ||||
*/ | */ | ||||
struct ippseudo { | struct ippseudo { | ||||
struct in_addr ippseudo_src; /* source internet address */ | struct in_addr ippseudo_src; /* source internet address */ | ||||
struct in_addr ippseudo_dst; /* destination internet address */ | struct in_addr ippseudo_dst; /* destination internet address */ | ||||
u_char ippseudo_pad; /* pad, must be zero */ | u_char ippseudo_pad; /* pad, must be zero */ | ||||
u_char ippseudo_p; /* protocol */ | u_char ippseudo_p; /* protocol */ | ||||
u_short ippseudo_len; /* protocol length */ | u_short ippseudo_len; /* protocol length */ | ||||
}; | }; | ||||
#endif | #endif |