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/icmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/user/app/ethdump/icmp.c') diff --git a/src/user/app/ethdump/icmp.c b/src/user/app/ethdump/icmp.c index 3f10ae8..b3eff93 100644 --- a/src/user/app/ethdump/icmp.c +++ b/src/user/app/ethdump/icmp.c @@ -12,8 +12,8 @@ enum { void icmp_parse(const uint8_t *buf, size_t len, struct ipv4 ip) { if (len < Payload) return; uint8_t type = buf[Type]; - printf("ICMP type %u\n", type); if (type == 8 && ip.dst == state.ip) { + /* echo reply */ uint8_t *pkt = icmp_start(len - Payload, (struct icmp){ .type = 0, .ip.dst = ip.src, -- cgit v1.2.3