mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
nic_router: print packet info before sending it
By now, the 'verbose packets' output when sending packets was printed after finish sending the packet. This makes following the packet flow harder if you have multiple components that print such information. Issue #2732
This commit is contained in:
parent
168407a40a
commit
6a988749a1
@ -1272,12 +1272,12 @@ void Interface::_send_submit_pkt(Packet_descriptor &pkt,
|
||||
size_t pkt_size)
|
||||
{
|
||||
Domain &local_domain = _domain();
|
||||
_source().submit_packet(pkt);
|
||||
local_domain.raise_tx_bytes(pkt_size);
|
||||
if (local_domain.verbose_packets()) {
|
||||
log("[", local_domain, "] snd ",
|
||||
*reinterpret_cast<Ethernet_frame *>(pkt_base));
|
||||
}
|
||||
_source().submit_packet(pkt);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user