diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-08-25 19:23:15 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-08-25 19:23:15 +0000 |
commit | 1382f694fd1e886e142e65aed9e44cb15521e12c (patch) | |
tree | 26edbb7725bf34e68c30e20795f8b16926a55d28 /epan/dissectors/packet-sigcomp.c | |
parent | ba9e27cac6048ed746668fd9014e092ccee24973 (diff) |
From Timo Metsala
Changes:
o Implemented CRC and SHA-1 (sort operations are still missing)
o After state acccess, the execution start is not necessarily the
beginning of the bytecode; start IP is now a new parameter to
decompress_sigcomp_message()
o Removed some hard-coded assumptions about bytecode starting at offset
128
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15531 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-sigcomp.c')
-rw-r--r-- | epan/dissectors/packet-sigcomp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-sigcomp.c b/epan/dissectors/packet-sigcomp.c index 69eb33be6c..65008c8fa2 100644 --- a/epan/dissectors/packet-sigcomp.c +++ b/epan/dissectors/packet-sigcomp.c @@ -461,7 +461,7 @@ dissect_sigcomp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) return tvb_length(tvb); } - udvm_tvb = tvb_new_real_data(buff,state_length+128,state_length+128); + udvm_tvb = tvb_new_real_data(buff,state_length+state_address,state_length+state_address); /* Arrange that the allocated packet data copy be freed when the * tvbuff is freed. */ @@ -473,7 +473,7 @@ dissect_sigcomp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) tvb_set_child_real_data_tvbuff( tvb, udvm_tvb ); - udvm2_tvb = tvb_new_subset(udvm_tvb, 128, state_length, state_length); + udvm2_tvb = tvb_new_subset(udvm_tvb, state_address, state_length, state_length); /* TODO Check if buff needs to be free'd */ udvm_exe_item = proto_tree_add_text(sigcomp_tree, udvm2_tvb, 0, state_length, "UDVM execution trace"); @@ -482,7 +482,7 @@ dissect_sigcomp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) decomp_tvb = decompress_sigcomp_message(udvm2_tvb, msg_tvb, pinfo, sigcomp_udvm_exe_tree, state_address, udvm_print_detail_level, hf_sigcomp_partial_state, - offset, state_length, partial_state_len); + offset, state_length, partial_state_len, state_instruction); if ( decomp_tvb ){ @@ -555,7 +555,7 @@ dissect_sigcomp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) decomp_tvb = decompress_sigcomp_message(udvm_tvb, msg_tvb, pinfo, sigcomp_udvm_exe_tree, destination, udvm_print_detail_level, hf_sigcomp_partial_state, - offset, 0, 0); + offset, 0, 0, destination); if ( decomp_tvb ){ proto_tree_add_text(sigcomp_tree, decomp_tvb, 0, -1,"SigComp message Decompressed WOHO!!"); if ( display_raw_txt ) |