sock: MSG_PEEK and other fixes

This commit is contained in:
Matheus
2024-06-03 21:53:46 -03:00
parent 7d95b6e00d
commit 40d8a05062
9 changed files with 54 additions and 21 deletions
+4 -4
View File
@@ -12,10 +12,10 @@ syscallret_t syscall_socket(context_t *, int domain, int type, int protocol) {
switch (domain) {
case AF_INET:
if (type != SOCK_DGRAM)
break;
socktype = SOCKET_TYPE_UDP;
if (type == SOCK_STREAM)
socktype = SOCKET_TYPE_TCP;
if (type == SOCK_DGRAM)
socktype = SOCKET_TYPE_UDP;
break;
case AF_LOCAL:
socktype = SOCKET_TYPE_LOCAL;