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/ethernet.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'network/ethernet.c') diff --git a/network/ethernet.c b/network/ethernet.c index 11a3876..e97ccbd 100644 --- a/network/ethernet.c +++ b/network/ethernet.c @@ -55,17 +55,7 @@ void handle_ethernet(const uint8_t *packet, uint64_t packet_length) { kprintf("OUR OWN CALCULATED crc: %x\n", crc32((const char *)eth_header, (packet_length - 4))); - kprintf("mac dst: "); - for (int i = 0; i < 6; i++) - kprintf("%x", eth_header->mac_dst[i]); - kprintf("\n"); - kprintf("mac src: "); - for (int i = 0; i < 6; i++) - kprintf("%x", eth_header->mac_src[i]); - kprintf("\n"); - uint16_t type = ntohs(eth_header->type); - kprintf("Etheretype: %x\n", type); switch (type) { case 0x0806: handle_arp(payload); -- cgit v1.2.3