Kernel: Support binding to INADDR_ANY (all IPs)

This commit is contained in:
Conrad Pankoff 2019-08-09 12:38:56 +10:00 committed by Andreas Kling
commit 4fcbbd24f7
Notes: sideshowbarker 2024-07-19 12:48:27 +09:00
3 changed files with 17 additions and 8 deletions

View file

@ -95,9 +95,6 @@ KResult IPv4Socket::listen(int backlog)
if (rc < 0)
return KResult(-EADDRINUSE);
if (m_local_address.to_u32() == 0)
return KResult(-EADDRINUSE);
set_backlog(backlog);
kprintf("IPv4Socket{%p} listening with backlog=%d\n", this, backlog);