diff options
-rw-r--r-- | pkg/ipstack/ipstack.go | 5 | ||||
-rwxr-xr-x | vhost | bin | 3191006 -> 3191134 bytes | |||
-rwxr-xr-x | vrouter | bin | 3182993 -> 3183073 bytes |
3 files changed, 2 insertions, 3 deletions
diff --git a/pkg/ipstack/ipstack.go b/pkg/ipstack/ipstack.go index 9ffe34f..4a5fe30 100644 --- a/pkg/ipstack/ipstack.go +++ b/pkg/ipstack/ipstack.go @@ -901,8 +901,8 @@ func HandleTCP(src *Interface, message []byte, hdr *ipv4header.IPv4Header) error tcpHdr := &header.TCPFields{ SrcPort: tcpHdr.DstPort, DstPort: tcpHdr.SrcPort, - SeqNum: tcpHdr.SeqNum, - AckNum: tcpHdr.SeqNum + 1, + SeqNum: startingSeqNum, + AckNum: tcpHdr.SeqNum + 1, // FIXME: in the ACK case, this should be plus the size of the data DataOffset: 20, Flags: 0x10, WindowSize: MAX_WINDOW_SIZE, @@ -919,7 +919,6 @@ func HandleTCP(src *Interface, message []byte, hdr *ipv4header.IPv4Header) error copy(socketEntry.Conn.RecvBuffer.buffer[ptr:ptr+l], tcpPayload) socketEntry.Conn.RecvBuffer.recvNext += l fmt.Println("recvNext: ", socketEntry.Conn.RecvBuffer.recvNext) - fmt.Println("recvBuffer: ", socketEntry.Conn.RecvBuffer.buffer) break } // add to table if available Binary files differBinary files differ |