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

increase bufsiz

This commit is contained in:
fumiama
2021-12-31 17:54:19 +08:00
parent a0c42f3da2
commit 74b788fe7f

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()+68) // 增加报头长度与 TEA 冗余
buf2 := make([]byte, m.MTU()+68) // 增加报头长度与 TEA 冗余
buf := make([]byte, (m.MTU()+68)*4096) // 增加报头长度与 TEA 冗余
buf2 := make([]byte, (m.MTU()+68)*4096) // 增加报头长度与 TEA 冗余
off := 0
isrev := false
for nc.hasstart { // 从 NIC 发送