🐞 fix(TSG-14170): Health Check support None

This commit is contained in:
wangmenglan
2023-07-13 15:24:50 +08:00
parent 23d05e7fee
commit 1a7dba0b65
5 changed files with 364 additions and 106 deletions

View File

@@ -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;