From e363a0b0b67b462fede592950c83abcb4790a132 Mon Sep 17 00:00:00 2001 From: Z8Griz <154282263+Z8Griz@users.noreply.github.com> Date: Tue, 27 Aug 2024 13:50:40 -0600 Subject: [PATCH] Unsure if this is correct but as far as connections and speeds goes, it remained unchanged. --- src/Home/Net/Load.ZC | 5 +++-- src/Home/Net/Protocols/TCP/TCP.HH | 4 ++-- src/Home/Net/Protocols/TCP/TCP.ZC | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Home/Net/Load.ZC b/src/Home/Net/Load.ZC index 1dc0981e..6ce0057f 100755 --- a/src/Home/Net/Load.ZC +++ b/src/Home/Net/Load.ZC @@ -20,8 +20,9 @@ Cd(__DIR__);; #include "Protocols/DNS" #include "Utilities/Ping" -#include "Protocols/TCP/MakeTCP" +//#include "Protocols/TCP/MakeTCP" +#include "Protocols/TCP/TCP_V2.ZC #include "Protocols/DHCP" -#include "Utilities/NetHandler" // needs IPV4, UDP, ICMP \ No newline at end of file +#include "Utilities/NetHandler" // needs IPV4, UDP, ICMP diff --git a/src/Home/Net/Protocols/TCP/TCP.HH b/src/Home/Net/Protocols/TCP/TCP.HH index f76ae553..e0a9d6dc 100755 --- a/src/Home/Net/Protocols/TCP/TCP.HH +++ b/src/Home/Net/Protocols/TCP/TCP.HH @@ -6,8 +6,8 @@ #define TCP_RTO_MIN 0.2 #define TCP_RTO_MAX 10 -#define TCP_WINDOW_SIZE 8192 // Should not be static. For now it's okay - +// #define TCP_WINDOW_SIZE 8192 // Should not be static. For now it's okay +U16 WINDOW_SIZE; // Init window size in CTPCPacketAllocate{} ?? Need more study U16 RECEIVE_WINDOW; // gets host window size. It is not static. U16 SEND_WINDOW; // gets receive window size from host, then adjust accordingly. diff --git a/src/Home/Net/Protocols/TCP/TCP.ZC b/src/Home/Net/Protocols/TCP/TCP.ZC index 22e4edcc..619e5886 100755 --- a/src/Home/Net/Protocols/TCP/TCP.ZC +++ b/src/Home/Net/Protocols/TCP/TCP.ZC @@ -101,7 +101,7 @@ I64 TCPPacketAllocate(U8 **frame_out, header->ack_num = EndianU32(ack_num); header->data_offset = (sizeof(CTCPHeader) / 4) << 4; // ??? header->flags = flags; - header->window_size = EndianU16(TCP_WINDOW_SIZE);// Window Size allocation data. Adjusted based on receive window. + header->window_size = EndianU16(WINDOW_SIZE);// Window Size allocation data. Adjusted based on receive window. header->checksum = 0; header->urgent_pointer = 0;