summaryrefslogtreecommitdiff
path: root/Kernel/Net/IPv4Socket.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-07-28 20:19:22 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-28 20:19:22 +0200
commitf5ac4da993af6512041f060e95d3e1c2be13d93b (patch)
tree7a0aab0c6c2aea83620bb82153e82c0b40e38a43 /Kernel/Net/IPv4Socket.cpp
parentfffc5896d869ac73e5e579d66ea5e001fccbed22 (diff)
downloadserenity-f5ac4da993af6512041f060e95d3e1c2be13d93b.zip
Kernel: Use AK::Span a bunch in the network adapter code
Diffstat (limited to 'Kernel/Net/IPv4Socket.cpp')
-rw-r--r--Kernel/Net/IPv4Socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/IPv4Socket.cpp b/Kernel/Net/IPv4Socket.cpp
index fb8d179601..c47913abaa 100644
--- a/Kernel/Net/IPv4Socket.cpp
+++ b/Kernel/Net/IPv4Socket.cpp
@@ -226,7 +226,7 @@ ssize_t IPv4Socket::sendto(FileDescription&, const void* data, size_t data_lengt
#endif
if (type() == SOCK_RAW) {
- routing_decision.adapter->send_ipv4(routing_decision.next_hop, m_peer_address, (IPv4Protocol)protocol(), (const u8*)data, data_length, m_ttl);
+ routing_decision.adapter->send_ipv4(routing_decision.next_hop, m_peer_address, (IPv4Protocol)protocol(), { (const u8*)data, data_length }, m_ttl);
return data_length;
}