summaryrefslogtreecommitdiff
path: root/Kernel/Net/NetworkTask.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-31 12:13:16 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-31 12:13:16 +0100
commit99842016349d4112018566dab411dcbb82327b77 (patch)
treefe7b35414bd4ce8e61a6368114ede6432d6eda6d /Kernel/Net/NetworkTask.cpp
parentb00799b9ce7f9e3c0c5642796b7bfb223168684b (diff)
downloadserenity-99842016349d4112018566dab411dcbb82327b77.zip
Kernel: Use KResult a bit more in the IPv4 networking 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 edc25e0d6f..6420c71601 100644
--- a/Kernel/Net/NetworkTask.cpp
+++ b/Kernel/Net/NetworkTask.cpp
@@ -282,7 +282,7 @@ void handle_icmp(const EthernetFrameHeader& eth, const IPv4Packet& ipv4_packet,
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?
auto response_buffer = UserOrKernelBuffer::for_kernel_buffer((u8*)&response);
- adapter->send_ipv4(eth.source(), ipv4_packet.source(), IPv4Protocol::ICMP, response_buffer, buffer.size(), 64);
+ [[maybe_unused]] auto result = adapter->send_ipv4(eth.source(), ipv4_packet.source(), IPv4Protocol::ICMP, response_buffer, buffer.size(), 64);
}
}