1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-11 04:06:14 +08:00

fix 分片

This commit is contained in:
fumiama
2021-12-31 13:24:49 +08:00
parent a5e6135dd9
commit 9316a0064e
3 changed files with 12 additions and 5 deletions

View File

@@ -58,8 +58,8 @@ func (nc *NIC) Start(m *link.Me) {
logrus.Infoln("[lower] recv write", n, "bytes packet to nic")
}
}()
buf := make([]byte, m.MTU()+64) // 增加报头长度与 TEA 冗余
buf2 := make([]byte, m.MTU()+64) // 增加报头长度与 TEA 冗余
buf := make([]byte, m.MTU()+68) // 增加报头长度与 TEA 冗余
buf2 := make([]byte, m.MTU()+68) // 增加报头长度与 TEA 冗余
off := 0
isrev := false
for nc.hasstart { // 从 NIC 发送