Go to the documentation of this file.
17 #ifndef _UAPI_LINUX_IP_H
18 #define _UAPI_LINUX_IP_H
19 #include <linux/types.h>
20 #include <asm/byteorder.h>
22 #define IPTOS_TOS_MASK 0x1E
23 #define IPTOS_TOS(tos) ((tos)&IPTOS_TOS_MASK)
24 #define IPTOS_LOWDELAY 0x10
25 #define IPTOS_THROUGHPUT 0x08
26 #define IPTOS_RELIABILITY 0x04
27 #define IPTOS_MINCOST 0x02
29 #define IPTOS_PREC_MASK 0xE0
30 #define IPTOS_PREC(tos) ((tos)&IPTOS_PREC_MASK)
31 #define IPTOS_PREC_NETCONTROL 0xe0
32 #define IPTOS_PREC_INTERNETCONTROL 0xc0
33 #define IPTOS_PREC_CRITIC_ECP 0xa0
34 #define IPTOS_PREC_FLASHOVERRIDE 0x80
35 #define IPTOS_PREC_FLASH 0x60
36 #define IPTOS_PREC_IMMEDIATE 0x40
37 #define IPTOS_PREC_PRIORITY 0x20
38 #define IPTOS_PREC_ROUTINE 0x00
42 #define IPOPT_COPY 0x80
43 #define IPOPT_CLASS_MASK 0x60
44 #define IPOPT_NUMBER_MASK 0x1f
46 #define IPOPT_COPIED(o) ((o)&IPOPT_COPY)
47 #define IPOPT_CLASS(o) ((o)&IPOPT_CLASS_MASK)
48 #define IPOPT_NUMBER(o) ((o)&IPOPT_NUMBER_MASK)
50 #define IPOPT_CONTROL 0x00
51 #define IPOPT_RESERVED1 0x20
52 #define IPOPT_MEASUREMENT 0x40
53 #define IPOPT_RESERVED2 0x60
55 #define IPOPT_END (0 |IPOPT_CONTROL)
56 #define IPOPT_NOOP (1 |IPOPT_CONTROL)
57 #define IPOPT_SEC (2 |IPOPT_CONTROL|IPOPT_COPY)
58 #define IPOPT_LSRR (3 |IPOPT_CONTROL|IPOPT_COPY)
59 #define IPOPT_TIMESTAMP (4 |IPOPT_MEASUREMENT)
60 #define IPOPT_CIPSO (6 |IPOPT_CONTROL|IPOPT_COPY)
61 #define IPOPT_RR (7 |IPOPT_CONTROL)
62 #define IPOPT_SID (8 |IPOPT_CONTROL|IPOPT_COPY)
63 #define IPOPT_SSRR (9 |IPOPT_CONTROL|IPOPT_COPY)
64 #define IPOPT_RA (20|IPOPT_CONTROL|IPOPT_COPY)
70 #define IPOPT_OPTVAL 0
72 #define IPOPT_OFFSET 2
73 #define IPOPT_MINOFF 4
74 #define MAX_IPOPTLEN 40
75 #define IPOPT_NOP IPOPT_NOOP
76 #define IPOPT_EOL IPOPT_END
77 #define IPOPT_TS IPOPT_TIMESTAMP
79 #define IPOPT_TS_TSONLY 0
80 #define IPOPT_TS_TSANDADDR 1
81 #define IPOPT_TS_PRESPEC 3
83 #define IPV4_BEET_PHMAXLEN 8
86 #if defined(__LITTLE_ENDIAN_BITFIELD)
89 #elif defined (__BIG_ENDIAN_BITFIELD)
93 #error "Please fix <asm/byteorder.h>"