Ethereal-dev: Re: [Ethereal-dev] VJ compressed PPP packets ??

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

From: Gilbert Ramirez <gilramir@xxxxxxxxx>
Date: Fri, 23 Mar 2001 14:21:35 -0600
Jeff Foster wrote:
> 
> From: Jeff Foster
> Sent: Thursday, March 15, 2001 2:42 PM
> 
> > I will clean-up my Wellfleet compression dissector and
> > post it to the list with a capture file so you can
> > actually see the system working.
> 
> I have posted the named data sources to the CVS tree and
> added the dissectors for Wellfleet compress and Frame
> Relay LMI.
> 
> The attached capture file is a series for pings between
> two test routers.  It was captured using the Nortel (Bay
> Networks) router capture programs.  Two things are odd
> in the capture,
> 
>

This segfaults for me. There seems to be an assumption
in wcp_uncompress that tree is always non-NULL. This
blows up because I don't have any read-filters or color-filters
set up, so the first time through, tree *is* NULL.

(gdb) bt
#0  proto_item_add_subtree (pi=0x0, idx=593) at proto.c:1547
#1  0x80f2964 in wcp_uncompress (src_tvb=0x82cce3c, offset=46, 
    pinfo=0x8214fc0, tree=0x0) at packet-wcp.c:535
#2  0x80f2650 in dissect_wcp (tvb=0x82cce3c, pinfo=0x8214fc0, tree=0x0)
    at packet-wcp.c:403
#3  0x8143261 in dissector_try_port (sub_dissectors=0x8224e28, port=176, 
    tvb=0x82cce3c, pinfo=0x8214fc0, tree=0x0) at packet.c:1497
#4  0x808fb7f in dissect_fr (tvb=0x82cce08, pinfo=0x8214fc0, tree=0x0)
    at packet-fr.c:221
#5  0x8143261 in dissector_try_port (sub_dissectors=0x82197f0, port=20, 
    tvb=0x82cce08, pinfo=0x8214fc0, tree=0x0) at packet.c:1497
#6  0x808ff9b in dissect_frame (tvb=0x82cce08, pinfo=0x8214fc0,
tree=0x0)
    at packet-frame.c:123
#7  0x8142c90 in dissect_packet (p_tvb=0x82ec850,
pseudo_header=0x829b224, 
    pd=0x82b9630 "\030A\003°", fd=0x82bd4c4, tree=0x0) at packet.c:1091
#8  0x81413b0 in epan_dissect_new (pseudo_header=0x829b224, 
    data=0x82b9630 "\030A\003°", fd=0x82bd4c4, tree=0x0) at epan.c:88
#9  0x810b057 in add_packet_to_packet_list (fdata=0x82bd4c4,
cf=0x8204d20, 
    pseudo_header=0x829b224, buf=0x82b9630 "\030A\003°", refilter=1)
    at file.c:647
#10 0x810b404 in read_packet (cf=0x8204d20, offset=1887) at file.c:805
#11 0x810aa82 in read_cap_file (cf=0x8204d20, err=0xbffff768) at
file.c:364
#12 0x8127659 in main (argc=4, argv=0xbffff8e4) at main.c:1246

--gilbert