diff options
author | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-04-01 22:01:34 +0000 |
---|---|---|
committer | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-04-01 22:01:34 +0000 |
commit | 10cd0c5f704823cd6dd901d3438ebcc01f00e44e (patch) | |
tree | 0ae30fc13772568f8d93f815b30d6d6526958a9b /epan/epan.c | |
parent | 62e9875d34c9a5242806db8fe3729c3bcc26906e (diff) |
Changed packet_init() to look up the frame dissector and cache its
dissector_handle in a static variable in packet.c. Changed dissect_packet
to call dissector from using the call_dissector() function and the cached
dissector_handle for frame_dissector. Changed the order of function
calls in epan_init() to allow for this change ( it sucks to look up
a dissector when none are registered ).
svn path=/trunk/; revision=3234
Diffstat (limited to 'epan/epan.c')
-rw-r--r-- | epan/epan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/epan.c b/epan/epan.c index 75ae31a463..a779cb876b 100644 --- a/epan/epan.c +++ b/epan/epan.c @@ -1,6 +1,6 @@ /* epan.h * - * $Id: epan.c,v 1.8 2001/04/01 04:11:50 hagbard Exp $ + * $Id: epan.c,v 1.9 2001/04/01 22:01:34 hagbard Exp $ * * Ethereal Protocol Analyzer Library * @@ -46,9 +46,9 @@ epan_init(const char *plugin_dir) { except_init(); tvbuff_init(); - packet_init(); frame_data_init(); proto_init(plugin_dir); + packet_init(); dfilter_init(); } |