From 950a187e1d4ee81e96a5b21951795e2274225d6a Mon Sep 17 00:00:00 2001 From: yangchen Date: Tue, 13 Aug 2024 11:24:39 +0800 Subject: [PATCH] fix the definition of IPV6_V6ONLY (cherry picked from commit 63d08ed4396d07d3ce4c4d43bfac50d0b4bfd0f0) --- 0161-fix-the-definition-of-IPV6_V6ONLY.patch | 25 ++++++++++++++++++++ lwip.spec | 6 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0161-fix-the-definition-of-IPV6_V6ONLY.patch diff --git a/0161-fix-the-definition-of-IPV6_V6ONLY.patch b/0161-fix-the-definition-of-IPV6_V6ONLY.patch new file mode 100644 index 0000000..f41f9e8 --- /dev/null +++ b/0161-fix-the-definition-of-IPV6_V6ONLY.patch @@ -0,0 +1,25 @@ +From 0a58b077d732412602e41f7328a0a470358119e2 Mon Sep 17 00:00:00 2001 +From: yangchen +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 + diff --git a/lwip.spec b/lwip.spec index 42cf2e7..f5c5a53 100644 --- a/lwip.spec +++ b/lwip.spec @@ -4,7 +4,7 @@ Summary: lwip is a small independent implementation of the TCP/IP protocol suite Name: lwip Version: 2.2.0 -Release: 51 +Release: 52 License: BSD URL: http://savannah.nongnu.org/projects/lwip/ Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip @@ -172,6 +172,7 @@ Patch9156: 0157-cleancode-refactor-offload.patch Patch9157: 0158-enable-sys_arch-failed-log.patch Patch9158: 0159-LOOPBACK-fix-loop-coredump.patch Patch9159: 0160-INIT-fix-lwip_init-failed-because-of-dpdk-set-errno.patch +Patch9160: 0161-fix-the-definition-of-IPV6_V6ONLY.patch BuildRequires: gcc-c++ dos2unix dpdk-devel @@ -201,6 +202,9 @@ cd %{_builddir}/%{name}-%{version}/src %{_libdir}/liblwip.a %changelog +* Tue Aug 13 2024 yangchen - 2.2.0-52 +- fix the definition of IPV6_V6ONLY + * Sat Aug 3 2024 yinbin - 2.2.0-51 - INIT:fix lwip_init failed because of dpdk set errno