借鉴 level-ip 和 tapip 用 Python 写了一个 tcp/ip 协议栈

2022 年 11 月 10 日
 echoechoin

https://github.com/echoechoin/teeceepee2

抄袭借鉴 level-ip 和 tapip 用 python 写了一个 tcp/ip 协议栈,没有任何测试代码,仅仅能跑起来。。。

level-ip: https://github.com/saminiir/level-ip

tapip: https://github.com/chobits/tapip

3205 次点击
所在节点    Python
4 条回复
zhlxsh
2022 年 11 月 10 日
很厉害👍
lookStupiToForce
2022 年 11 月 10 日
有意思
wwqgtxx
2022 年 11 月 10 日
有点意思
echoechoin
2022 年 11 月 10 日
主要的收包原理和 openvpn 类似,用的 linux 的 tap 虚拟设备。 看了 level-ip 中的教程, 对 arp 缓存,路由,环回接口和 tcp 状态机都有了更深的理解。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://v2ex.ih06.com/t/894074

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX