[PATCH 6/7] [transaction] Never allocate transaction ID 7

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Sylvain Munaut 246tnt at gmail.com
Fri Dec 18 17:28:11 UTC 2009


From: Sylvain Munaut <tnt at 246tNt.com>

According to GSM 04.07 11.2.3.1.3 , TID 7 is "reserved
for future extensions".

Signed-off-by: Sylvain Munaut <tnt at 246tNt.com>
---
 openbsc/src/transaction.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/openbsc/src/transaction.c b/openbsc/src/transaction.c
index 9f1bbf3..1d58333 100644
--- a/openbsc/src/transaction.c
+++ b/openbsc/src/transaction.c
@@ -133,7 +133,7 @@ int trans_assign_trans_id(struct gsm_subscriber *subscr,
 		used_tid_bitmask |= (1 << trans->transaction_id);
 	}
 
-	for (i = 0; i <= 7; i++) {
+	for (i = 0; i < 7; i++) {
 		if ((used_tid_bitmask & (1 << (i | ti_flag))) == 0)
 			return i | ti_flag;
 	}
-- 
1.6.5.1





More information about the OpenBSC mailing list