sockets: expose raw sockets to userspace

This commit is contained in:
Matheus
2026-09-10 17:56:54 -03:00
parent e17ba000e2
commit 66b0cb9076
3 changed files with 52 additions and 5 deletions
+5
View File
@@ -36,6 +36,11 @@ syscallret_t syscall_socket(context_t *, int domain, int type, int protocol) {
socktype = SOCKET_TYPE_LOCAL;
if (type == SOCK_SEQPACKET)
socktype = SOCKET_TYPE_LOCAL_SEQPACKET;
break;
case AF_PACKET:
if (type == SOCK_DGRAM)
socktype = SOCKET_TYPE_RAW_STRIPPED;
break;
}
if (socktype == -1) {