summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2021-01-19 01:33:23 +0330
committerAndreas Kling <kling@serenityos.org>2021-02-15 17:32:56 +0100
commit1e79c0461612807eeb0783665fba4e409c56462e (patch)
tree68ff10627f2cb5bf0f40c584a804a24c45eb9c86 /Kernel
parent2db4ab80a2653b14e5b41cc75a26669cf165f7ec (diff)
downloadserenity-1e79c0461612807eeb0783665fba4e409c56462e.zip
Kernel+LibC: Stub out SO_{SND_RCV}BUF
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Net/LocalSocket.cpp4
-rw-r--r--Kernel/UnixTypes.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/Kernel/Net/LocalSocket.cpp b/Kernel/Net/LocalSocket.cpp
index 642bc62156..6ce81118ac 100644
--- a/Kernel/Net/LocalSocket.cpp
+++ b/Kernel/Net/LocalSocket.cpp
@@ -374,6 +374,10 @@ KResult LocalSocket::getsockopt(FileDescription& description, int level, int opt
return EFAULT;
switch (option) {
+ case SO_SNDBUF:
+ TODO();
+ case SO_RCVBUF:
+ TODO();
case SO_PEERCRED: {
if (size < sizeof(ucred))
return EINVAL;
diff --git a/Kernel/UnixTypes.h b/Kernel/UnixTypes.h
index 294b786772..be74075212 100644
--- a/Kernel/UnixTypes.h
+++ b/Kernel/UnixTypes.h
@@ -512,6 +512,8 @@ enum {
SO_TYPE,
SO_ERROR,
SO_PEERCRED,
+ SO_RCVBUF,
+ SO_SNDBUF,
SO_REUSEADDR,
SO_BINDTODEVICE,
SO_KEEPALIVE,