From d50d18c9da3a125f0196bec89802dec1c5b0b800 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Fri, 27 Oct 2023 22:17:24 +0200 Subject: Kernel/LibC/Networking: Be able to send UDP messages Now it can send UDP messages to a specific IP address and libc has enough to create a basic UDP ECHO server, that is kinda cool. --- network/ipv4.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'network/ipv4.h') diff --git a/network/ipv4.h b/network/ipv4.h index 294a0ef..f578202 100644 --- a/network/ipv4.h +++ b/network/ipv4.h @@ -1,3 +1,5 @@ #include void handle_ipv4(const uint8_t *payload, uint32_t packet_length); +void send_ipv4_packet(uint32_t ip, uint8_t protocol, const uint8_t *payload, + uint16_t length); -- cgit v1.2.3