parent
958cdffa7b
commit
f6d31d7243
|
@ -65,9 +65,13 @@ namespace Ipxe {
|
||||||
|
|
||||||
void rx_handler(const char *packet, unsigned packet_len)
|
void rx_handler(const char *packet, unsigned packet_len)
|
||||||
{
|
{
|
||||||
void *buffer = _alloc.alloc(packet_len);
|
try {
|
||||||
Genode::memcpy(buffer, packet, packet_len);
|
void *buffer = _alloc.alloc(packet_len);
|
||||||
_alloc.submit();
|
Genode::memcpy(buffer, packet, packet_len);
|
||||||
|
_alloc.submit();
|
||||||
|
} catch (...) {
|
||||||
|
PDBG("failed to process received packet");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue