diff options
author | Gerald Combs <gerald@wireshark.org> | 2001-12-24 17:06:53 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2001-12-24 17:06:53 +0000 |
commit | 99502224b94aec2b2ec397379b42660c20c76a04 (patch) | |
tree | b905f2cd8c47f2eb7a3a66b97fe15290fe99acdf /packet-frame.c | |
parent | e2106afbf2f9b948f0ab49bc7acce4a817f79252 (diff) | |
download | wireshark-99502224b94aec2b2ec397379b42660c20c76a04.tar.gz wireshark-99502224b94aec2b2ec397379b42660c20c76a04.tar.bz2 wireshark-99502224b94aec2b2ec397379b42660c20c76a04.zip |
Cisco HDLC and frame relay direction reporting, from Tom Nisbet.
svn path=/trunk/; revision=4447
Diffstat (limited to 'packet-frame.c')
-rw-r--r-- | packet-frame.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packet-frame.c b/packet-frame.c index 8265a6b3cf..2f2b35bc5b 100644 --- a/packet-frame.c +++ b/packet-frame.c @@ -2,7 +2,7 @@ * * Top-most dissector. Decides dissector based on Wiretap Encapsulation Type. * - * $Id: packet-frame.c,v 1.15 2001/12/10 00:25:27 guy Exp $ + * $Id: packet-frame.c,v 1.16 2001/12/24 17:06:53 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -72,10 +72,16 @@ dissect_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) pinfo->current_proto = "Frame"; if (pinfo->fd->lnk_t == WTAP_ENCAP_LAPD || + pinfo->fd->lnk_t == WTAP_ENCAP_CHDLC || pinfo->fd->lnk_t == WTAP_ENCAP_PPP_WITH_PHDR) { pinfo->p2p_dir = pinfo->pseudo_header->p2p.sent ? P2P_DIR_SENT : P2P_DIR_RECV; } + else if (pinfo->fd->lnk_t == WTAP_ENCAP_LAPB || + pinfo->fd->lnk_t == WTAP_ENCAP_FRELAY) { + + pinfo->p2p_dir = (pinfo->pseudo_header->x25.flags & 0x80) ? P2P_DIR_RECV : P2P_DIR_SENT; + } /* Put in frame header information. */ if (tree) { |