Unsure if this is correct but as far as connections and speeds goes, it remained unchanged.

This commit is contained in:
Z8Griz 2024-08-27 13:50:40 -06:00
parent ff978b1ce3
commit e363a0b0b6
3 changed files with 6 additions and 5 deletions

View file

@ -20,8 +20,9 @@ Cd(__DIR__);;
#include "Protocols/DNS" #include "Protocols/DNS"
#include "Utilities/Ping" #include "Utilities/Ping"
#include "Protocols/TCP/MakeTCP" //#include "Protocols/TCP/MakeTCP"
#include "Protocols/TCP/TCP_V2.ZC
#include "Protocols/DHCP" #include "Protocols/DHCP"
#include "Utilities/NetHandler" // needs IPV4, UDP, ICMP #include "Utilities/NetHandler" // needs IPV4, UDP, ICMP

View file

@ -6,8 +6,8 @@
#define TCP_RTO_MIN 0.2 #define TCP_RTO_MIN 0.2
#define TCP_RTO_MAX 10 #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 RECEIVE_WINDOW; // gets host window size. It is not static.
U16 SEND_WINDOW; // gets receive window size from host, then adjust accordingly. U16 SEND_WINDOW; // gets receive window size from host, then adjust accordingly.

View file

@ -101,7 +101,7 @@ I64 TCPPacketAllocate(U8 **frame_out,
header->ack_num = EndianU32(ack_num); header->ack_num = EndianU32(ack_num);
header->data_offset = (sizeof(CTCPHeader) / 4) << 4; // ??? header->data_offset = (sizeof(CTCPHeader) / 4) << 4; // ???
header->flags = flags; 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->checksum = 0;
header->urgent_pointer = 0; header->urgent_pointer = 0;