Skip to content

Commit

Permalink
sysdeps/managarm: stub some setsockopt requests
Browse files Browse the repository at this point in the history
  • Loading branch information
no92 committed May 11, 2024
1 parent 7aa0431 commit a4c4897
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sysdeps/managarm/generic/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down

0 comments on commit a4c4897

Please sign in to comment.