diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-03-06 20:13:58 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-03-06 20:13:58 +0000 |
commit | e41c4740c9d5347684ac2e4109793ecdd7b934d5 (patch) | |
tree | be0cdb72990f89bb15672543e0fd1a7256d13cbc /epan/dissectors/packet-idp.c | |
parent | e27279e14dfe0b694d87016954822b4fba9284fd (diff) |
Handle XNS IDP socket numbers.
Handle SMB-over-SPP.
svn path=/trunk/; revision=13635
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); |