Ethereal-dev: Re: [Ethereal-dev] Patches for WAP Support

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

From: Neil Hunter <neil.hunter@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 19 Oct 2000 09:00:51 +0100 (BST)
On Thu, 19 Oct 2000, Guy Harris wrote:

> The highlighting of bytes is done by the Ethereal core and GUI code;
> nothing obliges you to pass 1, 2, or 4 as the length argument to
> "proto_tree_add_uint()", so, if the routine used to extract one of those
> values returns the length in bytes, you can use that as the length
> argument.

I'm with you, so use FT_UNIT32 as the field type, but use a WAP-specific
routine to actually retrieve the value and the length.

I'm happy with that - there's no sense in adding additional types if they are
going to be protocol specific.

Cheers,
  Neil

-------------------------------------------------------------------------------
  Neil Hunter                                     Tel:    +44 (0)113 207 6073
  Internet Systems Developer                      Fax:    +44 (0)113 234 6065
  Energis Squared                                 Mobile: +44 (0)7787 100 649
  http://www.energis-squared.com/
                    ---------------------------------------
  This email is confidential and may be privileged. If you are not the named
  recipient please notify the sender immediately and do not disclose to
  another person or use it and take copies. If you receive this message in
  error please call the switchboard on + 44 (0)113 234 5100.
-------------------------------------------------------------------------------