aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/atm.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-04-30 18:58:16 +0000
committerGuy Harris <guy@alum.mit.edu>2002-04-30 18:58:16 +0000
commit105efda4044b2f031b1c36d666f7cb6b0221694f (patch)
tree33a4c7bd7deb9227ad48f5b8187c5f05419aa1e3 /wiretap/atm.h
parentda74615c7998037094df81255d4dd3d55e36ab47 (diff)
Move the code to guess the traffic type based on the packet contents
into Wiretap, so that if you read a frame from Wiretap you have what traffic type information could be gleaned from the information in the capture file, and can write the frame out to a capture file where the file contains some or all of that information without having to determine it outside of Wiretap. svn path=/trunk/; revision=5314
Diffstat (limited to 'wiretap/atm.h')
-rw-r--r--wiretap/atm.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/wiretap/atm.h b/wiretap/atm.h
new file mode 100644
index 0000000000..fa6b2d0dbb
--- /dev/null
+++ b/wiretap/atm.h
@@ -0,0 +1,40 @@
+/* atm.h
+ *
+ * $Id: atm.h,v 1.1 2002/04/30 18:58:15 guy Exp $
+ *
+ * Wiretap Library
+ * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
+ *
+ * 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.
+ */
+
+#ifndef __ATM_H__
+#define __ATM_H__
+
+/*
+ * Routines to use with ATM capture file types that don't include information
+ * about the *type* of ATM traffic (or, at least, where we haven't found
+ * that information).
+ */
+
+extern void
+atm_guess_traffic_type(const guint8 *pd, guint32 len,
+ guint16 vpi, guint16 vci, union wtap_pseudo_header *pseudo_header);
+
+extern void
+atm_guess_lane_type(const guint8 *pd, guint32 len,
+ union wtap_pseudo_header *pseudo_header);
+
+#endif /* __ATM_H__ */