From 5026f823fa2708404302aa59d03401635a435c0b Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Fri, 27 Oct 2023 00:48:21 +0200 Subject: Kernel/Networking/LibC: Add syscalls and libc functions for UDP This allows a UDP server to be created in userland and read data. Currently it can't send data and is very very simplistic. Code is horrible and probably needs some fixing until it can be further built upon. --- network/ethernet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'network/ethernet.h') diff --git a/network/ethernet.h b/network/ethernet.h index 88a4dc6..0fdcee3 100644 --- a/network/ethernet.h +++ b/network/ethernet.h @@ -1,5 +1,5 @@ #include -void handle_ethernet(uint8_t *packet, uint64_t packet_length); +void handle_ethernet(const uint8_t *packet, uint64_t packet_length); void send_ethernet_packet(uint8_t mac_dst[6], uint16_t type, uint8_t *payload, uint64_t payload_length); -- cgit v1.2.3