diff options
author | Anton Kling <anton@kling.gg> | 2023-11-22 00:47:55 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-11-22 00:47:55 +0100 |
commit | f3c7d7fbdea1f2bac81909116ddb747a1f8abdf5 (patch) | |
tree | 62a1d998ce11bf4db4343f69dea4e8d231191e48 /kernel/network/arp.c | |
parent | 24f81104f5ff9cb4ab7db766c53f77fe0e5b86cc (diff) |
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.
Diffstat (limited to 'kernel/network/arp.c')
-rw-r--r-- | kernel/network/arp.c | 7 |
1 files changed, 0 insertions, 7 deletions
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); |