1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

Kernel: Make sure we increment the TX counter

This was broken by b436dd1.
This commit is contained in:
Gunnar Beutner 2021-06-04 17:58:55 +02:00 committed by Andreas Kling
parent c66b281856
commit 60298121d8
6 changed files with 15 additions and 9 deletions

View file

@ -230,7 +230,7 @@ KResultOr<size_t> IPv4Socket::sendto(FileDescription&, const UserOrKernelBuffer&
routing_decision.adapter->release_packet_buffer(*packet);
return EFAULT;
}
routing_decision.adapter->send_raw({ packet->buffer.data(), packet->buffer.size() });
routing_decision.adapter->send_packet({ packet->buffer.data(), packet->buffer.size() });
routing_decision.adapter->release_packet_buffer(*packet);
return data_length;
}