Kernel: Rename TCPFlags::PUSH => PSH

Let's use the proper name of this TCP flag.
This commit is contained in:
Andreas Kling 2022-03-17 14:24:21 +01:00
parent 15dc48b431
commit f0dde1cee1
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ struct TCPFlags {
FIN = 0x01,
SYN = 0x02,
RST = 0x04,
PUSH = 0x08,
PSH = 0x08,
ACK = 0x10,
URG = 0x20
};

View file

@ -207,7 +207,7 @@ ErrorOr<size_t> TCPSocket::protocol_send(const UserOrKernelBuffer& data, size_t
return set_so_error(EHOSTUNREACH);
size_t mss = routing_decision.adapter->mtu() - sizeof(IPv4Packet) - sizeof(TCPPacket);
data_length = min(data_length, mss);
TRY(send_tcp_packet(TCPFlags::PUSH | TCPFlags::ACK, &data, data_length, &routing_decision));
TRY(send_tcp_packet(TCPFlags::PSH | TCPFlags::ACK, &data, data_length, &routing_decision));
return data_length;
}