mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
Kernel: Rename TCPFlags::PUSH => PSH
Let's use the proper name of this TCP flag.
This commit is contained in:
parent
15dc48b431
commit
f0dde1cee1
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ struct TCPFlags {
|
|||
FIN = 0x01,
|
||||
SYN = 0x02,
|
||||
RST = 0x04,
|
||||
PUSH = 0x08,
|
||||
PSH = 0x08,
|
||||
ACK = 0x10,
|
||||
URG = 0x20
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue