sync WRAP: support setsockopt SO_SNDTIMEO SO_SNBUF

(cherry picked from commit f88463a5edcf18e29ed97ef02db16cb62f9531e4)
This commit is contained in:
yinbin6 2024-09-20 19:24:54 +08:00 committed by openeuler-sync-bot
parent a4c8c247e0
commit 59cedadcd9
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 34d3415bab0de76e2d704cda1c786c06e110e2e7 Mon Sep 17 00:00:00 2001
From: yinbin <yinbin8@huawei.com>
Date: Wed, 11 Sep 2024 16:50:17 +0800
Subject: [PATCH] WRAP: support setsockopt SO_SNDTIMEO SO_SNBUF
---
src/lstack/api/lstack_wrap.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/lstack/api/lstack_wrap.c b/src/lstack/api/lstack_wrap.c
index 8c3c731..92ce73b 100644
--- a/src/lstack/api/lstack_wrap.c
+++ b/src/lstack/api/lstack_wrap.c
@@ -424,8 +424,6 @@ static bool unsupport_socket_optname(int32_t optname)
{
if ((optname == SO_BROADCAST) ||
(optname == SO_PROTOCOL) ||
- (optname == SO_SNDTIMEO) ||
- (optname == SO_SNDBUF) ||
(optname == SO_RCVBUF) ||
(optname == SO_DONTROUTE)) {
return true;
--
2.33.0

View File

@ -2,7 +2,7 @@
Name: gazelle
Version: 1.0.2
Release: 61
Release: 62
Summary: gazelle is a high performance user-mode stack
License: MulanPSL-2.0
URL: https://gitee.com/openeuler/gazelle
@ -270,6 +270,7 @@ Patch9250: 0250-tools-fix-script-generate-patchname-wrong.patch
Patch9251: 0251-fix-when-errno-is-ENOTCONN-ignore-it.patch
Patch9252: 0252-rtc-do_lwip_init_sock-no-need-to-create-ring-in-rtc-.patch
Patch9253: 0253-example-solve-double-free.patch
Patch9254: 0254-WRAP-support-setsockopt-SO_SNDTIMEO-SO_SNBUF.patch
%description
%{name} is a high performance user-mode stack.
@ -311,6 +312,9 @@ install -Dpm 0640 %{_builddir}/%{name}-%{version}/src/ltran/ltran.conf %{b
%config(noreplace) %{conf_path}/ltran.conf
%changelog
* Fri Sep 20 2024 yinbin6 <yinbin8@huawei.com> - 1.0.2-62
- WRAP: support setsockopt SO_SNDTIMEO SO_SNBUF
* Fri Sep 13 2024 yinbin6 <yinbin8@huawei.com> - 1.0.2-61
- example: solve double free
- rtc: do_lwip_init_sock no need to create ring in rtc mode