From 03c5dd9462492e291c6a49b88e1cd9ab34d86b6f Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 23 Aug 2022 17:58:42 +0200 Subject: user/netstack: TCP listen and close --- src/user/app/netstack/util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/user/app/netstack/util.h') diff --git a/src/user/app/netstack/util.h b/src/user/app/netstack/util.h index b8fa5c6..0b29560 100644 --- a/src/user/app/netstack/util.h +++ b/src/user/app/netstack/util.h @@ -8,6 +8,10 @@ uint32_t crc32(const uint8_t *buf, size_t len); uint16_t ip_checksum(const uint8_t *buf, size_t len); +uint16_t ip_checksumphdr( + const uint8_t *buf, size_t len, + uint32_t ip1, uint32_t ip2, + uint16_t proto); /* 0 on success, negative failure */ int ip_parse(const char *s, uint32_t *ip); -- cgit v1.2.3