From 55898166902f4dc8ea857ca29ff9151400a61979 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Tue, 7 Jul 2020 17:20:16 +0200 Subject: [PATCH] pdu_test: fix PCAP output API now requires to pass CC index --- lib/test/mac/pdu_test.cc | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/test/mac/pdu_test.cc b/lib/test/mac/pdu_test.cc index 70e928c74..1f8c21b8a 100644 --- a/lib/test/mac/pdu_test.cc +++ b/lib/test/mac/pdu_test.cc @@ -222,7 +222,7 @@ int mac_sch_pdu_pack_test1() mac_log->info_hex(buffer.msg, buffer.N_bytes, "MAC PDU (%d B):\n", buffer.N_bytes); #if HAVE_PCAP - pcap_handle->write_ul_crnti(buffer.msg, buffer.N_bytes, 0x1001, true, 1); + pcap_handle->write_ul_crnti(buffer.msg, buffer.N_bytes, 0x1001, true, 1, 0); #endif // compare with TV @@ -284,7 +284,7 @@ int mac_sch_pdu_pack_test2() mac_log->info_hex(buffer.msg, buffer.N_bytes, "MAC PDU (%d B):\n", buffer.N_bytes); #if HAVE_PCAP - pcap_handle->write_ul_crnti(buffer.msg, buffer.N_bytes, 0x1001, true, 1); + pcap_handle->write_ul_crnti(buffer.msg, buffer.N_bytes, 0x1001, true, 1, 0); #endif // compare with TV @@ -349,7 +349,7 @@ int mac_sch_pdu_pack_test3() mac_log->info_hex(buffer.msg, buffer.N_bytes, "MAC PDU (%d B):\n", buffer.N_bytes); #if HAVE_PCAP - pcap_handle->write_ul_crnti(buffer.msg, buffer.N_bytes, 0x1001, true, 1); + pcap_handle->write_ul_crnti(buffer.msg, buffer.N_bytes, 0x1001, true, 1, 0); #endif // compare with TV @@ -399,7 +399,7 @@ int mac_sch_pdu_pack_test4() mac_log->info_hex(buffer.msg, buffer.N_bytes, "MAC PDU (%d B):\n", buffer.N_bytes); #if HAVE_PCAP - pcap_handle->write_ul_crnti(buffer.msg, buffer.N_bytes, 0x1001, true, 1); + pcap_handle->write_ul_crnti(buffer.msg, buffer.N_bytes, 0x1001, true, 1, 0); #endif // compare with TV @@ -482,7 +482,7 @@ int mac_sch_pdu_pack_test6() mac_log->info_hex(buffer.msg, buffer.N_bytes, "MAC PDU (%d B):\n", buffer.N_bytes); #if HAVE_PCAP - pcap_handle->write_ul_crnti(buffer.msg, buffer.N_bytes, 0x1001, true, 1); + pcap_handle->write_ul_crnti(buffer.msg, buffer.N_bytes, 0x1001, true, 1, 0); #endif return SRSLTE_SUCCESS; @@ -528,7 +528,7 @@ int mac_sch_pdu_pack_test7() mac_log->info_hex(buffer.msg, buffer.N_bytes, "MAC PDU (%d B):\n", buffer.N_bytes); #if HAVE_PCAP - pcap_handle->write_ul_crnti(buffer.msg, buffer.N_bytes, 0x1001, true, 1); + pcap_handle->write_ul_crnti(buffer.msg, buffer.N_bytes, 0x1001, true, 1, 0); #endif return SRSLTE_SUCCESS; @@ -635,7 +635,7 @@ int mac_sch_pdu_pack_error_test() mac_log->info_hex(buffer.msg, buffer.N_bytes, "MAC PDU (%d B):\n", buffer.N_bytes); #if HAVE_PCAP - pcap_handle->write_ul_crnti(buffer.msg, buffer.N_bytes, 0x1001, true, 1); + pcap_handle->write_ul_crnti(buffer.msg, buffer.N_bytes, 0x1001, true, 1,0); #endif return SRSLTE_SUCCESS; @@ -677,14 +677,14 @@ int mac_mch_pdu_pack_test1() mac_log->info_hex(buffer.msg, buffer.N_bytes, "MAC PDU (%d B):\n", buffer.N_bytes); #if HAVE_PCAP - pcap_handle->write_ul_crnti(buffer.msg, buffer.N_bytes, 0x1001, true, 1); + pcap_handle->write_ul_crnti(buffer.msg, buffer.N_bytes, 0x1001, true, 1,0); #endif // compare with TV TESTASSERT(memcmp(buffer.msg, tv, buffer.N_bytes) == 0); #if HAVE_PCAP - pcap_handle->write_ul_crnti(tv, sizeof(tv), 0x1001, true, 1); + pcap_handle->write_ul_crnti(tv, sizeof(tv), 0x1001, true, 1, 0); #endif return SRSLTE_SUCCESS; @@ -704,7 +704,7 @@ int mac_sch_pdu_unpack_test1() TESTASSERT(pdu.next() == false); #if HAVE_PCAP - pcap_handle->write_ul_crnti(tv, sizeof(tv), 0x1001, true, 1); + pcap_handle->write_ul_crnti(tv, sizeof(tv), 0x1001, true, 1,0); #endif return SRSLTE_SUCCESS; @@ -724,7 +724,7 @@ int mac_sch_pdu_unpack_test2() TESTASSERT(pdu.next() == false); #if HAVE_PCAP - pcap_handle->write_ul_crnti(tv, sizeof(tv), 0x1001, true, 1); + pcap_handle->write_ul_crnti(tv, sizeof(tv), 0x1001, true, 1,0); #endif return SRSLTE_SUCCESS; @@ -744,7 +744,7 @@ int mac_slsch_pdu_unpack_test1() mac_log.set_hex_limit(100000); #if HAVE_PCAP - pcap_handle->write_sl_crnti(tv, sizeof(tv), CRNTI, true, 1); + pcap_handle->write_sl_crnti(tv, sizeof(tv), CRNTI, true, 1, 0); #endif return SRSLTE_SUCCESS;