summaryrefslogtreecommitdiff
path: root/trafgen_l3.c
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen_l3.c')
-rw-r--r--trafgen_l3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/trafgen_l3.c b/trafgen_l3.c
index 94c0755..cbdbe6c 100644
--- a/trafgen_l3.c
+++ b/trafgen_l3.c
@@ -126,6 +126,9 @@ static void ipv6_set_next_proto(struct proto_hdr *hdr, enum proto_id pid)
uint8_t ip_proto;
switch(pid) {
+ case PROTO_ICMP6:
+ ip_proto = IPPROTO_ICMPV6;
+ break;
case PROTO_UDP:
ip_proto = IPPROTO_UDP;
break;