Ethereal-dev: [Ethereal-dev] more options for decode as...

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

From: "Lars Ruoff" <lars.ruoff@xxxxxxxxxxxxxxxxxx>
Date: Tue, 27 May 2003 13:41:38 +0200
This is a question concerning the dissector_change function from
/epan/packet.c
(It is called from "Decode As..." for example)
its prototype is
  dissector_change(const char *name, guint32 pattern, dissector_handle_t
handle)

I've seen it being called with for example
  dissector_change("udp.port", 32000, handle)
Now my question is wether port numbers are the only things to use as filters
for user defined decodes on the transport level.
The GUI is limited to that only, but i wondered if the function would accept
other things.
Like if i would like to have a user decode based on the ip address?
say if i call
  dissector_change("ip.src", some_ip_address, handle),
will it work?
if not, how can i do it?

Lars Ruoff