aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-frame.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2006-03-02 21:29:15 +0000
committerAnders Broman <anders.broman@ericsson.com>2006-03-02 21:29:15 +0000
commit9951fc2cff28d0ad7c15ae71170a8d3b2eb8b17d (patch)
treeb873c3753a60d9f5661e40b9229d27105ac9739a /epan/dissectors/packet-frame.c
parent497e0ec77505e2dbf04e7bb5b822cbc713aa03d6 (diff)
from Daniele Orlandi:
The attached patch adds support for LAPD frames captured using vISDN thru libpcap. The support has already been included in libpcap. The patch adds a new wiretap encapsulation, the necessary glue to decode SLL-encapsulated frames, and some minor change in the LAPD dissector in order to support the remote-to-remote frames captured on the ISDN E-Channel. Please apply ethereal-encap-table.diff before, as it fixes a misalignment in the encapsulation names table. svn path=/trunk/; revision=17451
Diffstat (limited to 'epan/dissectors/packet-frame.c')
-rw-r--r--epan/dissectors/packet-frame.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/dissectors/packet-frame.c b/epan/dissectors/packet-frame.c
index 37e66c8587..3929956a4c 100644
--- a/epan/dissectors/packet-frame.c
+++ b/epan/dissectors/packet-frame.c
@@ -141,6 +141,13 @@ dissect_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
pinfo->p2p_dir = pinfo->pseudo_header->isdn.uton ?
P2P_DIR_SENT : P2P_DIR_RECV;
break;
+
+ case WTAP_ENCAP_LINUX_LAPD:
+ pinfo->p2p_dir = (pinfo->pseudo_header->lapd.pkttype == 3 ||
+ pinfo->pseudo_header->lapd.pkttype == 4) ?
+ P2P_DIR_SENT : P2P_DIR_RECV;
+ break;
+
case WTAP_ENCAP_MTP2_WITH_PHDR:
pinfo->p2p_dir = pinfo->pseudo_header->mtp2.sent ?
P2P_DIR_SENT : P2P_DIR_RECV;