diff options
author | Anders Broman <anders.broman@ericsson.com> | 2005-08-25 19:23:15 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2005-08-25 19:23:15 +0000 |
commit | 557df815070d7f597ba1fa92545ade1b80be9086 (patch) | |
tree | 26edbb7725bf34e68c30e20795f8b16926a55d28 /epan/dissectors/packet-sigcomp.c | |
parent | f1ba6f515f9fe9dfee44177666a5048f1e4602f4 (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
svn path=/trunk/; revision=15531
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 ) |