From ba8fe4e43565896773a9ce2cd00084c6fdd924f3 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 12 Mar 2019 16:40:07 +0100 Subject: Autofill LCLS parameters for A-interface transactions That's experimental patch to facilitate testing of BSC implementation of LCLS. Change-Id: I35ae6b6ca04925c8d300bc1a0269af00eac727f3 --- include/osmocom/msc/debug.h | 1 + include/osmocom/msc/mncc.h | 3 +++ include/osmocom/msc/ran_msg.h | 1 + include/osmocom/msc/transaction.h | 3 +++ include/osmocom/msc/vlr.h | 1 + 5 files changed, 9 insertions(+) (limited to 'include') diff --git a/include/osmocom/msc/debug.h b/include/osmocom/msc/debug.h index 3347e20d4..0d08ceb11 100644 --- a/include/osmocom/msc/debug.h +++ b/include/osmocom/msc/debug.h @@ -8,6 +8,7 @@ enum { DCC, DMM, DRR, + DLCLS, DMNCC, DPAG, DMSC, diff --git a/include/osmocom/msc/mncc.h b/include/osmocom/msc/mncc.h index 1c8aff0c9..076747547 100644 --- a/include/osmocom/msc/mncc.h +++ b/include/osmocom/msc/mncc.h @@ -26,6 +26,7 @@ #include #include +#include #include #include @@ -161,6 +162,8 @@ struct gsm_mncc { unsigned char lchan_type; unsigned char lchan_mode; + struct osmo_gcr_parsed gcr; + /* A buffer to contain SDP ('\0' terminated) */ char sdp[1024]; }; diff --git a/include/osmocom/msc/ran_msg.h b/include/osmocom/msc/ran_msg.h index 3b08b466c..5fdb90cda 100644 --- a/include/osmocom/msc/ran_msg.h +++ b/include/osmocom/msc/ran_msg.h @@ -88,6 +88,7 @@ struct ran_assignment_command { uint8_t osmux_cid; bool call_id_present; uint32_t call_id; + struct osmo_lcls *lcls; }; struct ran_cipher_mode_command { diff --git a/include/osmocom/msc/transaction.h b/include/osmocom/msc/transaction.h index 928b137ae..494ad88db 100644 --- a/include/osmocom/msc/transaction.h +++ b/include/osmocom/msc/transaction.h @@ -132,6 +132,7 @@ struct gsm_trans { struct gsm_trans *peer; enum bridge_state state; } bridge; + struct osmo_lcls *lcls; }; @@ -145,6 +146,8 @@ struct gsm_trans *trans_find_by_sm_rp_mr(const struct gsm_network *net, const struct vlr_subscr *vsub, uint8_t sm_rp_mr); +struct osmo_lcls *trans_lcls_compose(const struct gsm_trans *trans, bool use_lac); + struct gsm_trans *trans_alloc(struct gsm_network *net, struct vlr_subscr *vsub, enum trans_type type, uint8_t trans_id, diff --git a/include/osmocom/msc/vlr.h b/include/osmocom/msc/vlr.h index 3b9bbc41c..971db528b 100644 --- a/include/osmocom/msc/vlr.h +++ b/include/osmocom/msc/vlr.h @@ -271,6 +271,7 @@ struct vlr_instance { bool is_ps; uint8_t nri_bitlen; struct osmo_nri_ranges *nri_ranges; + bool lcls_enable; } cfg; /* A free-form pointer for use by the caller */ void *user_ctx; -- cgit v1.2.3