summaryrefslogtreecommitdiff
path: root/trafgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen.c')
-rw-r--r--trafgen.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/trafgen.c b/trafgen.c
index d9e0e0e..e628646 100644
--- a/trafgen.c
+++ b/trafgen.c
@@ -376,6 +376,12 @@ static void apply_csum16(int id)
(packets[id].len - csum->to),
IPPROTO_TCP);
break;
+ case CSUM_ICMP6:
+ sum = p6_csum((void *) packets[id].payload + csum->from,
+ packets[id].payload + csum->to,
+ (packets[id].len - csum->to),
+ IPPROTO_ICMPV6);
+ break;
default:
bug();
break;