Ethereal-dev: [ethereal-dev] Want to add stuff to frame_data

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

From: Richard Sharpe <sharpe@xxxxxxxxxx>
Date: Sat, 29 Jan 2000 01:33:39 +1000
Hi,

I want to add a void *per_frame_info field to frame_data along with routins
to set and retrieve this info so I can support stashing info along with a
frame.

This will make many things better with protocols where you have to remember
state between frames.

Since we do the summary pane all in one go, we get to see each frame, and
we can stash things in an association, but this screws up when users are
randomly selecting frames and going back and forth ...

So, the approach I was thinking of is as follows:

On any pass over a frame, we check to see if there is frame info stashed
there, and if so, use that if we need to remember things about the frame,
but if not, look in any association we have set up.

However, it seems that multiple layers may want to stash frame info for
their own use, so it seems that what I want is a hash and routines like:

  void set_frame_info(frame_data *fd, gchar *protocol, void *proto_info);

and

  void *get_frame_info(frame_data *fd, gchar *protocol);

What say ye, oh assembled multitude?


Regards
-------
Richard Sharpe, sharpe@xxxxxxxxxx, Master Linux Administrator :-),
Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
Co-author, SAMS Teach Yourself Samba in 24 Hours
Author: First Australian 5-day, intensive, hands-on Linux SysAdmin course