aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ascend.c
diff options
context:
space:
mode:
Diffstat (limited to 'packet-ascend.c')
-rw-r--r--packet-ascend.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/packet-ascend.c b/packet-ascend.c
index cadcf3f44c..d16a9fbd4a 100644
--- a/packet-ascend.c
+++ b/packet-ascend.c
@@ -1,7 +1,7 @@
/* packet-ascend.c
* Routines for decoding Lucent/Ascend packet traces
*
- * $Id: packet-ascend.c,v 1.28 2001/12/10 00:25:26 guy Exp $
+ * $Id: packet-ascend.c,v 1.29 2001/12/20 05:34:50 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -70,6 +70,18 @@ dissect_ascend(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if(check_col(pinfo->cinfo, COL_INFO))
col_set_str(pinfo->cinfo, COL_INFO, "Lucent/Ascend packet trace" );
+ /* If this is a transmitted or received PPP frame, set the PPP direction. */
+ switch (pseudo_header->ascend.type) {
+
+ case ASCEND_PFX_WDS_X:
+ pinfo->p2p_dir = P2P_DIR_SENT;
+ break;
+
+ case ASCEND_PFX_WDS_R:
+ pinfo->p2p_dir = P2P_DIR_RECV;
+ break;
+ }
+
/* populate a tree in the second pane with the status of the link
layer (ie none) */
if(tree) {