mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:28:11 +00:00
Kernel: Use AK::Span a bunch in the network adapter code
This commit is contained in:
parent
fffc5896d8
commit
f5ac4da993
12 changed files with 47 additions and 46 deletions
|
@ -217,7 +217,7 @@ void TCPSocket::send_tcp_packet(u16 flags, const void* payload, size_t payload_s
|
|||
|
||||
routing_decision.adapter->send_ipv4(
|
||||
routing_decision.next_hop, peer_address(), IPv4Protocol::TCP,
|
||||
buffer.data(), buffer.size(), ttl());
|
||||
buffer.span(), ttl());
|
||||
|
||||
m_packets_out++;
|
||||
m_bytes_out += buffer.size();
|
||||
|
@ -245,7 +245,7 @@ void TCPSocket::send_outgoing_packets()
|
|||
#endif
|
||||
routing_decision.adapter->send_ipv4(
|
||||
routing_decision.next_hop, peer_address(), IPv4Protocol::TCP,
|
||||
packet.buffer.data(), packet.buffer.size(), ttl());
|
||||
packet.buffer.span(), ttl());
|
||||
|
||||
m_packets_out++;
|
||||
m_bytes_out += packet.buffer.size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue