mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 21:28:21 +00:00
sock: MSG_PEEK and other fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user