Ethereal-dev: [Ethereal-dev] ptv_cursor routines

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: Mon, 16 Oct 2000 12:14:00 +0900
Hi,

I am working on code to automatically generate a protocol dissector, and am
making some progress ...

Some protocols are character string based, and I am wanting to add routines
to ptvcursor.c to do some of the things I need.

I had in mind routines like:

  ptvcursor_skip: skips one or more characters as specified using a simple
                  regex like language (eg \20+ etc ...)

  ptvcursor_add_ascii_convert: converts an item from an ASCII string to a 
                  short or unit32 etc ...

  ptvcursor_add_unicode_convert: etc

However, I do like the ptvcursor_add and it would be good if it could
convert from ascii to the target type as well.

Any feedback ...


Regards
-------
Richard Sharpe, sharpe@xxxxxxxxxx
Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba