diff options
author | Marvin Borner | 2020-11-20 15:58:32 +0100 |
---|---|---|
committer | Marvin Borner | 2020-11-20 15:58:32 +0100 |
commit | 5708ab26c0de8fc1be3e96a0f3f092da0938169e (patch) | |
tree | de63e635b99923a17120030317b69d57ea676d6f /kernel/inc | |
parent | 56e33a757dee8b6c34cc1721e58d84be5f353e23 (diff) |
Fixed some network race conditions
Diffstat (limited to 'kernel/inc')
-rw-r--r-- | kernel/inc/net.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/inc/net.h b/kernel/inc/net.h index 0c36691..ddc2405 100644 --- a/kernel/inc/net.h +++ b/kernel/inc/net.h @@ -157,7 +157,7 @@ struct arp_table_entry { 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_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); |