summaryrefslogtreecommitdiff
path: root/doc/README.tapping
diff options
context:
space:
mode:
authorGerald Combs <gerald@zing.org>2015-08-02 15:33:07 -0700
committerGerald Combs <gerald@wireshark.org>2015-08-03 03:06:00 +0000
commit9557c73f81efad68ce3961a5ec18de2d985c4bb1 (patch)
tree528dab6173e9f59072f3b90d2d5c2fbdaf470023 /doc/README.tapping
parent08e80b1653383fcbb42538b97e46e78d152b4893 (diff)
downloadwireshark-9557c73f81efad68ce3961a5ec18de2d985c4bb1.tar.gz
Make sure per-packet tap callbacks return gbooleans.
The tap API changed the return type of per-packet listener callbacks from int to gboolean back in 2009. Update a bunch of functions and some documentation accordingly. Change-Id: I79affe65db975caed3cc296a7e2985b7b9cdf4cc Reviewed-on: https://code.wireshark.org/review/9853 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'doc/README.tapping')
-rw-r--r--doc/README.tapping8
1 files changed, 2 insertions, 6 deletions
diff --git a/doc/README.tapping b/doc/README.tapping
index 75b99ac69c..56b7a4ba1c 100644
--- a/doc/README.tapping
+++ b/doc/README.tapping
@@ -215,10 +215,10 @@ You can hand register_tap_listener() NULL for both (*draw) and (*reset)
Perhaps you want an extension that will execute a certain command
every time it sees a certain packet?
Well, try this :
- int packet(void *tapdata,...) {
+ gboolean packet(void *tapdata,...) {
...
system("mail ...");
- return0;
+ return FALSE;
}
register_tap_listener("tcp", struct, "tcp.port==57", NULL, packet, NULL);
@@ -237,7 +237,3 @@ Well, try this :
See tap-rpcstat.c for an example
See tap.c as well. It contains lots of comments and descriptions on the tap
system.
-
-
-
-