From f22f019aeba00ccb3cc35fe763c3e87bf5690040 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 20 Aug 2022 11:11:57 +0200 Subject: user/ethdump: turn into a file server --- src/user/app/ethdump/arp.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/user/app/ethdump/arp.c') diff --git a/src/user/app/ethdump/arp.c b/src/user/app/ethdump/arp.c index a022b12..cfb1e04 100644 --- a/src/user/app/ethdump/arp.c +++ b/src/user/app/ethdump/arp.c @@ -1,6 +1,5 @@ #include "proto.h" #include "util.h" -#include #include enum { @@ -20,12 +19,6 @@ void arp_parse(const uint8_t *buf, size_t len) { uint16_t ptype = nget16(buf + ProtoType); uint16_t op = nget16(buf + Operation); - const char *ops = "bad operation"; - if (op == 1) ops = "request"; - if (op == 2) ops = "reply"; - - printf("ARP htype 0x%x, ptype 0x%x, %s\n", htype, ptype, ops); - if (!(htype == HdrTypeEther && ptype == ET_IPv4)) return; enum { /* only valid for this combination of header + proto */ SrcMAC = 8, @@ -36,7 +29,6 @@ void arp_parse(const uint8_t *buf, size_t len) { if (op == OpReq) { uint32_t daddr = nget32(buf + DstIP); - printf("IPv4 request for %08x\n", daddr); if (daddr == state.ip) { uint8_t *pkt = ether_start(30, (struct ethernet){ .dst = buf + SrcMAC, -- cgit v1.2.3