summaryrefslogtreecommitdiff
path: root/Kernel/NetworkAdapter.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-12 01:30:49 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-12 01:30:49 +0100
commitd5dbb602b8cfd2025095f96283bbe8fad993527b (patch)
treeb4aec0169d57c1ca5c8c4f541b8f84569f5c3a69 /Kernel/NetworkAdapter.cpp
parent90f60d2f650a417a8ffd002d2cfa22605941069f (diff)
downloadserenity-d5dbb602b8cfd2025095f96283bbe8fad993527b.zip
Kernel: Tidy up networking code with some named constants.
Diffstat (limited to 'Kernel/NetworkAdapter.cpp')
-rw-r--r--Kernel/NetworkAdapter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/NetworkAdapter.cpp b/Kernel/NetworkAdapter.cpp
index b7e29967ae..75d32c7763 100644
--- a/Kernel/NetworkAdapter.cpp
+++ b/Kernel/NetworkAdapter.cpp
@@ -14,7 +14,7 @@ NetworkAdapter::~NetworkAdapter()
void NetworkAdapter::send(const MACAddress& destination, const ARPPacket& packet)
{
- int size_in_bytes = sizeof(EthernetFrameHeader) + sizeof(ARPPacket) + 4;
+ int size_in_bytes = sizeof(EthernetFrameHeader) + sizeof(ARPPacket) + sizeof(EthernetFrameCheckSequence);
auto* eth = (EthernetFrameHeader*)kmalloc(size_in_bytes);
eth->set_source(mac_address());
eth->set_destination(destination);