From e8f4fea259bbc7e738ba41331177b5cda0fddc7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Tue, 26 Jul 2016 22:21:23 +0100 Subject: [PATCH] Make randpkt generate the correct IP version for IPv6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: https://code.wireshark.org/review/16708 Petri-Dish: João Valverde Tested-by: João Valverde Tested-by: Petri Dish Buildbot Reviewed-by: João Valverde --- randpkt_core/randpkt_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/randpkt_core/randpkt_core.c b/randpkt_core/randpkt_core.c index 6dcc9deb2b..2e6beccaad 100644 --- a/randpkt_core/randpkt_core.c +++ b/randpkt_core/randpkt_core.c @@ -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 */