mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
Kernel: Add const to packet data in send_raw call
This commit is contained in:
parent
36d349f7a7
commit
41e9ad5ea0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue