Skip to content

Commit

Permalink
Fix #584. 16byte element ype in hash
Browse files Browse the repository at this point in the history
  • Loading branch information
phaag committed Dec 13, 2024
1 parent 6b7b397 commit 50ea00c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nfdump/nflowcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ static inline int New_HashKey(void *keymem, recordHandle_t *recordHandle, int sw
case 16: {
((uint64_t *)keymem)[0] = ((uint64_t *)inPtr)[0];
((uint64_t *)keymem)[1] = ((uint64_t *)inPtr)[1];
keymem += sizeof(uint64_t);
keymem += (2 * sizeof(uint64_t));
} break;
default:
memcpy((void *)keymem, inPtr, param->length);
Expand Down Expand Up @@ -1449,7 +1449,7 @@ void AddFlowCache(recordHandle_t *recordHandle) {
uint64_t aggrFlows = 1;
if (cntFlow) {
outPackets = cntFlow->outPackets;
outBytes = cntFlow->outPackets;
outBytes = cntFlow->outBytes;
aggrFlows = cntFlow->flows ? cntFlow->flows : 1;
}

Expand Down

0 comments on commit 50ea00c

Please sign in to comment.