1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 19:35:06 +00:00

IPv4: Move more stuff from IPv4Socket to TCPSocket.

This commit is contained in:
Andreas Kling 2019-03-14 12:28:30 +01:00
parent d2176eddfc
commit 274b500bac
5 changed files with 54 additions and 42 deletions

View file

@ -276,7 +276,7 @@ void handle_tcp(const EthernetFrameHeader& eth, int frame_size)
);
#endif
auto socket = IPv4Socket::from_tcp_port(tcp_packet.destination_port());
auto socket = TCPSocket::from_port(tcp_packet.destination_port());
if (!socket) {
kprintf("handle_tcp: No TCP socket for port %u\n", tcp_packet.destination_port());
return;