mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
Kernel: Make sure we increment the TX counter
This was broken by b436dd1
.
This commit is contained in:
parent
c66b281856
commit
60298121d8
6 changed files with 15 additions and 9 deletions
|
@ -89,15 +89,16 @@ public:
|
|||
constexpr size_t layer3_payload_offset() const { return sizeof(EthernetFrameHeader); }
|
||||
constexpr size_t ipv4_payload_offset() const { return layer3_payload_offset() + sizeof(IPv4Packet); }
|
||||
|
||||
virtual void send_raw(ReadonlyBytes) = 0;
|
||||
|
||||
Function<void()> on_receive;
|
||||
|
||||
void send_packet(ReadonlyBytes);
|
||||
|
||||
protected:
|
||||
NetworkAdapter();
|
||||
void set_interface_name(const PCI::Address&);
|
||||
void set_mac_address(const MACAddress& mac_address) { m_mac_address = mac_address; }
|
||||
void did_receive(ReadonlyBytes);
|
||||
virtual void send_raw(ReadonlyBytes) = 0;
|
||||
|
||||
void set_loopback_name();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue