summaryrefslogtreecommitdiff
path: root/trafgen_l3.c
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2016-07-15 23:21:05 +0300
committerTobias Klauser <tklauser@distanz.ch>2016-07-16 11:29:07 +0200
commitc11d67bf8ce5666b454ba34c004c264d5cfae24a (patch)
tree001077c098c635d4746f5edc40fa4d759b45b2d1 /trafgen_l3.c
parent423bb070d372341aa178849a9479099b95c7d352 (diff)
trafgen: ipv4: Set default proto as ipv6-in-ipv4 for ipv6()
Set default ip proto field to IPPROTO_IPV6(41) if the higher protocol was specified as ipv6(). Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
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 ae3f136..012321f 100644
--- a/trafgen_l3.c
+++ b/trafgen_l3.c
@@ -69,6 +69,9 @@ static void ipv4_set_next_proto(struct proto_hdr *hdr, enum proto_id pid)
case PROTO_IP4:
ip_proto = IPPROTO_IPIP;
break;
+ case PROTO_IP6:
+ ip_proto = IPPROTO_IPV6;
+ break;
case PROTO_ICMP4:
ip_proto = IPPROTO_ICMP;
break;