From f3c7d7fbdea1f2bac81909116ddb747a1f8abdf5 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Wed, 22 Nov 2023 00:47:55 +0100 Subject: Meta: Cleanup of header files such that they are partially shared The /include directory contains definitons that both the kernel and libc need to be in sync. --- kernel/network/arp.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'kernel/network/arp.c') diff --git a/kernel/network/arp.c b/kernel/network/arp.c index dfa1131..b5825be 100644 --- a/kernel/network/arp.c +++ b/kernel/network/arp.c @@ -114,12 +114,6 @@ void handle_arp(const u8 *payload) { assert(4 == data->plen); // Assert it is a request if (0x0001 /*arp_request*/ == ntohs(data->opcode)) { - print_mac("srchw: ", data->srchw); - print_ip("srcpr: ", data->srcpr); - - print_mac("dsthw: ", data->dsthw); - print_ip("dstpr: ", data->dstpr); - struct ARP_TABLE_ENTRY *entry = find_arp_entry_to_use(); entry->is_used = 1; memcpy(entry->mac, data->srchw, sizeof(uint8_t[6])); @@ -148,7 +142,6 @@ void handle_arp(const u8 *payload) { entry->is_used = 1; memcpy(entry->mac, data->srchw, sizeof(u8[6])); memcpy(entry->ip, data->srcpr, sizeof(u8[4])); - print_ip("Added ip: ", entry->ip); } else { kprintf("GOT A ARP REQEUST WITH TYPE: %x\n", ntohs(data->opcode)); assert(0); -- cgit v1.2.3