BSSAP parsing in Osmo*SC

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

Max msuraev at sysmocom.de
Fri Nov 2 17:21:50 UTC 2018


Hi.

While browsing through the code I've noticed that BSSMAP is parsed 
differently by OsmoBSC and OsmoMSC.

In MSC we use "msg->l3h = &msg->l2h[sizeof(struct bssmap_header)];" in 
a_iface_bssap.c:707 and 202

In BSC we use "msg->l4h = &msg->l3h[sizeof(struct bssmap_header)];" in 
osmo_bsc_bssap.c:988

What's the reason for this difference?

I thought that if protocol is the same than the basic layering and 
parsing should look the same as well.

-- 
- Max Suraev <msuraev at sysmocom.de>       http://www.sysmocom.de/
=======================================================================
* sysmocom - systems for mobile communications GmbH
* Alt-Moabit 93
* 10559 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B
* Geschaeftsfuehrer / Managing Directors: Harald Welte




More information about the OpenBSC mailing list