1 Star 0 Fork 48

yinbin6/lwip

forked from src-openEuler/lwip 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0161-fix-the-definition-of-IPV6_V6ONLY.patch 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
yc555 提交于 2024-08-13 11:24 . fix the definition of IPV6_V6ONLY
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yinbin6/lwip.git
git@gitee.com:yinbin6/lwip.git
yinbin6
lwip
lwip
master

搜索帮助