sock: pass protocol to sockets

This commit is contained in:
Matheus
2026-09-10 16:41:21 -03:00
parent 894d9bdaf9
commit 79752fb5e0
9 changed files with 36 additions and 26 deletions
+2 -2
View File
@@ -37,9 +37,9 @@ syscallret_t syscall_socketpair(context_t *, int domain, int type, int protocol)
// create pair
if (type == SOCK_SEQPACKET)
ret.errno = localsock_pair_seqpacket(&sock1, &sock2);
ret.errno = localsock_pair_seqpacket(&sock1, &sock2, protocol);
else
ret.errno = localsock_pair(&sock1, &sock2);
ret.errno = localsock_pair(&sock1, &sock2, protocol);
if (ret.errno)
return ret;