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 authored and no92 committed Jun 29, 2024
1 parent 55bb347 commit d244e84
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 @@ -526,6 +526,9 @@ int sys_setsockopt(int fd, int layer, int number,
}else if(layer == SOL_SOCKET && number == SO_SNDTIMEO) {
mlibc::infoLogger() << "\e[31mmlibc: setsockopt() call with SOL_SOCKET and SO_SNDTIMEO 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 d244e84

Please sign in to comment.