mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-27 07:46:33 +00:00
Fix TCP RST ACK loop bug.
This commit is contained in:
parent
dc66f78d51
commit
5a145ef081
3 changed files with 4 additions and 4 deletions
Binary file not shown.
|
@ -277,8 +277,8 @@ I64 TCPHandleRefuse(CIPV4Packet *packet, CTCPHeader *header, I64 length)
|
||||||
|
|
||||||
// review RFC Reset-Generation ...
|
// review RFC Reset-Generation ...
|
||||||
|
|
||||||
if (Bt(&header->flags, TCPf_RST) && Bt(&header->flags, TCPf_ACK))
|
if (Bt(&header->flags, TCPf_RST))
|
||||||
return 0; // bail: we probably sent an RST earlier, and this is the acknowledgement
|
return 0; // bail: don't respond to a reset for a connection that doesn't exist
|
||||||
|
|
||||||
de_index = TCPSend(packet->destination_ip_address,
|
de_index = TCPSend(packet->destination_ip_address,
|
||||||
EndianU16(header->destination_port),
|
EndianU16(header->destination_port),
|
||||||
|
|
|
@ -15,8 +15,8 @@ U0 LoadDocDefines()
|
||||||
//$LK,"DD_BOOT_HIGH_LOC_DVD",A="FF:::/System/Boot/BootDVD.ZC,DD_BOOT_HIGH_LOC_DVD"$
|
//$LK,"DD_BOOT_HIGH_LOC_DVD",A="FF:::/System/Boot/BootDVD.ZC,DD_BOOT_HIGH_LOC_DVD"$
|
||||||
|
|
||||||
$TR,"LineRep"$
|
$TR,"LineRep"$
|
||||||
$ID,2$DefinePrint("DD_ZEALOS_LOC","95,265");
|
$ID,2$DefinePrint("DD_ZEALOS_LOC","95,269");
|
||||||
$ID,-2$
|
$ID,-2$
|
||||||
DefinePrint("DD_MP_VECT", "%08X", MP_VECT_ADDR);
|
DefinePrint("DD_MP_VECT", "%08X", MP_VECT_ADDR);
|
||||||
DefinePrint("DD_MP_VECT_END", "%08X", MP_VECT_ADDR + COREAP_16BIT_INIT_END - COREAP_16BIT_INIT - 1);
|
DefinePrint("DD_MP_VECT_END", "%08X", MP_VECT_ADDR + COREAP_16BIT_INIT_END - COREAP_16BIT_INIT - 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue