Ethereal-dev: [Ethereal-dev] Getting a dissector table handle

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

From: Chris Waters <chris@xxxxxxxxxxxx>
Date: Wed, 04 Sep 2002 16:15:39 -0700
Hi,

I want to be able to call dissector_try_port() on the wtap_encap table
within my own dissector. In order to do this I need a handle for the
wtap_encap table, but there doesn't appear to be a function to allow me to
get a handle by name.

Ahhh, I just found it. The function is:

find_dissector_table(const char *name) in epan/packet.c, but it is declared
static. Is there any reason why I couldn't make this function global?

Regards,

Chris.