1 Star 0 Fork 48

flying-eagle/lwip

forked from src-openEuler/lwip 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0108-fix-receive-fin-packet-process-error.patch 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
jinag12 提交于 2024-01-30 21:46 . fix receive fin packet process error
From 7dbceaeab7f85df6a58b77858c507fa9087d5ba7 Mon Sep 17 00:00:00 2001
From: jiangheng <jiangheng14@huawei.com>
Date: Mon, 22 Jan 2024 20:38:57 +0800
Subject: [PATCH] fix receive fin packet process error
---
src/core/tcp_in.c | 9 ---------
src/include/lwipsock.h | 1 +
2 files changed, 1 insertion(+), 9 deletions(-)
diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c
index 9d5a695..84d22ca 100644
--- a/src/core/tcp_in.c
+++ b/src/core/tcp_in.c
@@ -1142,9 +1142,6 @@ tcp_process(struct tcp_pcb *pcb)
if (recv_flags & TF_GOT_FIN) {
tcp_ack_now(pcb);
pcb->state = CLOSE_WAIT;
-#if GAZELLE_ENABLE
- API_EVENT(((struct netconn *)pcb->callback_arg), NETCONN_EVT_ERROR, 0);
-#endif
}
} else {
/* incorrect ACK number, send RST */
@@ -1163,9 +1160,6 @@ tcp_process(struct tcp_pcb *pcb)
if (recv_flags & TF_GOT_FIN) { /* passive close */
tcp_ack_now(pcb);
pcb->state = CLOSE_WAIT;
-#if GAZELLE_ENABLE
- API_EVENT(((struct netconn *)pcb->callback_arg), NETCONN_EVT_ERROR, 0);
-#endif
}
break;
case FIN_WAIT_1:
@@ -1820,9 +1814,6 @@ tcp_receive(struct tcp_pcb *pcb)
recv_flags |= TF_GOT_FIN;
if (pcb->state == ESTABLISHED) { /* force passive close or we can move to active close */
pcb->state = CLOSE_WAIT;
-#if GAZELLE_ENABLE
- API_EVENT(((struct netconn *)pcb->callback_arg), NETCONN_EVT_ERROR, 0);
-#endif
}
}
diff --git a/src/include/lwipsock.h b/src/include/lwipsock.h
index ccc8c43..f4cb1de 100644
--- a/src/include/lwipsock.h
+++ b/src/include/lwipsock.h
@@ -120,7 +120,6 @@ struct lwip_sock {
char pad2 __rte_cache_aligned;
/* stack thread all use */
struct list_node recv_list;
- struct pbuf *send_lastdata;
struct pbuf *send_pre_del;
sem_t snd_ring_sem;
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/flying-eagle12138/lwip.git
git@gitee.com:flying-eagle12138/lwip.git
flying-eagle12138
lwip
lwip
master

搜索帮助