From 3fba740efc3889ee3d08abbf90297f1c458ade15 Mon Sep 17 00:00:00 2001 From: zhengjiebing Date: Mon, 27 May 2024 15:03:54 +0800 Subject: [PATCH] remove VLAN_LEN and IP6_HLEN in TCP_MSS --- 0137-rm-vlan_len-and-ip6_hlen-in-tcp_mss.patch | 13 +++++++++++++ lwip.spec | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 0137-rm-vlan_len-and-ip6_hlen-in-tcp_mss.patch diff --git a/0137-rm-vlan_len-and-ip6_hlen-in-tcp_mss.patch b/0137-rm-vlan_len-and-ip6_hlen-in-tcp_mss.patch new file mode 100644 index 0000000..8cd4dc4 --- /dev/null +++ b/0137-rm-vlan_len-and-ip6_hlen-in-tcp_mss.patch @@ -0,0 +1,13 @@ +diff --git a/src/include/lwipopts.h b/src/include/lwipopts.h +index 4655388..9f2447f 100644 +--- a/src/include/lwipopts.h ++++ b/src/include/lwipopts.h +@@ -215,7 +215,7 @@ + #define TCP_OVERSIZE TCP_MSS + #define LWIP_NETIF_TX_SINGLE_PBUF 1 + +-#define TCP_MSS (FRAME_MTU - IP6_HLEN - TCP_HLEN - VLAN_LEN) ++#define TCP_MSS (FRAME_MTU - IP_HLEN - TCP_HLEN) + + #define TCP_WND (2500 * TCP_MSS) + diff --git a/lwip.spec b/lwip.spec index 20b6d2a..b27a6b6 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: 29 +Release: 30 License: BSD URL: http://savannah.nongnu.org/projects/lwip/ Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip @@ -148,6 +148,7 @@ Patch9132: 0133-allow-membership-to-register-multiple-times.patch Patch9133: 0134-mod-checksum-of-ip_hdr-and-udp_hdr.patch Patch9134: 0135-change-STAT_COUNTER-from-u16-to-u64.patch Patch9135: 0136-fix-vlan-filter-bug.patch +Patch9136: 0137-rm-vlan_len-and-ip6_hlen-in-tcp_mss.patch BuildRequires: gcc-c++ dos2unix dpdk-devel @@ -177,6 +178,9 @@ cd %{_builddir}/%{name}-%{version}/src %{_libdir}/liblwip.a %changelog +* Mon May 27 2024 zhengjiebing - 2.2.0-30 +- rm IP6_HLEN and VLAN_LEN in TCP_MSS + * Fri May 24 2024 zhengjiebing - 2.2.0-29 - fix vlan filter bug -- Gitee