mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
Kernel: Put some network log messages behind debug flags
This commit is contained in:
parent
328d52b323
commit
a2b61e30c5
3 changed files with 12 additions and 0 deletions
|
@ -190,7 +190,9 @@ ssize_t IPv4Socket::sendto(FileDescription&, const void* data, size_t data_lengt
|
|||
if (rc < 0)
|
||||
return rc;
|
||||
|
||||
#ifdef IPV4_SOCKET_DEBUG
|
||||
kprintf("sendto: destination=%s:%u\n", m_peer_address.to_string().characters(), m_peer_port);
|
||||
#endif
|
||||
|
||||
if (type() == SOCK_RAW) {
|
||||
routing_decision.adapter->send_ipv4(routing_decision.next_hop, m_peer_address, (IPv4Protocol)protocol(), (const u8*)data, data_length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue