aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tpkt.c
diff options
context:
space:
mode:
authorGraeme Lunt <graeme.lunt@smhs.co.uk>2011-09-21 07:35:51 +0000
committerGraeme Lunt <graeme.lunt@smhs.co.uk>2011-09-21 07:35:51 +0000
commit9db6d4065699e4b1128ac798f674dcbf3e0a43a2 (patch)
treeceb35affc2c80067b78b1daed782613d272ca6b2 /epan/dissectors/packet-tpkt.c
parent3e7c0390d77e9288fc7048f4d0f0e833a2a4d9f4 (diff)
Basic RDP dissection, which can dissect the connection sequence.
A work in progress. Can be used with the SSL dissector to decrypt Enhanced RDP Security SSL. With Standard RDP Security (e.g those on Wiki), the PDUs are all encrypted after the SecurityExchange PDU. Wiki to be updated with an example SSL protected capture and associated key material. svn path=/trunk/; revision=39066
Diffstat (limited to 'epan/dissectors/packet-tpkt.c')
-rw-r--r--epan/dissectors/packet-tpkt.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/epan/dissectors/packet-tpkt.c b/epan/dissectors/packet-tpkt.c
index d5001a6282..456a576c63 100644
--- a/epan/dissectors/packet-tpkt.c
+++ b/epan/dissectors/packet-tpkt.c
@@ -54,14 +54,10 @@ static gint ett_tpkt = -1;
static gboolean tpkt_desegment = TRUE;
#define TCP_PORT_TPKT 102
-#define TCP_PORT_TPKT_X224 3389
/* find the dissector for OSI TP (aka COTP) */
static dissector_handle_t osi_tp_handle;
-/* find the dissector for X.224 */
-static dissector_handle_t x224_handle;
-
/*
* Check whether this could be a TPKT-encapsulated PDU.
* Returns -1 if it's not, and the PDU length from the TPKT header
@@ -591,16 +587,6 @@ dissect_tpkt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
/*
- * Dissect RFC 1006 TPKT, which wraps a TPKT header around an X.224
- * PDU.
- */
-static void
-dissect_tpkt_x224(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
-{
- dissect_tpkt_encap(tvb, pinfo, tree, tpkt_desegment, x224_handle);
-}
-
-/*
* Dissect ASCII TPKT, which wraps a ASCII TPKT header around an OSI TP
* PDU.
*/
@@ -678,16 +664,12 @@ proto_register_tpkt(void)
void
proto_reg_handoff_tpkt(void)
{
- dissector_handle_t tpkt_handle, tpkt_x224_handle;
+ dissector_handle_t tpkt_handle;
osi_tp_handle = find_dissector("ositp");
tpkt_handle = find_dissector("tpkt");
dissector_add_uint("tcp.port", TCP_PORT_TPKT, tpkt_handle);
- x224_handle = find_dissector("x224");
- tpkt_x224_handle = create_dissector_handle(dissect_tpkt_x224, proto_tpkt);
- dissector_add_uint("tcp.port", TCP_PORT_TPKT_X224, tpkt_x224_handle);
-
/*
tpkt_ascii_handle = create_dissector_handle(dissect_ascii_tpkt, proto_tpkt);
dissector_add_uint("tcp.port", TCP_PORT_TPKT, tpkt_ascii_handle);