Skip to content

Commit

Permalink
Kernel: Don't set sequence manually; send_tcp_packet will do it
Browse files Browse the repository at this point in the history
  • Loading branch information
deoxxa authored and awesomekling committed Sep 8, 2019
1 parent e8a1084 commit cfcb53f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Kernel/Net/NetworkTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,6 @@ void handle_tcp(const IPv4Packet& ipv4_packet)
client->set_sequence_number(1000);
client->set_ack_number(tcp_packet.sequence_number() + payload_size + 1);
client->send_tcp_packet(TCPFlags::SYN | TCPFlags::ACK);
client->set_sequence_number(1001);
client->set_state(TCPSocket::State::SynReceived);
return;
}
Expand Down

0 comments on commit cfcb53f

Please sign in to comment.