On 08/22/2015 09:29 AM, Alexis La Goutte wrote:
On Sat, Aug 22, 2015 at 8:10 AM, Jo�o Valverde
<joao.valverde@xxxxxxxxxxxxxxxxxx
<mailto:joao.valverde@xxxxxxxxxxxxxxxxxx>> wrote:
I'm not so sure now that I've done some tests with short and long
header chains, I think I'll drop it.
Can you push your proto ? or add some screenshot to see the different ?
For now all I did was:
diff --git a/epan/dissectors/packet-ipv6.c
b/epan/dissectors/packet-ipv6.c
index 1c07776..76e5285 100644
--- a/epan/dissectors/packet-ipv6.c
+++ b/epan/dissectors/packet-ipv6.c
@@ -2225,7 +2225,7 @@ dissect_ipv6(tvbuff_t *tvb, packet_info *pinfo,
proto_tree *tree)
if (nxt == IP_PROTO_HOPOPTS) {
options_tvb = tvb_new_subset_remaining(tvb, offset);
- advance = dissect_hopopts(options_tvb, pinfo, ipv6_tree, &iph);
+ advance = dissect_hopopts(options_tvb, pinfo, tree, &iph);
if (advance > 0) {
nxt = tvb_get_guint8(tvb, offset);
offset += advance;
@@ -2274,7 +2274,7 @@ again:
nxt_handle =
dissector_get_uint_handle(ipv6_next_header_dissector_table, nxt);
if ((nxt_handle) &&
- ((advance = call_dissector_with_data(nxt_handle, options_tvb,
pinfo, ipv6_tree, &iph)) > 0)) {
+ ((advance = call_dissector_with_data(nxt_handle, options_tvb,
pinfo, tree, &iph)) > 0)) {
nxt = tvb_get_guint8(tvb, offset);
offset += advance;
plen -= advance;
I had meant to change the ipv6.nxt dissectors to ip.proto but didn't get
that far.