aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc
diff options
context:
space:
mode:
authorMarvin Borner2020-11-14 12:13:59 +0100
committerMarvin Borner2020-11-14 12:13:59 +0100
commit4d9e6b63d6cad0f6a9b50782b1d540220cfcdf6e (patch)
tree1824fae51f8068ed01380bc1e39db8cbaf2dcb0f /kernel/inc
parent01afc1e70f47f409f5e4bb6b61a20aaa70a84797 (diff)
Added udp sockets
Diffstat (limited to 'kernel/inc')
-rw-r--r--kernel/inc/net.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/inc/net.h b/kernel/inc/net.h
index 2abb584..e0c29eb 100644
--- a/kernel/inc/net.h
+++ b/kernel/inc/net.h
@@ -164,6 +164,12 @@ struct socket {
};
void ethernet_handle_packet(struct ethernet_packet *packet, int len);
+
+struct socket *net_open(enum socket_type type);
+void net_close(struct socket *socket);
+int net_connect(struct socket *socket, u32 ip_addr, u16 dst_port);
+void net_send(struct socket *socket, void *data, u32 len);
+
void net_install(void);
#endif