summaryrefslogtreecommitdiff
path: root/src/user/app/ethdump/icmp.c
diff options
context:
space:
mode:
authordzwdz2022-08-20 11:11:57 +0200
committerdzwdz2022-08-20 11:11:57 +0200
commitf22f019aeba00ccb3cc35fe763c3e87bf5690040 (patch)
tree6f7338b526dca6eebc865096dbdbd3af90cda335 /src/user/app/ethdump/icmp.c
parent2a16c1f6f9118e7127d532421ae19b959b3f1d87 (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.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,