aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--packet-frame.c8
2 files changed, 8 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 11af125695..0bc9a7eb91 100644
--- a/NEWS
+++ b/NEWS
@@ -352,6 +352,7 @@ Overview of changes in Ethereal 0.9.0:
* Capture file size test fixes in tethereal, command line argument
parsing fixes. (Guy)
* VMS TCPIPtrace efficiency improvements. (Marc)
+* Add Cisco HDLC and frame relay direction reporting. (Tom)
Overview of changes in Ethereal 0.8.20:
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) {