.. | .. |
---|
74 | 74 | #define IPPROTO_UDPLITE IPPROTO_UDPLITE |
---|
75 | 75 | IPPROTO_MPLS = 137, /* MPLS in IP (RFC 4023) */ |
---|
76 | 76 | #define IPPROTO_MPLS IPPROTO_MPLS |
---|
| 77 | + IPPROTO_ETHERNET = 143, /* Ethernet-within-IPv6 Encapsulation */ |
---|
| 78 | +#define IPPROTO_ETHERNET IPPROTO_ETHERNET |
---|
77 | 79 | IPPROTO_RAW = 255, /* Raw IP packets */ |
---|
78 | 80 | #define IPPROTO_RAW IPPROTO_RAW |
---|
| 81 | + IPPROTO_MPTCP = 262, /* Multipath TCP connection */ |
---|
| 82 | +#define IPPROTO_MPTCP IPPROTO_MPTCP |
---|
79 | 83 | IPPROTO_MAX |
---|
80 | 84 | }; |
---|
81 | 85 | #endif |
---|
.. | .. |
---|
119 | 123 | #define IP_CHECKSUM 23 |
---|
120 | 124 | #define IP_BIND_ADDRESS_NO_PORT 24 |
---|
121 | 125 | #define IP_RECVFRAGSIZE 25 |
---|
| 126 | +#define IP_RECVERR_RFC4884 26 |
---|
122 | 127 | |
---|
123 | 128 | /* IP_MTU_DISCOVER values */ |
---|
124 | 129 | #define IP_PMTUDISC_DONT 0 /* Never send DF frames */ |
---|
.. | .. |
---|
130 | 135 | * this socket to prevent accepting spoofed ones. |
---|
131 | 136 | */ |
---|
132 | 137 | #define IP_PMTUDISC_INTERFACE 4 |
---|
133 | | -/* weaker version of IP_PMTUDISC_INTERFACE, which allos packets to get |
---|
| 138 | +/* weaker version of IP_PMTUDISC_INTERFACE, which allows packets to get |
---|
134 | 139 | * fragmented if they exeed the interface mtu |
---|
135 | 140 | */ |
---|
136 | 141 | #define IP_PMTUDISC_OMIT 5 |
---|
.. | .. |
---|
154 | 159 | #define MCAST_MSFILTER 48 |
---|
155 | 160 | #define IP_MULTICAST_ALL 49 |
---|
156 | 161 | #define IP_UNICAST_IF 50 |
---|
| 162 | +#define IP_LOCAL_PORT_RANGE 51 |
---|
| 163 | +#define IP_PROTOCOL 52 |
---|
157 | 164 | |
---|
158 | 165 | #define MCAST_EXCLUDE 0 |
---|
159 | 166 | #define MCAST_INCLUDE 1 |
---|
.. | .. |
---|
266 | 273 | |
---|
267 | 274 | #define IN_CLASSD(a) ((((long int) (a)) & 0xf0000000) == 0xe0000000) |
---|
268 | 275 | #define IN_MULTICAST(a) IN_CLASSD(a) |
---|
269 | | -#define IN_MULTICAST_NET 0xF0000000 |
---|
| 276 | +#define IN_MULTICAST_NET 0xe0000000 |
---|
270 | 277 | |
---|
271 | | -#define IN_EXPERIMENTAL(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000) |
---|
272 | | -#define IN_BADCLASS(a) IN_EXPERIMENTAL((a)) |
---|
| 278 | +#define IN_BADCLASS(a) (((long int) (a) ) == (long int)0xffffffff) |
---|
| 279 | +#define IN_EXPERIMENTAL(a) IN_BADCLASS((a)) |
---|
| 280 | + |
---|
| 281 | +#define IN_CLASSE(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000) |
---|
| 282 | +#define IN_CLASSE_NET 0xffffffff |
---|
| 283 | +#define IN_CLASSE_NSHIFT 0 |
---|
273 | 284 | |
---|
274 | 285 | /* Address to accept any incoming messages. */ |
---|
275 | 286 | #define INADDR_ANY ((unsigned long int) 0x00000000) |
---|
.. | .. |
---|
291 | 302 | #define IN_LOOPBACK(a) ((((long int) (a)) & 0xff000000) == 0x7f000000) |
---|
292 | 303 | |
---|
293 | 304 | /* Defines for Multicast INADDR */ |
---|
294 | | -#define INADDR_UNSPEC_GROUP 0xe0000000U /* 224.0.0.0 */ |
---|
295 | | -#define INADDR_ALLHOSTS_GROUP 0xe0000001U /* 224.0.0.1 */ |
---|
296 | | -#define INADDR_ALLRTRS_GROUP 0xe0000002U /* 224.0.0.2 */ |
---|
297 | | -#define INADDR_MAX_LOCAL_GROUP 0xe00000ffU /* 224.0.0.255 */ |
---|
| 305 | +#define INADDR_UNSPEC_GROUP 0xe0000000U /* 224.0.0.0 */ |
---|
| 306 | +#define INADDR_ALLHOSTS_GROUP 0xe0000001U /* 224.0.0.1 */ |
---|
| 307 | +#define INADDR_ALLRTRS_GROUP 0xe0000002U /* 224.0.0.2 */ |
---|
| 308 | +#define INADDR_ALLSNOOPERS_GROUP 0xe000006aU /* 224.0.0.106 */ |
---|
| 309 | +#define INADDR_MAX_LOCAL_GROUP 0xe00000ffU /* 224.0.0.255 */ |
---|
298 | 310 | #endif |
---|
299 | 311 | |
---|
300 | 312 | /* <asm/byteorder.h> contains the htonl type stuff.. */ |
---|