aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/ascend.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>1999-09-11 04:53:26 +0000
committerGerald Combs <gerald@wireshark.org>1999-09-11 04:53:26 +0000
commit70481fcc846e1455adcc5fa50b02cad71b28b966 (patch)
treebd279c84be5cf7a85b77c3f0b5d4cd7930b82a1b /wiretap/ascend.h
parent9386f23feeb16591875734ba98c32604c9f44441 (diff)
downloadwireshark-70481fcc846e1455adcc5fa50b02cad71b28b966.tar.gz
wireshark-70481fcc846e1455adcc5fa50b02cad71b28b966.tar.bz2
wireshark-70481fcc846e1455adcc5fa50b02cad71b28b966.zip
Add in ascend.c, ascend.h, ascend-grammar.y and ascend-scanner.l. These
read and parse the Lucent/Ascend trace output. svn path=/trunk/; revision=653
Diffstat (limited to 'wiretap/ascend.h')
-rw-r--r--wiretap/ascend.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/wiretap/ascend.h b/wiretap/ascend.h
new file mode 100644
index 0000000000..ab43fd3962
--- /dev/null
+++ b/wiretap/ascend.h
@@ -0,0 +1,50 @@
+/* ascend.h
+ *
+ * $Id: ascend.h,v 1.1 1999/09/11 04:53:26 gerald Exp $
+ *
+ * Wiretap Library
+ * Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.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.
+ *
+ */
+
+#define ASCEND_MAX_STR_LEN 64
+#define ASCEND_MAX_DATA_ROWS 8
+#define ASCEND_MAX_DATA_COLS 16
+#define ASCEND_MAX_PKT_LEN (ASCEND_MAX_DATA_ROWS * ASCEND_MAX_DATA_COLS)
+
+#define ASCEND_PFX_ETHER 1
+#define ASCEND_PFX_PPP_X 2
+#define ASCEND_PFX_PPP_R 3
+
+typedef struct {
+ guint16 type; /* ASCEND_PFX_*, as defined above */
+ char user[ASCEND_MAX_STR_LEN]; /* Username, from header */
+ guint32 sess; /* Session number */
+ guint32 task; /* Task number */
+ guint32 secs;
+ guint32 usecs;
+ guint32 caplen;
+ guint32 len;
+} ascend_pkthdr;
+
+#define ASCEND_PKTHDR_OFFSET sizeof(ascend_pkthdr)
+
+int ascend_open(wtap *wth, int *err);
+static int ascend_read(wtap *wth, int *err);
+void init_parse_ascend();
+int parse_ascend(FILE *fh, void *pd, int len);
+int ascend_seek_read (FILE *fh, int seek_off, guint8 *pd, int len);