diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-12-20 05:34:50 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-12-20 05:34:50 +0000 |
commit | 02e40b69f33ffe8a9a9edf6eadde16ae48612c7c (patch) | |
tree | ea428c97560f90925c2d549ae4a3bfd0279e5aef /packet-ascend.c | |
parent | b34c47e4d247c47902a25dcc802b40743306f2bc (diff) | |
download | wireshark-02e40b69f33ffe8a9a9edf6eadde16ae48612c7c.tar.gz wireshark-02e40b69f33ffe8a9a9edf6eadde16ae48612c7c.tar.bz2 wireshark-02e40b69f33ffe8a9a9edf6eadde16ae48612c7c.zip |
Set the PPP direction flag for transmitted or received PPP frames.
svn path=/trunk/; revision=4429
Diffstat (limited to 'packet-ascend.c')
-rw-r--r-- | packet-ascend.c | 14 |
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) { |