BSSAP parsing in Osmo*SC

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


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 

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