From Chris Waters: export "find_dissector_table()" and add
"dissector_handle_get_protocol_index()". svn path=/trunk/; revision=6633
This commit is contained in:
parent
a20ae99262
commit
1c81a6168b
2
AUTHORS
2
AUTHORS
|
@ -1308,6 +1308,8 @@ Chris Waters <chris[AT]waters.co.nz> {
|
|||
Check 802.11 FCS if present
|
||||
Put the "wlan.fc.fromds" and "wlan.fc.tods" fields into the
|
||||
protocol tree
|
||||
Export "find_dissector_table()" and add
|
||||
"dissector_handle_get_protocol_index()"
|
||||
}
|
||||
|
||||
Solomon Peachy <pizza[AT]shaftnet.org> {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* packet.c
|
||||
* Routines for packet disassembly
|
||||
*
|
||||
* $Id: packet.c,v 1.81 2002/10/29 05:15:24 guy Exp $
|
||||
* $Id: packet.c,v 1.82 2002/11/15 03:10:36 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@ethereal.com>
|
||||
|
@ -433,7 +433,7 @@ struct dissector_table {
|
|||
static GHashTable *dissector_tables = NULL;
|
||||
|
||||
/* Finds a dissector table by table name. */
|
||||
static dissector_table_t
|
||||
dissector_table_t
|
||||
find_dissector_table(const char *name)
|
||||
{
|
||||
g_assert(dissector_tables);
|
||||
|
@ -1009,6 +1009,13 @@ dissector_handle_get_short_name(dissector_handle_t handle)
|
|||
return proto_get_protocol_short_name(handle->proto_index);
|
||||
}
|
||||
|
||||
/* Get the index of the protocol for a dissector handle. */
|
||||
int
|
||||
dissector_handle_get_protocol_index(dissector_handle_t handle)
|
||||
{
|
||||
return handle->proto_index;
|
||||
}
|
||||
|
||||
/* Find a registered dissector by name. */
|
||||
dissector_handle_t
|
||||
find_dissector(const char *name)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* packet.h
|
||||
* Definitions for packet disassembly structures and routines
|
||||
*
|
||||
* $Id: packet.h,v 1.64 2002/11/06 21:49:32 guy Exp $
|
||||
* $Id: packet.h,v 1.65 2002/11/15 03:10:36 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@ethereal.com>
|
||||
|
@ -134,6 +134,9 @@ extern void dissector_table_foreach_handle(char *name, DATFunc_handle func,
|
|||
extern dissector_table_t register_dissector_table(const char *name,
|
||||
char *ui_name, ftenum_t type, int base);
|
||||
|
||||
/* Find a dissector table by table name. */
|
||||
dissector_table_t find_dissector_table(const char *name);
|
||||
|
||||
/* Get the UI name for a sub-dissector table, given its internal name */
|
||||
extern char *get_dissector_table_ui_name(const char *name);
|
||||
|
||||
|
@ -210,6 +213,9 @@ extern void new_register_dissector(const char *name, new_dissector_t dissector,
|
|||
/* Get the short name of the protocol for a dissector handle. */
|
||||
extern char *dissector_handle_get_short_name(dissector_handle_t handle);
|
||||
|
||||
/* Get the index of the protocol for a dissector handle. */
|
||||
extern int dissector_handle_get_protocol_index(dissector_handle_t handle);
|
||||
|
||||
/* Find a dissector by name. */
|
||||
extern dissector_handle_t find_dissector(const char *name);
|
||||
|
||||
|
|
Loading…
Reference in New Issue