lwip/0161-fix-the-definition-of-IPV6_V6ONLY.patch
yangchen db600ebd20 fix the definition of IPV6_V6ONLY
(cherry picked from commit 63d08ed4396d07d3ce4c4d43bfac50d0b4bfd0f0)
2024-08-21 16:43:32 +08:00

26 lines
1.0 KiB
Diff

From 0a58b077d732412602e41f7328a0a470358119e2 Mon Sep 17 00:00:00 2001
From: yangchen <yangchen145@huawei.com>
Date: Tue, 13 Aug 2024 11:17:48 +0800
Subject: [PATCH] fix the definition of IPV6_V6ONLY
---
src/include/lwip/sockets.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/include/lwip/sockets.h b/src/include/lwip/sockets.h
index a5364c7..205a9d3 100644
--- a/src/include/lwip/sockets.h
+++ b/src/include/lwip/sockets.h
@@ -373,7 +373,7 @@ struct linger {
* Options for level IPPROTO_IPV6
*/
#define IPV6_CHECKSUM 7 /* RFC3542: calculate and insert the ICMPv6 checksum for raw sockets. */
-#define IPV6_V6ONLY 27 /* RFC3493: boolean control to restrict AF_INET6 sockets to IPv6 communications only. */
+#define IPV6_V6ONLY 26 /* RFC3493: boolean control to restrict AF_INET6 sockets to IPv6 communications only. */
#define IPV6_RECVPKTINFO 49 /* Recv IPV6_PKTINFO message */
#define IPV6_PKTINFO 50
#define IPV6_RECVHOPLIMIT 51 /* Recv IPV6_HOPLIMIT message */
--
2.33.0