Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有用于计算或验证 TCP 校验和的 C 库函数?我看到了一些手工编码的函数,但认为某处必须有一个 lib 函数。
不,没有标准库函数。每个人都只是in_cksum在需要时复制和粘贴相同的功能。傻了吧?
in_cksum