mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-11 14:39:32 +01:00
fixes for non BSD
This commit is contained in:
parent
967b27b9c5
commit
8bec8954c5
6 changed files with 96 additions and 53 deletions
|
|
@ -831,7 +831,6 @@ Network::Errno BSD::SetSockOptImpl(s32 fd, u32 level, Network::OptName optname,
|
|||
|
||||
ASSERT(optval.size() == sizeof(u32));
|
||||
auto value = GetValue<u32>(optval);
|
||||
|
||||
switch (optname) {
|
||||
case Network::OptName::REUSEADDR:
|
||||
ASSERT(value == 0 || value == 1);
|
||||
|
|
@ -853,6 +852,12 @@ Network::Errno BSD::SetSockOptImpl(s32 fd, u32 level, Network::OptName optname,
|
|||
case Network::OptName::NOSIGPIPE:
|
||||
LOG_WARNING(Service, "(STUBBED) setting NOSIGPIPE to {}", value);
|
||||
return Network::Errno::SUCCESS;
|
||||
case Network::OptName::REUSEPORT:
|
||||
return socket->SetReusePort(value);
|
||||
case Network::OptName::TIMESTAMP:
|
||||
return socket->SetTimeStamp(value);
|
||||
case Network::OptName::ACCEPTFILTER:
|
||||
return socket->SetAcceptFilter(value);
|
||||
default:
|
||||
UNIMPLEMENTED_MSG("Unimplemented optname={}", optname);
|
||||
return Network::Errno::SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue