summaryrefslogtreecommitdiff
path: root/src/user/app/ethdump/icmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app/ethdump/icmp.c')
-rw-r--r--src/user/app/ethdump/icmp.c2
1 files changed, 1 insertions, 1 deletions
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,