1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 21:25:07 +00:00

Kernel/Net: make setsockopt pretend it understands SO_KEEPALIVE.

This commit is contained in:
Xiao NuoFu 2020-04-05 18:10:19 +02:00 committed by Andreas Kling
parent 5fe521c507
commit 7fd77e9ffe

View file

@ -125,6 +125,9 @@ KResult Socket::setsockopt(int level, int option, const void* value, socklen_t v
m_bound_interface = device;
return KSuccess;
}
case SO_KEEPALIVE:
// FIXME: Obviously, this is not a real keepalive.
return KSuccess;
default:
dbg() << "setsockopt(" << option << ") at SOL_SOCKET not implemented.";
return KResult(-ENOPROTOOPT);