TEST#493
Draft
Bepartofyou wants to merge 25 commits into
Draft
Conversation
lanthora
reviewed
Jul 2, 2026
| } | ||
|
|
||
| // kernel 模式:剥掉 IPIP 外层后写内核 tun。 | ||
| msg.data.erase(0, sizeof(IP4Header)); |
Owner
There was a problem hiding this comment.
这段逻辑的最佳实现是只保留一个 erase 和 write。其他的逻辑用于判定状态后,执行一次到 Netstack 的转发,现在有好几个地方在执行 erase 和 write
a585385 to
06d5a27
Compare
rebase 到已完成 spdlog→Poco 迁移的上游后,netstack 模块(本次 UDP
全锥形改造新增)仍停留在 spdlog API,导致 CANDY_NETSTACK=ON 编译失败
(spdlog/spdlog.h 头缺失)。
将 6 个 netstack 文件的日志统一迁移到项目 Poco 封装:
- spdlog::{debug,warn,error,critical,info} -> candy::logger().{debug,warning,error,fatal,information}
- 格式化从 spdlog 的 "{}" 改为 Poco::format 的 printf 风格占位符
- 按参数类型精确匹配格式符(%s/%hu/%zu/%d),bool 与 tcp_sndbuf
返回值用 (int) 显式转换,指针用 (void*)+%p,避免 Poco::format
运行时类型不匹配([ERRFMT])
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.