This commit is contained in:
Baptiste Wicht 2016-07-09 16:10:36 +02:00
parent f12c035dc6
commit bae5c3443e
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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