From 072e2e624c667144e47be230c9d25c1526ea451c Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Thu, 3 Oct 2019 18:41:38 +0900 Subject: [PATCH] Call socreate() function from sys_socket() --- kernel/core/cxnet.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/kernel/core/cxnet.c b/kernel/core/cxnet.c index 48104bc..4dca679 100644 --- a/kernel/core/cxnet.c +++ b/kernel/core/cxnet.c @@ -8,10 +8,21 @@ #include #include #include +#include "socket.h" int sys_socket(int domain, int type, int protocol) { - return(-ENOSYS); + int ret_val; + + /* + * The Corax network stack isn't as complicated as the + * BSD or Linux network stacks, so this is all we have + * to do here. + */ + ret_val = socreate(domain, type, protocol); + dbg_printf("socreate(0x%08x, 0x%08x, 0x%08x) = 0x%08x\n", domain, type, protocol, ret_val); + + return(ret_val); } int sys_close(int sockfd) -- 2.47.3