Hi Evan
This looks promising. Where can I use this call?
If I run it from within a dissector
packet-hpfeeds.c:344 (just an example... for purpose of testing)
for (i = 0; i < len; i++) {
fi = proto_find_field_from_offset(tree, i, tvb);
g_print("TEST1 %p %d %p => %p\n", tree, i, tvb, fi);
}
it always returns NULL.
If I run it from the gtk gui
packet-panes.c:369
g_print("TEST2 %p %d %p => %p\n", tree, byte, tvb, finfo);
it returns a (valid?) pointer.
The 2 prints show the same values of pointer/offsets.
Where should a "for" routine like the above could be added in the code so it shows every undissected byte in every dissector?
Thanks.
Dario.