Change in osmo-bts[master]: osmo-bts-virtual: fix wrong endianness in gsmtap_hdr_stringify()

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/.

laforge gerrit-no-reply at lists.osmocom.org
Sun Mar 1 19:14:22 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/17297 )

Change subject: osmo-bts-virtual: fix wrong endianness in gsmtap_hdr_stringify()
......................................................................

osmo-bts-virtual: fix wrong endianness in gsmtap_hdr_stringify()

Change-Id: Ic9e84dc4adc44df735cba102bdace2fb1993ac8e
---
M src/osmo-bts-virtual/scheduler_virtbts.c
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved



diff --git a/src/osmo-bts-virtual/scheduler_virtbts.c b/src/osmo-bts-virtual/scheduler_virtbts.c
index 0621eaa..fef367b 100644
--- a/src/osmo-bts-virtual/scheduler_virtbts.c
+++ b/src/osmo-bts-virtual/scheduler_virtbts.c
@@ -50,7 +50,9 @@
 {
 	static char buf[256];
 	snprintf(buf, sizeof(buf), "(ARFCN=%u, ts=%u, ss=%u, type=%u/%u)",
-		 gh->arfcn & GSMTAP_ARFCN_MASK, gh->timeslot, gh->sub_slot, gh->type, gh->sub_type);
+		 ntohs(gh->arfcn & GSMTAP_ARFCN_MASK),
+		 gh->timeslot, gh->sub_slot,
+		 gh->type, gh->sub_type);
 	return buf;
 }
 

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ic9e84dc4adc44df735cba102bdace2fb1993ac8e
Gerrit-Change-Number: 17297
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200301/4886cd44/attachment.htm>


More information about the gerrit-log mailing list