aboutgitcodebugslistschat
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/util.h b/util.h
index 8298d22..77e8d8c 100644
--- a/util.h
+++ b/util.h
@@ -1,3 +1,6 @@
uint16_t csum_fold(uint32_t sum);
uint16_t csum_ip4(void *buf, size_t len);
-unsigned char *ipv6_l4hdr(struct ipv6hdr *ip6h, uint8_t *proto);
+void csum_tcp4(struct iphdr *iph);
+char *ipv6_l4hdr(struct ipv6hdr *ip6h, uint8_t *proto);
+int sock_l4_add(struct ctx *c, int v, uint16_t proto, uint16_t port);
+int timespec_diff_ms(struct timespec *a, struct timespec *b);