From 89acdef892dbb18b85b342aa46cdd0c636a8f8f7 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Wed, 23 Sep 2020 18:22:31 +0200 Subject: ns2: remove bssgp specific msgb->cb parts There shouldn't be any knowledge of the upper layer in the NS layer. The PCU / SGSN / gbproxy have to add the pointer when parsing the primitives. Change-Id: Id7edb8feb96436ba170383fc62d43ceb16955d53 --- src/gb/gprs_ns2_vc_fsm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gb/gprs_ns2_vc_fsm.c b/src/gb/gprs_ns2_vc_fsm.c index 33a0328b..7b07a497 100644 --- a/src/gb/gprs_ns2_vc_fsm.c +++ b/src/gb/gprs_ns2_vc_fsm.c @@ -469,9 +469,9 @@ static void gprs_ns2_recv_unitdata(struct osmo_fsm_inst *fi, /* TODO: nsh->data[0] -> C/R only valid in IP SNS */ bvci = nsh->data[1] << 8 | nsh->data[2]; - msgb_bssgph(msg) = &nsh->data[3]; - msgb_bvci(msg) = nsp.bvci = bvci; - msgb_nsei(msg) = nsp.nsei = priv->nsvc->nse->nsei; + msg->l3h = &nsh->data[3]; + nsp.bvci = bvci; + nsp.nsei = priv->nsvc->nse->nsei; if (nsh->data[0]) nsp.u.unitdata.change = NS_ENDPOINT_REQUEST_CHANGE; -- cgit v1.2.3