Change in libosmocore[master]: gsm0808: add Kc128 to Handover Request

laforge gerrit-no-reply at lists.osmocom.org
Fri Jun 25 08:19:05 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/24769 )

Change subject: gsm0808: add Kc128 to Handover Request
......................................................................

gsm0808: add Kc128 to Handover Request

Change-Id: Ieb6e43eef9e57281d54d4b7c63664668df5aef3e
---
M include/osmocom/gsm/gsm0808.h
M src/gsm/gsm0808.c
2 files changed, 9 insertions(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/include/osmocom/gsm/gsm0808.h b/include/osmocom/gsm/gsm0808.h
index 3e39460..c21ce8a 100644
--- a/include/osmocom/gsm/gsm0808.h
+++ b/include/osmocom/gsm/gsm0808.h
@@ -218,7 +218,12 @@
 	uint8_t global_call_reference_len;
 
 	/* more items are defined in the spec and may be added later */
-	bool more_items; /*!< always set this to false */
+	bool more_items; /*!< set this to true iff any fields below are used */
+
+	bool kc128_present;
+	uint8_t kc128[16];
+
+	bool more_items2; /*!< always set this to false */
 };
 struct msgb *gsm0808_create_handover_request(const struct gsm0808_handover_request *params);
 
diff --git a/src/gsm/gsm0808.c b/src/gsm/gsm0808.c
index 4f072f7..158c490 100644
--- a/src/gsm/gsm0808.c
+++ b/src/gsm/gsm0808.c
@@ -1005,6 +1005,9 @@
 		msgb_tv_fixed_put(msg, GSM0808_IE_CALL_ID, 4, val);
 	}
 
+	if (params->more_items && params->kc128_present)
+		gsm0808_enc_kc128(msg, params->kc128);
+
 	if (params->global_call_reference && params->global_call_reference_len) {
 		msgb_tlv_put(msg, GSM0808_IE_GLOBAL_CALL_REF,
 			     params->global_call_reference_len, params->global_call_reference);

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/24769
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ieb6e43eef9e57281d54d4b7c63664668df5aef3e
Gerrit-Change-Number: 24769
Gerrit-PatchSet: 3
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-CC: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210625/6d595a65/attachment.htm>


More information about the gerrit-log mailing list