.. | .. |
---|
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 |
---|
.. | .. |
---|
266 | 271 | |
---|
267 | 272 | #define IN_CLASSD(a) ((((long int) (a)) & 0xf0000000) == 0xe0000000) |
---|
268 | 273 | #define IN_MULTICAST(a) IN_CLASSD(a) |
---|
269 | | -#define IN_MULTICAST_NET 0xF0000000 |
---|
| 274 | +#define IN_MULTICAST_NET 0xe0000000 |
---|
270 | 275 | |
---|
271 | | -#define IN_EXPERIMENTAL(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000) |
---|
272 | | -#define IN_BADCLASS(a) IN_EXPERIMENTAL((a)) |
---|
| 276 | +#define IN_BADCLASS(a) (((long int) (a) ) == (long int)0xffffffff) |
---|
| 277 | +#define IN_EXPERIMENTAL(a) IN_BADCLASS((a)) |
---|
| 278 | + |
---|
| 279 | +#define IN_CLASSE(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000) |
---|
| 280 | +#define IN_CLASSE_NET 0xffffffff |
---|
| 281 | +#define IN_CLASSE_NSHIFT 0 |
---|
273 | 282 | |
---|
274 | 283 | /* Address to accept any incoming messages. */ |
---|
275 | 284 | #define INADDR_ANY ((unsigned long int) 0x00000000) |
---|
.. | .. |
---|
291 | 300 | #define IN_LOOPBACK(a) ((((long int) (a)) & 0xff000000) == 0x7f000000) |
---|
292 | 301 | |
---|
293 | 302 | /* 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 */ |
---|
| 303 | +#define INADDR_UNSPEC_GROUP 0xe0000000U /* 224.0.0.0 */ |
---|
| 304 | +#define INADDR_ALLHOSTS_GROUP 0xe0000001U /* 224.0.0.1 */ |
---|
| 305 | +#define INADDR_ALLRTRS_GROUP 0xe0000002U /* 224.0.0.2 */ |
---|
| 306 | +#define INADDR_ALLSNOOPERS_GROUP 0xe000006aU /* 224.0.0.106 */ |
---|
| 307 | +#define INADDR_MAX_LOCAL_GROUP 0xe00000ffU /* 224.0.0.255 */ |
---|
298 | 308 | #endif |
---|
299 | 309 | |
---|
300 | 310 | /* <asm/byteorder.h> contains the htonl type stuff.. */ |
---|