Rev 3991 | Rev 4350 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3991 | Rev 4243 | ||
---|---|---|---|
Line 120... | Line 120... | ||
120 | */ |
120 | */ |
121 | uint32_t source_address; |
121 | uint32_t source_address; |
122 | /** The destination address. |
122 | /** The destination address. |
123 | */ |
123 | */ |
124 | uint32_t destination_address; |
124 | uint32_t destination_address; |
125 | }; |
125 | } __attribute__ ((packed)); |
126 | 126 | ||
127 | typedef struct ip_option ip_option_t; |
127 | typedef struct ip_option ip_option_t; |
128 | typedef ip_option * ip_option_ref; |
128 | typedef ip_option * ip_option_ref; |
129 | 129 | ||
130 | /** Internet option header. |
130 | /** Internet option header. |
Line 154... | Line 154... | ||
154 | uint8_t:4 flags; |
154 | uint8_t:4 flags; |
155 | /** The number of IP modules that cannot register timestamps due to lack of space. |
155 | /** The number of IP modules that cannot register timestamps due to lack of space. |
156 | */ |
156 | */ |
157 | uint8_t:4 overflow; |
157 | uint8_t:4 overflow; |
158 | #endif |
158 | #endif |
159 | }; |
159 | } __attribute__ ((packed)); |
160 | 160 | ||
161 | #define IPTOS_TOS_MASK 0x1E |
161 | #define IPTOS_TOS_MASK 0x1E |
162 | #define IPTOS_PRECEDENCE_SHIFT 5 |
162 | #define IPTOS_PRECEDENCE_SHIFT 5 |
163 | #define IPTOS_DELAY_SHIFT 4 |
163 | #define IPTOS_DELAY_SHIFT 4 |
164 | #define IPTOS_THROUGHPUT_SHIFT 3 |
164 | #define IPTOS_THROUGHPUT_SHIFT 3 |