From a5a04ef3de6ad3f81d37a04fede23eb3b4b348b1 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 18 Nov 2020 17:53:31 +0100 Subject: Added browser and many networking things --- kernel/inc/net.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'kernel/inc/net.h') diff --git a/kernel/inc/net.h b/kernel/inc/net.h index 5630e97..0c36691 100644 --- a/kernel/inc/net.h +++ b/kernel/inc/net.h @@ -40,17 +40,6 @@ #define DHCP_REPLY 2 #define DHCP_TRANSACTION_IDENTIFIER 0x18122002 -#define DNS_NOERROR 0 -#define DNS_FORMERR 1 -#define DNS_SERVFAIL 2 -#define DNS_NXDOMAIN 3 -#define DNS_NOTIMP 4 -#define DNS_REFUSED 5 -#define DNS_YXDOMAIN 6 -#define DNS_XRRSET 7 -#define DNS_NOTAUTH 8 -#define DNS_NOTZONE 9 - #define HARDWARE_TYPE_ETHERNET 0x01 // Hardcoded ports - TODO! @@ -171,6 +160,8 @@ 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); +int net_receive(struct socket *socket, void *buf, u32 len); +int net_data_available(struct socket *socket); void net_install(void); -- cgit v1.2.3