aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/decoding.cpp9
-rw-r--r--tests/tbf/TbfTest.err1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/decoding.cpp b/src/decoding.cpp
index 6ae4b16c..0dbb10aa 100644
--- a/src/decoding.cpp
+++ b/src/decoding.cpp
@@ -76,6 +76,9 @@ static int parse_extensions_egprs(const uint8_t *data, unsigned int data_len,
} else if (li->li == 127 && li->e == 1) {
/* TS 44.060, table 10.4.14a.1, row 3 & 5 */
/* only filling bytes left */
+ LOGP(DRLCMACUL, LOGL_DEBUG, "UL DATA LI contains "
+ "only filling bytes with extention octet: LI=%d, E=%d, count=%d\n",
+ li->li, li->e, num_chunks);
break;
} else if (li->li > 0) {
/* TS 44.060, table 10.4.14a.1, row 1 & 2b */
@@ -88,6 +91,9 @@ static int parse_extensions_egprs(const uint8_t *data, unsigned int data_len,
return -EINVAL;
}
+ LOGP(DRLCMACUL, LOGL_DEBUG, "UL DATA LI contains "
+ "extention octet: LI=%d, E=%d, count=%d\n",
+ li->li, li->e, num_chunks);
num_chunks += 1;
if (e == 1) {
@@ -161,6 +167,9 @@ static int parse_extensions_gprs(const uint8_t *data, unsigned int data_len,
chunks[num_chunks].is_complete = li->li || is_last_block;
+ LOGP(DRLCMACUL, LOGL_DEBUG, "UL DATA LI contains "
+ "extention octet: LI=%d, M=%d, E=%d, count=%d\n",
+ li->li, li->m, li->e, num_chunks);
num_chunks += 1;
if (e == 1 && m == 1) {
diff --git a/tests/tbf/TbfTest.err b/tests/tbf/TbfTest.err
index a6808122..2647551a 100644
--- a/tests/tbf/TbfTest.err
+++ b/tests/tbf/TbfTest.err
@@ -6460,6 +6460,7 @@ TBF(TFI=0 TLLI=0xf1223344 DIR=UL STATE=FLOW EGPRS): data_length=44, data=01 00 0
- Raising V(R) to 2
- Taking block 1 out, raising V(Q) to 2
- Assembling frames: (len=44)
+UL DATA LI contains extention octet: LI=0, E=1, count=0
TBF(TFI=0 TLLI=0xf1223344 DIR=UL STATE=FLOW EGPRS) complete UL frame len=44
LLC [PCU -> SGSN] TBF(TFI=0 TLLI=0xf1223344 DIR=UL STATE=FLOW EGPRS) len=44
No bctx