From 02e40b69f33ffe8a9a9edf6eadde16ae48612c7c Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 20 Dec 2001 05:34:50 +0000 Subject: Set the PPP direction flag for transmitted or received PPP frames. svn path=/trunk/; revision=4429 --- packet-ascend.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'packet-ascend.c') 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 @@ -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) { -- cgit v1.2.3