summaryrefslogtreecommitdiff
path: root/trafgen_parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r--trafgen_parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y
index 1718f3d..21c3454 100644
--- a/trafgen_parser.y
+++ b/trafgen_parser.y
@@ -190,7 +190,7 @@ static void __set_csum16_static(size_t from, size_t to, enum csum which __maybe_
uint16_t sum;
uint8_t *psum;
- sum = htons(calc_csum(pkt->payload + from, to - from, 0));
+ sum = htons(calc_csum(pkt->payload + from, to - from));
psum = (uint8_t *) ∑
set_byte(psum[0]);