summaryrefslogtreecommitdiff
path: root/Kernel/Net/TCPSocket.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-12-18 16:13:23 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-18 19:22:26 +0100
commit8cc81c2953d247eaa7c13227ed5d78f471cc21b4 (patch)
treecac5120b327b69e37b09af683d72cf3017ee349a /Kernel/Net/TCPSocket.h
parent8e79bde2b73d18f31e4dcc1b33c61cd5ec73c83d (diff)
downloadserenity-8cc81c2953d247eaa7c13227ed5d78f471cc21b4.zip
Kernel/Net: Make IPv4Socket::protocol_receive() take a ReadonlyBytes
The overrides of this function don't need to know how the original packet was stored, so let's just give them a ReadonlyBytes view of the raw packet data.
Diffstat (limited to 'Kernel/Net/TCPSocket.h')
-rw-r--r--Kernel/Net/TCPSocket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/TCPSocket.h b/Kernel/Net/TCPSocket.h
index 452de7deec..83230b3f08 100644
--- a/Kernel/Net/TCPSocket.h
+++ b/Kernel/Net/TCPSocket.h
@@ -177,7 +177,7 @@ private:
virtual void shut_down_for_writing() override;
- virtual KResultOr<size_t> protocol_receive(const KBuffer&, UserOrKernelBuffer& buffer, size_t buffer_size, int flags) override;
+ virtual KResultOr<size_t> protocol_receive(ReadonlyBytes raw_ipv4_packet, UserOrKernelBuffer& buffer, size_t buffer_size, int flags) override;
virtual KResultOr<size_t> protocol_send(const UserOrKernelBuffer&, size_t) override;
virtual KResult protocol_connect(FileDescription&, ShouldBlock) override;
virtual int protocol_allocate_local_port() override;