diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-09-04 09:40:29 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-09-04 09:40:29 +0000 |
commit | d877a68073c87e1086a91e09eb27fb689a888213 (patch) | |
tree | 90bdf086756c8f41361d49ed02ea7adfa1bbd84a /packet-frame.c | |
parent | dae25046ab705aecb027589f760d57c5c26d8328 (diff) |
Tap api. tap is a simple api that can be used for arbitrary extensions.
One example extension is rpcstat.
Try -Z rpc,rtt,100003,3 as argument to tethereal when reading a capture
containing NFSv3 packets.
tap-rpcstat.[ch] is intended to demonstrate the api and can be used to
base other extensions on.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6175 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-frame.c')
-rw-r--r-- | packet-frame.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packet-frame.c b/packet-frame.c index 5f57732ece..805d6ba529 100644 --- a/packet-frame.c +++ b/packet-frame.c @@ -2,7 +2,7 @@ * * Top-most dissector. Decides dissector based on Wiretap Encapsulation Type. * - * $Id: packet-frame.c,v 1.30 2002/08/28 21:00:13 jmayer Exp $ + * $Id: packet-frame.c,v 1.31 2002/09/04 09:40:24 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -33,6 +33,7 @@ #include <epan/tvbuff.h> #include "packet-frame.h" #include "prefs.h" +#include "tap.h" static int proto_frame = -1; static int hf_frame_arrival_time = -1; @@ -51,6 +52,8 @@ static int proto_unreassembled = -1; static gint ett_frame = -1; +static int frame_tap = -1; + static dissector_handle_t data_handle; static dissector_handle_t docsis_handle; @@ -188,6 +191,8 @@ dissect_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) show_reported_bounds_error(tvb, pinfo, tree); } ENDTRY; + + tap_queue_packet(frame_tap, pinfo, NULL); } void @@ -296,6 +301,8 @@ proto_register_frame(void) "Show File Offset", "Show File Offset", &show_file_off); prefs_register_bool_preference(frame_module, "force_docsis_encap", "Treat all frames as DOCSIS frames", "Treat all frames as DOCSIS Frames", &force_docsis_encap); + + frame_tap=register_tap("frame"); } void |