summaryrefslogtreecommitdiff
path: root/randpkt_core
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2016-07-26 22:21:23 +0100
committerJoão Valverde <j@v6e.pt>2016-07-27 21:28:56 +0000
commite8f4fea259bbc7e738ba41331177b5cda0fddc7e (patch)
tree21920601d840056334d121a2009b0c56cbfbbb55 /randpkt_core
parentf66228c9e4bf11a6268c336fcebe06c14b08a830 (diff)
downloadwireshark-e8f4fea259bbc7e738ba41331177b5cda0fddc7e.tar.gz
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 Reviewed-on: https://code.wireshark.org/review/16708 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'randpkt_core')
-rw-r--r--randpkt_core/randpkt_core.c2
1 files changed, 1 insertions, 1 deletions
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 */