Skip to content

Commit

Permalink
sysdeps/managarm: Handle setsockopt with SOL_SOCKET and SO_OOBINLINE
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke committed Jun 27, 2024
1 parent 89c5130 commit 06c1964
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sysdeps/managarm/generic/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,9 @@ int sys_setsockopt(int fd, int layer, int number,
}else if(layer == SOL_NETLINK && number == NETLINK_ADD_MEMBERSHIP) {
mlibc::infoLogger() << "\e[31mmlibc: setsockopt() call with SOL_NETLINK and NETLINK_ADD_MEMBERSHIP is unimplemented\e[39m" << frg::endlog;
return 0;
}else if(layer == SOL_SOCKET && number == SO_OOBINLINE) {
mlibc::infoLogger() << "\e[31mmlibc: setsockopt() call with SOL_SOCKET and SO_OOBINLINE 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 06c1964

Please sign in to comment.