From bb05dbe9ab050c420e0cba11f3224bd18dd9d642 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 17 Aug 2022 23:10:37 +0200 Subject: user/net: respond to pings --- src/user/app/ethdump/util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/user/app/ethdump/util.h') diff --git a/src/user/app/ethdump/util.h b/src/user/app/ethdump/util.h index 536f270..ca7e99b 100644 --- a/src/user/app/ethdump/util.h +++ b/src/user/app/ethdump/util.h @@ -4,9 +4,12 @@ #define eprintf(fmt, ...) fprintf(stderr, "ethdump: "fmt"\n" __VA_OPT__(,) __VA_ARGS__) +// #define printf(...) + void hexdump(const void *vbuf, size_t len); uint32_t crc32(const uint8_t *buf, size_t len); +uint16_t ip_checksum(const uint8_t *buf, size_t len); static inline void nput16(void *vbuf, uint16_t n) { -- cgit v1.2.3