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
+1 -1
View File
@@ -382,7 +382,7 @@ static socketops_t socketops = {
.connect = udp_connect
};
socket_t *udp_createsocket() {
socket_t *udp_createsocket(int protocol) {
// XXX possibly move this to a slab?
udpsocket_t *socket = alloc(sizeof(udpsocket_t));
if (socket == NULL)