发送接收窗可视化Debug

This commit is contained in:
impact-eintr
2022-12-16 12:23:30 +08:00
parent c16d437fb8
commit 407f4c0b42
9 changed files with 125 additions and 29 deletions

View File

@@ -62,7 +62,7 @@ type segment struct {
sequenceNumber seqnum.Value // tcp序号 第一个字节在整个报文的位置
ackNumber seqnum.Value // 确认号 希望继续获取的下一个字节序号
flags uint8
window seqnum.Size
window seqnum.Size // NOTE 这里是本地的接收窗口大小 不是发送窗口
// parsedOptions stores the parsed values from the options in the segment.
parsedOptions header.TCPOptions
options []byte