diff options
author | dzwdz | 2022-08-20 11:11:57 +0200 |
---|---|---|
committer | dzwdz | 2022-08-20 11:11:57 +0200 |
commit | f22f019aeba00ccb3cc35fe763c3e87bf5690040 (patch) | |
tree | 6f7338b526dca6eebc865096dbdbd3af90cda335 /src/user/app/ethdump/icmp.c | |
parent | 2a16c1f6f9118e7127d532421ae19b959b3f1d87 (diff) |
user/ethdump: turn into a file server
Diffstat (limited to 'src/user/app/ethdump/icmp.c')
-rw-r--r-- | src/user/app/ethdump/icmp.c | 2 |
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, |