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:
parent
d2176eddfc
commit
274b500bac
5 changed files with 54 additions and 42 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue