forked from osmocom/wireshark
packet-cql.c: distinguish between Snappy and LZ4 decompressed data
Simply print if it's Snappy or LZ4. Signed-off-by: Yaniv Kaul <yaniv.kaul@scylladb.com>
This commit is contained in:
parent
7eb8065e63
commit
91cf033cec
|
@ -1106,7 +1106,7 @@ dissect_cql_tcp_pdu(tvbuff_t* raw_tvb, packet_info* pinfo, proto_tree* tree, voi
|
|||
} else {
|
||||
/* Now re-setup the tvb buffer to have the new data */
|
||||
tvb = tvb_new_child_real_data(raw_tvb, decompressed_buffer, orig_size, orig_size);
|
||||
add_new_data_source(pinfo, tvb, "Decompressed Data");
|
||||
add_new_data_source(pinfo, tvb, "LZ4 Decompressed Data");
|
||||
/* mark the decompression as successful */
|
||||
compression_level = CQL_COMPRESSION_LZ4;
|
||||
message_length= orig_size;
|
||||
|
@ -1142,7 +1142,7 @@ dissect_cql_tcp_pdu(tvbuff_t* raw_tvb, packet_info* pinfo, proto_tree* tree, voi
|
|||
/* if the decompression succeeded build the new tvb */
|
||||
if (ret == SNAPPY_OK) {
|
||||
tvb = tvb_new_child_real_data(raw_tvb, decompressed_buffer, (guint32)orig_size, (guint32)orig_size);
|
||||
add_new_data_source(pinfo, tvb, "Decompressed Data");
|
||||
add_new_data_source(pinfo, tvb, "Snappy Decompressed Data");
|
||||
compression_level = CQL_COMPRESSION_SNAPPY;
|
||||
message_length = (guint32)orig_size;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue