blob: a6c49b6af322d9e2b60c7c477fdec9e3ca47bdf8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#ifndef _NETINET_IP_H
#define _NETINET_IP_H
#include <features.h>
#include <netinet/in.h>
#include <linux/ip.h>
#ifdef _BSD_SOURCE
/*
* BSD has the following structure
*/
struct ip
{
#if defined(__LITTLE_ENDIAN_BITFIELD)
__u8 ip_hl:4,
ip_v:4;
#else
__u8 ip_v:4,
ip_hl:4;
#endif
#define IPVERSION 4
__u8 ip_tos;
__u16 ip_len;
__u16 ip_id;
__u16 ip_off;
__u8 ip_ttl;
__u8 ip_p;
__u16 ip_csum;
struct in_addr ip_src,ip_dst;
};
#define IP_DF 0x4000 /* dont fragment flag */
#define IP_MF 0x2000 /* more fragments flag */
#endif
#endif /* _NETINET_IP_H */
|