Browse Source

Kernel/Net: make setsockopt pretend it understands SO_KEEPALIVE.

Xiao NuoFu 5 years ago
parent
commit
7fd77e9ffe
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Kernel/Net/Socket.cpp

+ 3 - 0
Kernel/Net/Socket.cpp

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