aboutsummaryrefslogtreecommitdiffstats
path: root/tap.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-09-04 09:40:29 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-09-04 09:40:29 +0000
commit93a649db6f5db64dbdc80eece52f0891c8a72cfb (patch)
tree90bdf086756c8f41361d49ed02ea7adfa1bbd84a /tap.h
parent7876ca4fe0bd8ce1cf1bd16d9e4cbdb8a4a007d3 (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. svn path=/trunk/; revision=6175
Diffstat (limited to 'tap.h')
-rw-r--r--tap.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/tap.h b/tap.h
new file mode 100644
index 0000000000..fddcb3e801
--- /dev/null
+++ b/tap.h
@@ -0,0 +1,39 @@
+/* tap.h
+ * packet tap interface 2002 Ronnie Sahlberg
+ *
+ * $Id: tap.h,v 1.1 2002/09/04 09:40:24 sahlberg Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@ethereal.com>
+ * Copyright 1998 Gerald Combs
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+
+void tap_init(void);
+int register_tap(char *name);
+int find_tap_id(char *name);
+void tap_queue_packet(int tap_id, packet_info *pinfo, void *tap_specific_data);
+void tap_queue_init(union wtap_pseudo_header *pseudo_header, const u_char *buf, frame_data *fdata);
+void tap_push_tapped_queue(void);
+extern int tapping_is_active;
+void reset_tap_listeners(void);
+void draw_tap_listeners(gboolean draw_all);
+int register_tap_listener(char *tapname, void *tapdata, char *fstring, void (*reset)(void *tapdata), int (*packet)(void *tapdata, packet_info *pinfo, void *data), void (*draw)(void *tapdata));
+void remove_tap_listener(void *tapdata);
+
+
+