From fb78cc2996ba3310f7bcbeef5489b2b4e144499e Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 30 Nov 2018 21:41:30 +0100 Subject: [PATCH] Adding some debug prints. --- lib/src/upper/pdcp_entity.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/src/upper/pdcp_entity.cc b/lib/src/upper/pdcp_entity.cc index 7f3dd8521..e62677e4e 100644 --- a/lib/src/upper/pdcp_entity.cc +++ b/lib/src/upper/pdcp_entity.cc @@ -84,6 +84,7 @@ void pdcp_entity::init(srsue::rlc_interface_pdcp *rlc_, // Reestablishment procedure: 36.323 5.2 void pdcp_entity::reestablish() { + log->debug("Re-establishing %s\n", rrc->get_rb_name(lcid).c_str()); // For SRBs if (cfg.is_control) { tx_count = 0; @@ -262,6 +263,14 @@ void pdcp_entity::integrity_generate( uint8_t *msg, default: break; } + + log->debug("Integrity gen input:\n"); + log->debug_hex(&k_int[16], 16, " K_int"); + log->debug(" Local count: %d\n", tx_count); + log->debug(" Bearer ID: %d\n", get_bearer_id(lcid)); + log->debug(" Direction: %s\n", (cfg.direction == SECURITY_DIRECTION_DOWNLINK) ? "Downlink" : "Uplink"); + log->debug_hex(msg, msg_len, " Message"); + log->debug_hex(mac, 4, "MAC (generated)"); } bool pdcp_entity::integrity_verify(uint8_t *msg, @@ -299,6 +308,13 @@ bool pdcp_entity::integrity_verify(uint8_t *msg, break; } + log->debug("Integrity check input:\n"); + log->debug_hex(&k_int[16], 16, " K_int"); + log->debug(" Local count: %d\n", count); + log->debug(" Bearer ID: %d\n", get_bearer_id(lcid)); + log->debug(" Direction: %s\n", (cfg.direction == SECURITY_DIRECTION_DOWNLINK) ? "Uplink" : "Downlink"); + log->debug_hex(msg, msg_len, " Message"); + switch(integ_algo) { case INTEGRITY_ALGORITHM_ID_EIA0: