diff options
author | dzwdz | 2022-08-23 17:58:42 +0200 |
---|---|---|
committer | dzwdz | 2022-08-23 17:58:42 +0200 |
commit | 03c5dd9462492e291c6a49b88e1cd9ab34d86b6f (patch) | |
tree | 8c8d8e73c8c07b83f5aede18d83671369d0f7589 /src/user/app/netstack/util.h | |
parent | fcdadf5df39e1d72f9ac79fa384fc6b98be0b1aa (diff) |
user/netstack: TCP listen and close
Diffstat (limited to 'src/user/app/netstack/util.h')
-rw-r--r-- | src/user/app/netstack/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); |