mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-09 20:43:34 -04:00
Refactor
This commit is contained in:
parent
f12c035dc6
commit
bae5c3443e
@ -106,4 +106,6 @@ network::ethernet::packet network::ethernet::prepare_packet(network::interface_d
|
||||
|
||||
void network::ethernet::finalize_packet(network::interface_descriptor& interface, packet& p){
|
||||
interface.send(p);
|
||||
|
||||
delete[] p.payload;
|
||||
}
|
||||
|
@ -194,8 +194,6 @@ void send_packet(const network::interface_descriptor& interface, network::ethern
|
||||
|
||||
out_dword(iobase + TX_ADDR + entry * 4, tx_desc.buffer_phys);
|
||||
out_dword(iobase + TX_STATUS + entry * 4, uint32_t(256) << 16 | packet.payload_size);
|
||||
|
||||
delete[] packet.payload; //TODO Probably not the base place
|
||||
}
|
||||
|
||||
} //end of anonymous namespace
|
||||
|
Loading…
x
Reference in New Issue
Block a user