Ethereal-dev: [Ethereal-dev] is there skeleton code for creating two-level subtree in dissecto

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Thu, 27 Dec 2001 10:09:37 -0600
Hi,  All,

    I am writing a new dissector, it works fine when only one level 
tree was created. But, after adding two more levels of subtree, it 
always  core dump, although it shows summary correctly, I knew 
something was wrong with setting constants or registering, however 
reading README.developer didn't help me solve this one. Is there a 
skeleton code for multi-level creation ? 

    Here is the core.
#0  0x88610030 in kill () from /usr/lib/libc.so.4
#1  0x88648f7e in abort () from /usr/lib/libc.so.4
#2  0x884eb17a in g_logv () from /usr/local/lib/libglib12.so.3
#3  0x884eb231 in g_log () from /usr/local/lib/libglib12.so.3
#4  0x81b1a00 in get_uint_value (tvb=0x83c5cb4, offset=40, length=
32, 
    little_endian=0) at proto.c:472
#5  0x81b1bba in proto_tree_add_item (tree=0x83c7450, hfindex=4582, 
    tvb=0x83c5cb4, start=40, length=32, little_endian=0) at 
proto.c:566
#6  0x815a28a in dissect__ha_bgp (tvb=0x83c5cb4, offset=40, 
    tree=0x83c7450) at packet-ha.c:221
#7  0x815a5cc in dissect_ha (tvb=0x83c5cb4, pinfo=0x8387808, 
    tree=0x83c7018) at packet-ha.c:314

thanks a lot,

Jian Yu




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com