> > cfile.plist is NULL there. Is cfile.plist filled in at all 
> in tethereal?
> 
> No, because there isn't a packet list in Tethereal - there's only the
> current packet.
*ouch* I suspected that when I wrote my orig mail here :(

So what would be the best approach for stats generation in tethereal then?
Compute it on the fly and update it with each packet callback (in case
the stats generation is enabled)? Or build the packet list and reuse
the current code?

I naturally wanted to reuse proto_hier_stats.c in tethereal, but it assumes
the list is there in clist.plist in order to work.
Pity noone caught the flawed design when I initially announced my intentions
in the "moving proto_hier_stats.c to common base..." thread :((

Vassilii

Reply via email to