summaryrefslogtreecommitdiff
path: root/Kernel/Net/NetworkTask.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/NetworkTask.cpp
parentfffc5896d869ac73e5e579d66ea5e001fccbed22 (diff)
downloadserenity-f5ac4da993af6512041f060e95d3e1c2be13d93b.zip
Kernel: Use AK::Span a bunch in the network adapter code
Diffstat (limited to 'Kernel/Net/NetworkTask.cpp')
-rw-r--r--Kernel/Net/NetworkTask.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/NetworkTask.cpp b/Kernel/Net/NetworkTask.cpp
index eb827b6d62..e88440344e 100644
--- a/Kernel/Net/NetworkTask.cpp
+++ b/Kernel/Net/NetworkTask.cpp
@@ -285,7 +285,7 @@ void handle_icmp(const EthernetFrameHeader& eth, const IPv4Packet& ipv4_packet)
memcpy(response.payload(), request.payload(), icmp_payload_size);
response.header.set_checksum(internet_checksum(&response, icmp_packet_size));
// FIXME: What is the right TTL value here? Is 64 ok? Should we use the same TTL as the echo request?
- adapter->send_ipv4(eth.source(), ipv4_packet.source(), IPv4Protocol::ICMP, buffer.data(), buffer.size(), 64);
+ adapter->send_ipv4(eth.source(), ipv4_packet.source(), IPv4Protocol::ICMP, buffer.span(), 64);
}
}