summaryrefslogtreecommitdiff
path: root/src/user/app/netstack/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app/netstack/util.h')
-rw-r--r--src/user/app/netstack/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/user/app/netstack/util.h b/src/user/app/netstack/util.h
index 5472b05..b8fa5c6 100644
--- a/src/user/app/netstack/util.h
+++ b/src/user/app/netstack/util.h
@@ -8,6 +8,8 @@
uint32_t crc32(const uint8_t *buf, size_t len);
uint16_t ip_checksum(const uint8_t *buf, size_t len);
+/* 0 on success, negative failure */
+int ip_parse(const char *s, uint32_t *ip);
static inline void nput16(void *vbuf, uint16_t n) {
uint8_t *b = vbuf;