hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/include/uapi/linux/in.h
....@@ -74,8 +74,12 @@
7474 #define IPPROTO_UDPLITE IPPROTO_UDPLITE
7575 IPPROTO_MPLS = 137, /* MPLS in IP (RFC 4023) */
7676 #define IPPROTO_MPLS IPPROTO_MPLS
77
+ IPPROTO_ETHERNET = 143, /* Ethernet-within-IPv6 Encapsulation */
78
+#define IPPROTO_ETHERNET IPPROTO_ETHERNET
7779 IPPROTO_RAW = 255, /* Raw IP packets */
7880 #define IPPROTO_RAW IPPROTO_RAW
81
+ IPPROTO_MPTCP = 262, /* Multipath TCP connection */
82
+#define IPPROTO_MPTCP IPPROTO_MPTCP
7983 IPPROTO_MAX
8084 };
8185 #endif
....@@ -119,6 +123,7 @@
119123 #define IP_CHECKSUM 23
120124 #define IP_BIND_ADDRESS_NO_PORT 24
121125 #define IP_RECVFRAGSIZE 25
126
+#define IP_RECVERR_RFC4884 26
122127
123128 /* IP_MTU_DISCOVER values */
124129 #define IP_PMTUDISC_DONT 0 /* Never send DF frames */
....@@ -130,7 +135,7 @@
130135 * this socket to prevent accepting spoofed ones.
131136 */
132137 #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
134139 * fragmented if they exeed the interface mtu
135140 */
136141 #define IP_PMTUDISC_OMIT 5
....@@ -154,6 +159,8 @@
154159 #define MCAST_MSFILTER 48
155160 #define IP_MULTICAST_ALL 49
156161 #define IP_UNICAST_IF 50
162
+#define IP_LOCAL_PORT_RANGE 51
163
+#define IP_PROTOCOL 52
157164
158165 #define MCAST_EXCLUDE 0
159166 #define MCAST_INCLUDE 1
....@@ -266,10 +273,14 @@
266273
267274 #define IN_CLASSD(a) ((((long int) (a)) & 0xf0000000) == 0xe0000000)
268275 #define IN_MULTICAST(a) IN_CLASSD(a)
269
-#define IN_MULTICAST_NET 0xF0000000
276
+#define IN_MULTICAST_NET 0xe0000000
270277
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
273284
274285 /* Address to accept any incoming messages. */
275286 #define INADDR_ANY ((unsigned long int) 0x00000000)
....@@ -291,10 +302,11 @@
291302 #define IN_LOOPBACK(a) ((((long int) (a)) & 0xff000000) == 0x7f000000)
292303
293304 /* 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 */
298310 #endif
299311
300312 /* <asm/byteorder.h> contains the htonl type stuff.. */