diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-03-06 20:13:58 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-03-06 20:13:58 +0000 |
commit | 5bcb2bcc5cec923967cdb8dbdab1e2b38987e61c (patch) | |
tree | be0cdb72990f89bb15672543e0fd1a7256d13cbc /epan/dissectors/packet-idp.c | |
parent | 6614376a1272d6e6675a7e47fa7cb01e24bdc129 (diff) |
Handle XNS IDP socket numbers.
Handle SMB-over-SPP.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13635 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-idp.c')
-rw-r--r-- | epan/dissectors/packet-idp.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/epan/dissectors/packet-idp.c b/epan/dissectors/packet-idp.c index ef150c89a9..6a73bb7e5e 100644 --- a/epan/dissectors/packet-idp.c +++ b/epan/dissectors/packet-idp.c @@ -109,15 +109,21 @@ dissect_idp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) type = tvb_get_guint8(tvb, 5); proto_tree_add_uint(idp_tree, hf_idp_packet_type, tvb, 5, 1, type); + pinfo->ptype = PT_IDP; + /* Destination */ proto_tree_add_item(idp_tree, hf_idp_dnet, tvb, 6, 4, FALSE); proto_tree_add_item(idp_tree, hf_idp_dnode, tvb, 10, 6, FALSE); - proto_tree_add_item(idp_tree, hf_idp_dsocket, tvb, 16, 2, FALSE); + pinfo->destport = tvb_get_ntohs(tvb, 16); + proto_tree_add_uint(idp_tree, hf_idp_dsocket, tvb, 16, 2, + pinfo->destport); /* Source */ proto_tree_add_item(idp_tree, hf_idp_snet, tvb, 18, 4, FALSE); proto_tree_add_item(idp_tree, hf_idp_snode, tvb, 22, 6, FALSE); - proto_tree_add_item(idp_tree, hf_idp_ssocket, tvb, 28, 2, FALSE); + pinfo->srcport = tvb_get_ntohs(tvb, 28); + proto_tree_add_uint(idp_tree, hf_idp_ssocket, tvb, 28, 2, + pinfo->srcport); /* Make the next tvbuff */ next_tvb = tvb_new_subset(tvb, IDP_HEADER_LEN, -1, -1); |