aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/ascend.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>1999-09-11 22:36:38 +0000
committerGerald Combs <gerald@wireshark.org>1999-09-11 22:36:38 +0000
commitfeda83f7e000cc96c045f24a4b8581f794ab2ea0 (patch)
treec131f7fe521ff9d8cd29f44247b4373fd851d1a8 /wiretap/ascend.h
parent4ac044cc3e8a7bbb4b8d65eb8939ae6b3c2a9ec4 (diff)
Added Guy's patch to use the pseudo header facility to pass up the Ascend
metadata. Also added filter items for the session and task number. svn path=/trunk/; revision=664
Diffstat (limited to 'wiretap/ascend.h')
-rw-r--r--wiretap/ascend.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/wiretap/ascend.h b/wiretap/ascend.h
index fb7accd6de..c9db11ae1d 100644
--- a/wiretap/ascend.h
+++ b/wiretap/ascend.h
@@ -1,6 +1,6 @@
/* ascend.h
*
- * $Id: ascend.h,v 1.2 1999/09/11 06:49:42 guy Exp $
+ * $Id: ascend.h,v 1.3 1999/09/11 22:36:38 gerald Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu>
@@ -21,29 +21,19 @@
*
*/
-#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;
+ time_t secs;
+ time_t usecs;
guint32 caplen;
guint32 len;
} ascend_pkthdr;
-#define ASCEND_PKTHDR_OFFSET sizeof(ascend_pkthdr)
-
int ascend_open(wtap *wth, int *err);
void init_parse_ascend();
-int parse_ascend(FILE *fh, void *pd, int len);
+int parse_ascend(FILE *fh, void *pd, struct ascend_phdr *phdr,
+ ascend_pkthdr *hdr, int len);
int ascend_seek_read (FILE *fh, int seek_off, guint8 *pd, int len);