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/ipv4.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/ipv4.c')
-rw-r--r-- | kernel/network/ipv4.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/network/ipv4.c b/kernel/network/ipv4.c index 891e74f..e38ab9b 100644 --- a/kernel/network/ipv4.c +++ b/kernel/network/ipv4.c @@ -63,9 +63,7 @@ void send_ipv4_packet(u32 ip, u8 protocol, const u8 *payload, memcpy(ip_copy, &ip, sizeof(u8[4])); for (; !get_mac_from_ip(ip_copy, mac);) ; - kprintf("pre send_ethernet: %x\n", pit_num_ms()); send_ethernet_packet(mac, 0x0800, packet, packet_length); - kprintf("after send_ethernet: %x\n", pit_num_ms()); kfree(packet); } @@ -80,7 +78,6 @@ void handle_ipv4(const u8 *payload, u32 packet_length) { u8 version = (*payload & 0xF0) >> 4; u8 IHL = (*payload & 0xF); - kprintf("version: %x\n", version); assert(4 == version); assert(5 == IHL); u16 ipv4_total_length = ntohs(*(u16 *)(payload + 2)); |