Change in ...osmo-pcu[master]: Log RACH Requests using GSMTAP

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/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Mon Sep 30 17:52:23 UTC 2019


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/15632


Change subject: Log RACH Requests using GSMTAP
......................................................................

Log RACH Requests using GSMTAP

Change-Id: Ib686a49e8c630808c30bede5810cd65fc045954a
---
M src/bts.cpp
M src/bts.h
M src/pcu_vty.c
3 files changed, 5 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/32/15632/1

diff --git a/src/bts.cpp b/src/bts.cpp
index df58494..0d33d81 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -750,6 +750,8 @@
 	/* Determine full frame number */
 	Fn = rfn_to_fn(Fn);
 
+	send_gsmtap(PCU_GSMTAP_C_UL_RACH, true, 0, ts_no, GSMTAP_CHANNEL_RACH, Fn, (uint8_t*)&ra, sizeof(ra));
+
 	LOGP(DRLCMAC, LOGL_DEBUG, "MS requests UL TBF on RACH, "
 		"so we provide one: ra=0x%02x Fn=%u qta=%d is_11bit=%d:\n",
 		ra, Fn, qta, is_11bit);
diff --git a/src/bts.h b/src/bts.h
index fab9bcb..ad94ef3 100644
--- a/src/bts.h
+++ b/src/bts.h
@@ -64,6 +64,7 @@
 	PCU_GSMTAP_C_UL_CTRL		= 17,	/* uplink control blocks */
 	PCU_GSMTAP_C_UL_DATA_GPRS	= 18,	/* uplink GPRS data blocks */
 	PCU_GSMTAP_C_UL_DATA_EGPRS	= 19,	/* uplink EGPRS data blocks */
+	PCU_GSMTAP_C_UL_RACH		= 20,	/* uplink RACH blocks */
 };
 
 struct BTS;
diff --git a/src/pcu_vty.c b/src/pcu_vty.c
index c47c896..dbde374 100644
--- a/src/pcu_vty.c
+++ b/src/pcu_vty.c
@@ -34,6 +34,7 @@
 	{ PCU_GSMTAP_C_UL_CTRL,		"ul-ctrl" },
 	{ PCU_GSMTAP_C_UL_DATA_GPRS,	"ul-data-gprs" },
 	{ PCU_GSMTAP_C_UL_DATA_EGPRS,	"ul-data-egprs" },
+	{ PCU_GSMTAP_C_UL_RACH,		"ul-rach" },
 
 	{ 0, NULL }
 };
@@ -51,6 +52,7 @@
 	{ PCU_GSMTAP_C_UL_CTRL,		"Uplink Control Blocks" },
 	{ PCU_GSMTAP_C_UL_DATA_GPRS,	"Uplink Data Blocks (GPRS)" },
 	{ PCU_GSMTAP_C_UL_DATA_EGPRS,	"Uplink Data Blocks (EGPRS)" },
+	{ PCU_GSMTAP_C_UL_RACH,		"Uplink RACH Blocks" },
 
 	{ 0, NULL }
 };

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

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: Ib686a49e8c630808c30bede5810cd65fc045954a
Gerrit-Change-Number: 15632
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190930/8e3c2257/attachment.htm>


More information about the gerrit-log mailing list