aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2019-05-30 14:59:13 +0200
committerJaap Keuter <jaap.keuter@xs4all.nl>2019-05-31 17:35:59 +0000
commit01a30c1018779b23494baee72d92f26372e56147 (patch)
tree81cc0f51eab95a9e90515031b93fa147f6bd8914 /doc
parent23ec0666c5dd8424b95091d190b3aca1df755d57 (diff)
README.tapping: minor changes.
Change-Id: I0614d4c0cc8c9aada8660297b9d08f9d03129e29 Reviewed-on: https://code.wireshark.org/review/33433 Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Diffstat (limited to 'doc')
-rw-r--r--doc/README.tapping21
1 files changed, 7 insertions, 14 deletions
diff --git a/doc/README.tapping b/doc/README.tapping
index a5af28e609..0d1ad3d40a 100644
--- a/doc/README.tapping
+++ b/doc/README.tapping
@@ -4,8 +4,8 @@ In order to use the tapping system, very little knowledge of Wireshark
internals are required.
As examples on how to use the tap system see the implementation of
-tap-rpcstat.c (tshark version)
-ui/qt/rpc_service_response_time_dialog.cpp (wireshark version)
+tap-rpcprogs.c (tshark version)
+ui/qt/rpc_service_response_time_dialog.cpp (wireshark version)
If all you need is to keep some counters, there's the stats_tree API,
which offers a simple way to make a GUI and tshark tap-listener; see
@@ -18,11 +18,8 @@ protocol dissector, and
2, event driven code in an extension such as tap-rpcstat.c that registers
a tap listener and processes received data.
-
-
So you want to hack together a tap application?
-
TAP
===
First you must decide which protocol you are interested in writing a tap
@@ -55,11 +52,10 @@ need.
TAP LISTENER
============
-(see tap-rpcstat.c as an example)
+(see tap-rpcprogs.c as an example)
Interfacing your application is not that much harder either.
Only 4 callbacks and two functions.
-
The two functions to start or stop tapping are
register_tap_listener(const char *tapname, void *tapdata, const char *fstring,
@@ -69,14 +65,14 @@ register_tap_listener(const char *tapname, void *tapdata, const char *fstring,
void (*draw)(void *tapdata),
void (*finish)(void *tapdata));
-remove_tap_listener(void *tapdata);
+This function is used to register an instance of a tap application
+to the tap system.
+remove_tap_listener(void *tapdata);
-remove_tap_listener(void *tapdata)
This function is used to deregister and stop a tap listener.
-register_tap_listener() is used to register an instance of a tap application
-to the tap system.
+The parameters have the following meanings:
*tapname
is the name of the tap we want to listen to. I.e. the name used in
@@ -239,8 +235,5 @@ Well, try this :
Let struct contain a command line and make (*packet) execute it?
The possibilities are rather large.
-
-
-See tap-rpcstat.c for an example
See tap.c as well. It contains lots of comments and descriptions on the tap
system.