summaryrefslogtreecommitdiff
path: root/src/user/app/ethdump/util.h
diff options
context:
space:
mode:
authordzwdz2022-08-17 23:10:37 +0200
committerdzwdz2022-08-17 23:10:37 +0200
commitbb05dbe9ab050c420e0cba11f3224bd18dd9d642 (patch)
tree2aa17b0dd3eac398ac86203f87541932397f6e8b /src/user/app/ethdump/util.h
parent6ffb06af70faa5657f2c6091fe23500007e2bd44 (diff)
user/net: respond to pings
Diffstat (limited to 'src/user/app/ethdump/util.h')
-rw-r--r--src/user/app/ethdump/util.h3
1 files changed, 3 insertions, 0 deletions
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) {