summaryrefslogtreecommitdiff
path: root/common/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/utils.cpp')
-rw-r--r--common/src/utils.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/common/src/utils.cpp b/common/src/utils.cpp
index 314cf45..6b0f0a7 100644
--- a/common/src/utils.cpp
+++ b/common/src/utils.cpp
@@ -156,10 +156,7 @@ void throughput_metrics_inc(struct throughput_metrics *iterm, uint64_t n_pkts, u
/******************************************************************************
* protocol
******************************************************************************/
-
-#define CHECKSUM_CARRY(x) (x = (x >> 16) + (x & 0xffff), (~(x + (x >> 16)) & 0xffff))
-
-static int checksum(uint16_t *addr, int len)
+int checksum(uint16_t *addr, int len)
{
int sum = 0;
int nleft = len;