diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-12 01:30:49 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-12 01:30:49 +0100 |
commit | d5dbb602b8cfd2025095f96283bbe8fad993527b (patch) | |
tree | b4aec0169d57c1ca5c8c4f541b8f84569f5c3a69 /Kernel/NetworkAdapter.cpp | |
parent | 90f60d2f650a417a8ffd002d2cfa22605941069f (diff) | |
download | serenity-d5dbb602b8cfd2025095f96283bbe8fad993527b.zip |
Kernel: Tidy up networking code with some named constants.
Diffstat (limited to 'Kernel/NetworkAdapter.cpp')
-rw-r--r-- | Kernel/NetworkAdapter.cpp | 2 |
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); |