summaryrefslogtreecommitdiff
path: root/src/user/app/ethdump/util.h
diff options
context:
space:
mode:
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) {