Changeset 183 for trunk/src/emx/include/netinet/ip.h
- Timestamp:
- May 19, 2003, 4:41:00 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/netinet/ip.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r182 r183 1 1 /* Modified for emx by hv 1994,1996 2 * Modified for gcc/os2 by bird 2003 2 3 * 3 4 * Copyright (c) 1982, 1986 Regents of the University of California. … … 39 40 #define _NETINET_IP_H_ 40 41 41 #ifdef __EMX__42 42 #include <machine/endian.h> 43 #endif /* __EMX__ */44 43 45 44 /* … … 56 55 * against negative integers quite easily, and fail in subtle ways. 57 56 */ 57 #pragma pack(1) 58 58 struct ip { 59 59 #if BYTE_ORDER == LITTLE_ENDIAN … … 71 71 #define IP_DF 0x4000 /* dont fragment flag */ 72 72 #define IP_MF 0x2000 /* more fragments flag */ 73 #ifndef TCPV40HDRS 74 #define IP_OFFMASK 0x1fff /* mask for fragmenting bits */ 75 #endif 73 76 u_char ip_ttl; /* time to live */ 74 77 u_char ip_p; /* protocol */ … … 76 79 struct in_addr ip_src,ip_dst; /* source and dest address */ 77 80 }; 78 81 #pragma pack() 82 83 #ifdef TCPV40HDRS 79 84 #define IP_MAXPACKET 32767 /* OS2 maximum packet size */ 85 #else 86 #define IP_MAXPACKET 65535 /* maximum packet size */ 87 #endif 80 88 81 89 /* … … 96 104 #define IPTOS_PREC_IMMEDIATE 0x40 97 105 #define IPTOS_PREC_PRIORITY 0x20 106 #ifdef TCPV40HDRS 98 107 #define IPTOS_PREC_ROUTINE 0x10 108 #else 109 #define IPTOS_PREC_ROUTINE 0x00 110 #endif 99 111 100 112 /* 101 113 * Definitions for options. 102 114 */ 115 #ifndef TCPV40HDRS 116 #define IPOPT_COPY 0x80 117 #endif 103 118 #define IPOPT_COPIED(o) ((o)&0x80) 104 119 #define IPOPT_CLASS(o) ((o)&0x60) … … 119 134 #define IPOPT_SATID 136 /* satnet id */ 120 135 #define IPOPT_SSRR 137 /* strict source route */ 136 #ifndef TCPV40HDRS 137 #define IPOPT_RALERT 148 /* router alert */ 138 #endif 121 139 122 140 /* … … 131 149 * Time stamp option structure. 132 150 */ 151 #pragma pack(1) 133 152 struct ip_timestamp { 134 153 u_char ipt_code; /* IPOPT_TS */ … … 151 170 } ipt_timestamp; 152 171 }; 172 #pragma pack() 153 173 154 174 /* flag bits for ipt_flg */ 155 175 #define IPOPT_TS_TSONLY 0 /* timestamps only */ 156 176 #define IPOPT_TS_TSANDADDR 1 /* timestamps and addresses */ 177 #ifdef TCPV40HDRS 178 #define IPOPT_TS_PRESPEC 2 /* specified modules only */ 179 #else 157 180 #define IPOPT_TS_PRESPEC 3 /* specified modules only */ 181 #endif 182 158 183 159 184 /* bits for security (not byte swapped) */ … … 170 195 */ 171 196 #define MAXTTL 255 /* maximum time to live (seconds) */ 197 /* This is being defined as TCP_TTL, UDP_TTL etc in tcp_time.h 198 #define IPDEFTTL 64 199 */ 172 200 #define IPFRAGTTL 60 /* time to live for frags, slowhz */ 173 201 #define IPTTLDEC 1 /* subtracted when forwarding */ … … 175 203 #define IP_MSS 576 /* default maximum segment size */ 176 204 177 /* hv: this is a new data structure in TCPIPV4; consult IBM's doc for 178 * details (provided they tell anything about it at all) 179 */ 180 #ifdef TCPIPV4 205 #ifdef TCPV40HDRS 181 206 struct ipstat { 182 207 long ips_total; … … 204 229 long ips_ipInUnknownProtos; 205 230 }; 206 #endif 231 #endif /* TCPV40HDRS */ 232 207 233 208 234 #endif /* !_NETINET_IP_H_ */ -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.