From a4c4897af8f89a0b90de90570f28eccbc3d7cbe7 Mon Sep 17 00:00:00 2001 From: no92 Date: Sat, 11 May 2024 14:56:57 +0200 Subject: [PATCH] sysdeps/managarm: stub some setsockopt requests --- sysdeps/managarm/generic/socket.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sysdeps/managarm/generic/socket.cpp b/sysdeps/managarm/generic/socket.cpp index a979bdfc5a..71286e4c28 100644 --- a/sysdeps/managarm/generic/socket.cpp +++ b/sysdeps/managarm/generic/socket.cpp @@ -438,6 +438,9 @@ int sys_setsockopt(int fd, int layer, int number, }else if(layer == IPPROTO_TCP && number == TCP_KEEPIDLE) { mlibc::infoLogger() << "\e[31mmlibc: setsockopt() call with IPPROTO_TCP and TCP_KEEPIDLE is unimplemented\e[39m" << frg::endlog; return 0; + }else if(layer == SOL_NETLINK && number == NETLINK_BROADCAST_ERROR) { + mlibc::infoLogger() << "\e[31mmlibc: setsockopt() call with SOL_NETLINK and NETLINK_BROADCAST_ERROR is unimplemented\e[39m" << frg::endlog; + return 0; }else if(layer == SOL_NETLINK && number == NETLINK_EXT_ACK) { mlibc::infoLogger() << "\e[31mmlibc: setsockopt() call with SOL_NETLINK and NETLINK_EXT_ACK is unimplemented\e[39m" << frg::endlog; return 0; @@ -450,6 +453,9 @@ int sys_setsockopt(int fd, int layer, int number, }else if(layer == IPPROTO_TCP && number == TCP_KEEPCNT) { mlibc::infoLogger() << "\e[31mmlibc: setsockopt() call with IPPROTO_TCP and TCP_KEEPCNT is unimplemented\e[39m" << frg::endlog; return 0; + }else if(layer == IPPROTO_IP && number == IP_PKTINFO) { + mlibc::infoLogger() << "\e[31mmlibc: setsockopt() call with IPPROTO_IP and IP_PKTINFO is unimplemented\e[39m" << frg::endlog; + return 0; }else{ mlibc::panicLogger() << "\e[31mmlibc: Unexpected setsockopt() call, layer: " << layer << " number: " << number << "\e[39m" << frg::endlog; __builtin_unreachable();