Skip to content

Commit

Permalink
sysdeps/managarm: stub (SOL_IP, IP_RECVERR) setsockopt
Browse files Browse the repository at this point in the history
  • Loading branch information
no92 committed Jan 21, 2025
1 parent 390b2cd commit dfb63ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sysdeps/managarm/generic/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,11 @@ int sys_setsockopt(int fd, int layer, int number, const void *buffer, socklen_t
) << "\e[31mmlibc: setsockopt() call with SOL_SOCKET and SO_RCVTIMEO is unimplemented\e[39m"
<< frg::endlog;
return 0;
} else if (layer == SOL_IP && number == IP_RECVERR) {
mlibc::infoLogger(
) << "\e[31mmlibc: setsockopt() call with SOL_IP and IP_RECVERR is unimplemented\e[39m"
<< frg::endlog;
return 0;
} else {
mlibc::panicLogger() << "\e[31mmlibc: Unexpected setsockopt() call, layer: " << layer
<< " number: " << number << "\e[39m" << frg::endlog;
Expand Down

0 comments on commit dfb63ba

Please sign in to comment.