Commit e8f4fea2 authored by João Valverde's avatar João Valverde Committed by João Valverde

Make randpkt generate the correct IP version for IPv6

IP version is always 6 and as a consequence of setting the
first byte to 0x60 the 4 high-order bits for the
traffic class field are set to zero.

Otherwise the IPv6 dissector does not look past the first TVB
byte, making randpkt useless to exercise the dissector code.

Change-Id: I372ab7f71e6c972106f9dd46edec642ca53b9557
Petri-Dish: João Valverde <>
Tested-by: default avatarJoão Valverde <>
Tested-by: default avatarPetri Dish Buildbot <>
Reviewed-by: default avatarJoão Valverde <>
parent f66228c9
......@@ -116,7 +116,7 @@ guint8 pkt_ipv6[] = {
0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0x01, 0x01,
0x01, 0x01, 0x01, 0x01,
0x86, 0xdd
0x86, 0xdd, 0x60
/* TR, indicating LLC */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment