forked from osmocom/wireshark
PDCP-LTE: add a filter for decypted data
This commit is contained in:
parent
63bd8fde63
commit
51a6dfffc7
|
@ -133,7 +133,7 @@ static int hf_pdcp_lte_security_count = -1;
|
|||
static int hf_pdcp_lte_security_cipher_key = -1;
|
||||
static int hf_pdcp_lte_security_integrity_key = -1;
|
||||
|
||||
|
||||
static int hf_pdcp_lte_security_deciphered_data = -1;
|
||||
|
||||
/* Protocol subtree. */
|
||||
static int ett_pdcp = -1;
|
||||
|
@ -2476,6 +2476,12 @@ static int dissect_pdcp_lte(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
|||
payload_tvb = decipher_payload(tvb, pinfo, &offset, &pdu_security_settings, p_pdcp_info,
|
||||
pdu_security ? pdu_security->seen_next_ul_pdu: FALSE, &payload_deciphered);
|
||||
|
||||
/* Add deciphered data as a filterable field */
|
||||
if (payload_deciphered) {
|
||||
proto_tree_add_item(pdcp_tree, hf_pdcp_lte_security_deciphered_data,
|
||||
payload_tvb, 0, tvb_reported_length(payload_tvb), ENC_NA);
|
||||
}
|
||||
|
||||
if (p_pdcp_info->plane == SIGNALING_PLANE) {
|
||||
guint32 data_length;
|
||||
guint32 mac;
|
||||
|
@ -3038,6 +3044,12 @@ void proto_register_pdcp_lte(void)
|
|||
"pdcp-lte.security-config.integrity-key", FT_STRING, BASE_NONE, NULL, 0x0,
|
||||
NULL, HFILL
|
||||
}
|
||||
},
|
||||
{ &hf_pdcp_lte_security_deciphered_data,
|
||||
{ "Deciphered Data",
|
||||
"pdcp-lte.deciphered-data", FT_BYTES, BASE_NONE, NULL, 0x0,
|
||||
NULL, HFILL
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue