Subversion Repositories HelenOS

Rev

Rev 4704 | Rev 4728 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4704 Rev 4722
Line 206... Line 206...
206
#define IPOPT_OFFSET 2
206
#define IPOPT_OFFSET 2
207
#define IPOPT_MINOFF 4
207
#define IPOPT_MINOFF 4
208
#define MAX_IPOPTLEN 40
208
#define MAX_IPOPTLEN 40
209
*/
209
*/
210
 
210
 
-
 
211
/** Type definition of the internet version 4 pseudo header.
-
 
212
 *  @see ipv4_pseudo_header
-
 
213
 */
-
 
214
typedef struct ipv4_pseudo_header   ipv4_pseudo_header_t;
-
 
215
 
-
 
216
/** Type definition of the internet version 4 pseudo header pointer.
-
 
217
 *  @see ipv4_pseudo_header
-
 
218
 */
-
 
219
typedef ipv4_pseudo_header_t *      ipv4_pseudo_header_ref;
-
 
220
 
-
 
221
/** Internet version 4 pseudo header.
-
 
222
 */
-
 
223
struct ipv4_pseudo_header{
-
 
224
    /** The source address.
-
 
225
     */
-
 
226
    uint32_t    source_address;
-
 
227
    /** The destination address.
-
 
228
     */
-
 
229
    uint32_t    destination_address;
-
 
230
    /** Zero byte.
-
 
231
     */
-
 
232
    uint8_t     zero;
-
 
233
    /** This field indicates the next level protocol used in the data portion of the internet datagram.
-
 
234
     */
-
 
235
    uint8_t     protocol;
-
 
236
    /** Data length is the length of the datagram, measured in octets.
-
 
237
     */
-
 
238
    uint16_t    data_length;
-
 
239
} __attribute__ ((packed));
-
 
240
 
211
#endif
241
#endif
212
 
242
 
213
/** @}
243
/** @}
214
 */
244
 */