mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-05 18:44:27 +03:00
Kernel: Add const to packet data in send_raw call
This commit is contained in:
parent
36d349f7a7
commit
41e9ad5ea0
Notes:
sideshowbarker
2024-07-19 12:27:43 +09:00
Author: https://github.com/deoxxa Commit: https://github.com/SerenityOS/serenity/commit/41e9ad5ea09 Pull-request: https://github.com/SerenityOS/serenity/pull/499 Reviewed-by: https://github.com/awesomekling
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user