reno算法 快速重传

This commit is contained in:
impact-eintr
2022-12-19 16:50:48 +08:00
parent 9fa4a0b87f
commit 7c7b745482
3 changed files with 96 additions and 11 deletions

View File

@@ -56,7 +56,7 @@ func (e *endpoint) WritePacket(r *stack.Route, hdr buffer.Prependable, payload b
// Because we're immediately turning around and writing the packet back to the
// rx path, we intentionally don't preserve the remote and local link
// addresses from the stack.Route we're passed.
logger.NOTICE(fmt.Sprintf("统计分发 %d 报文", e.count))
//logger.NOTICE(fmt.Sprintf("统计分发 %d 报文", e.count))
e.dispatcher.DeliverNetworkPacket(e, "" /* remoteLinkAddr */, "" /* localLinkAddr */, protocol, vv)
return nil