Ethereal-dev: [ethereal-dev] Generating code to dissect SMBs

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: Wed, 12 May 1999 22:36:24 +0900
Hi,

well, it seems to work. I now have a few pages of Perl that can read in a
definition of an SMB and pump out the routine to dissect it for Ethereal.

What I now have to do is add more built-in data types.

I will probably include the ability to do #includes, so I can build a
library of definitions that can simply be pulled in, things like
capabilities, DOS Dates, etc.

At the moment, what I do is build a tree describing the SMB request and
response(s) and then process that with built-in code to produce the dissect
code. What I would like to do is adorn the tree with code fragments, and
have Perl walk the tree writing the fragments.


Regards
-------
Richard Sharpe, sharpe@xxxxxxxxxx, NIC-Handle:RJS96
NS Computer Software and Services P/L,  
Samba (Team member www.samba.org), Ethereal (Team member www.zing.org) ...
Co-author, SAMS Teach Yourself Samba in 24 Hours