aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap.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/wtap.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/wtap.h')
-rw-r--r--wiretap/wtap.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h
index 10bb64db5a..6f46121182 100644
--- a/wiretap/wtap.h
+++ b/wiretap/wtap.h
@@ -1,6 +1,6 @@
/* wtap.h
*
- * $Id: wtap.h,v 1.36 1999/09/11 04:50:44 gerald Exp $
+ * $Id: wtap.h,v 1.37 1999/09/11 22:36:38 gerald Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu>
@@ -189,6 +189,22 @@ struct ngsniffer_atm_phdr {
guint32 aal5t_chksum; /* checksum for AAL5 packet */
};
+/* Packet "pseudo-header" for the output from "wandsession", "wannext",
+ "wandisplay", and similar commands on Lucent/Ascend access equipment. */
+
+#define ASCEND_MAX_STR_LEN 64
+
+#define ASCEND_PFX_ETHER 1
+#define ASCEND_PFX_PPP_X 2
+#define ASCEND_PFX_PPP_R 3
+
+struct ascend_phdr {
+ guint16 type; /* ASCEND_PFX_*, as defined above */
+ char user[ASCEND_MAX_STR_LEN]; /* Username, from header */
+ guint32 sess; /* Session number */
+ guint32 task; /* Task number */
+};
+
/*
* Bits in AppTrafType.
*
@@ -244,6 +260,7 @@ struct ngsniffer_atm_phdr {
union pseudo_header {
struct x25_phdr x25;
struct ngsniffer_atm_phdr ngsniffer_atm;
+ struct ascend_phdr ascend;
};
struct wtap_pkthdr {