Ethereal-dev: Re: [Ethereal-dev] IKEv2 support

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

From: ronnie sahlberg <ronniesahlberg@xxxxxxxxx>
Date: Fri, 4 Mar 2005 20:03:50 +1100
Try to convert all of those that makes sense to convert.



On Fri, 04 Mar 2005 10:27:39 +0900, Shoichi Sakane <sakane@xxxxxxxx> wrote:
> Thank you for helpful comment.
> 
> > A lot of the lists for strings in this dissector use locally defined structs
> > such as static struct type2str_t v2_idtypestr[] = {
> > and locally defined macros to search them.
> >
> > It would be much better if these lists of strings were changed into a
> > struct value_string  since htere are standard methods (val_to_str) in ethereal
> > to parse this kind of very common datastructure.
> 
> > can you consider refactoring all the lists of strings into being value_string ?
> 
> Sure, I will try to change them.  There are alike mechanism such like
> char *p1_atttypestr[NUM_P1_ATT_TYPES] = { and macros to convert them
> in the original source code.  Should I improve them to the method what
> you suggested ?
> 
>