diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-07-28 02:07:34 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-08-01 04:23:41 +0000 |
commit | 9fad80c34cbe576ec9c9f6124540a044a1bc0dde (patch) | |
tree | 27cd2b0758c782989c64536569e3c2f574af75d2 /Kernel/Net | |
parent | f722612e177b6d715e814b9cdc4139abbaf4061b (diff) | |
download | serenity-9fad80c34cbe576ec9c9f6124540a044a1bc0dde.zip |
Kernel: Silently discard `SO_REUSEADDR`
We were previously rejecting `SO_REUSEADDR` with an `ENOPROTOOPT`, but
that made QEMU unhappy. Instead, just silently discard it and print a
FIXME message in case anybody wonders what went wrong if the system
won't reuse an address.
Diffstat (limited to 'Kernel/Net')
-rw-r--r-- | Kernel/Net/Socket.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Kernel/Net/Socket.cpp b/Kernel/Net/Socket.cpp index 7a46ba1d0f..1b8e75c13a 100644 --- a/Kernel/Net/Socket.cpp +++ b/Kernel/Net/Socket.cpp @@ -125,6 +125,9 @@ ErrorOr<void> Socket::setsockopt(int level, int option, Userspace<void const*> u m_routing_disabled = TRY(copy_typed_from_user(static_ptr_cast<int const*>(user_value))) != 0; return {}; } + case SO_REUSEADDR: + dbgln("FIXME: SO_REUSEADDR requested, but not implemented."); + return {}; default: dbgln("setsockopt({}) at SOL_SOCKET not implemented.", option); return ENOPROTOOPT; |