Kernel: Add const to packet data in send_raw call

This commit is contained in:
Conrad Pankoff 2019-08-28 11:22:10 +10:00 committed by Andreas Kling
parent 36d349f7a7
commit 41e9ad5ea0
Notes: sideshowbarker 2024-07-19 12:27:43 +09:00

View File

@ -55,7 +55,7 @@ void NetworkAdapter::send(const MACAddress& destination, const ARPPacket& packet
m_packets_out++;
m_bytes_out += size_in_bytes;
memcpy(eth->payload(), &packet, sizeof(ARPPacket));
send_raw((u8*)eth, size_in_bytes);
send_raw((const u8*)eth, size_in_bytes);
}
void NetworkAdapter::send_ipv4(const MACAddress& destination_mac, const IPv4Address& destination_ipv4, IPv4Protocol protocol, const u8* payload, size_t payload_size)