1 Star 0 Fork 49

shafeipaozi/lwip

forked from src-openEuler/lwip 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0048-listen-pcb-also-use-pcb_if.patch 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
From 11d8e9f6d54a606163a452f1c8beaa5bc90e949c Mon Sep 17 00:00:00 2001
From: jiangheng <[email protected]>
Date: Wed, 28 Dec 2022 21:25:36 +0800
Subject: [PATCH] listen pcb also use pcb_if
---
src/include/lwip/ip.h | 1 +
src/include/lwip/tcp.h | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/include/lwip/ip.h b/src/include/lwip/ip.h
index d560f6b..4cf5f5e 100644
--- a/src/include/lwip/ip.h
+++ b/src/include/lwip/ip.h
@@ -79,6 +79,7 @@ extern "C" {
ip_addr_t remote_ip; \
/* Bound netif index */ \
u8_t netif_idx; \
+ struct netif *pcb_if; \
/* Socket options */ \
u8_t so_options; \
/* Type Of Service */ \
diff --git a/src/include/lwip/tcp.h b/src/include/lwip/tcp.h
index 97cb882..0b65b01 100644
--- a/src/include/lwip/tcp.h
+++ b/src/include/lwip/tcp.h
@@ -409,7 +409,6 @@ struct tcp_pcb {
u8_t snd_scale;
u8_t rcv_scale;
#endif
- struct netif* pcb_if;
};
#if TCP_PCB_HASH
--
2.23.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shafeipaozi/lwip.git
[email protected]:shafeipaozi/lwip.git
shafeipaozi
lwip
lwip
master

搜索帮助