Starry-OS / Starry

The main repository of Starry-OS, which will assemble all kernel components into a kernel according to a certain configuration.
Apache License 2.0
12 stars 18 forks source link

Starry 支持和主机通信 #11

Open Azure-stars opened 1 month ago

Azure-stars commented 1 month ago

Starry 已经支持和同局域网下的其他主机通信,但是目前不支持和所在的主机(IP 为 10.0.2.2)通信。

hello_world测例运行方式:

另外还有一个测例:echo_outside,运行方式为:

YanLien commented 1 month ago
poll

原来的实现,先进行本地回环的poll,再进行以太网卡的poll。有些包会被本地回环先取走,但是如果不是 127.0.0.1 的包,取走了是无法处理的,导致丢包。两个poll 的顺序对调,目的就是让 eth 先取,但是这样也会有相同的丢包问题,能暂时性通过测例。不能从根本解决问题。

YanLien commented 4 days ago

涉及PR