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/.
Neels Hofmeyr gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/1858 subscriber conn: add indicator for originating interface Add via_iface to gsm_subscriber_connection to indicate whether a conn is coming in via 2G/GERAN/A-Interface (IFACE_A) or 3G/UTRAN/Iu-Interface (IFACE_IU). Prepares for Iu, but also for libvlr to decide between GSM or UMTS Auth. Until actual Iu support is merged to master, this indicator will aid VLR unit testing. Change-Id: I93b870522f725170e4265a5543f6b680383d7465 --- M openbsc/include/openbsc/gsm_data.h M openbsc/src/libbsc/bsc_api.c 2 files changed, 9 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/58/1858/1 diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h index ac573c4..a776d2d 100644 --- a/openbsc/include/openbsc/gsm_data.h +++ b/openbsc/include/openbsc/gsm_data.h @@ -104,6 +104,12 @@ uint8_t last_seen_nr; }; +enum interface_type { + IFACE_UNKNOWN, + IFACE_A, /* 2G / GERAN / A-interface */ + IFACE_IU /* 3G / UTRAN / Iu-interface (IuCS or IuPS) */ +}; + /* active radio connection of a mobile subscriber */ struct gsm_subscriber_connection { struct llist_head entry; @@ -146,6 +152,8 @@ struct osmo_timer_list T10; /* BSC */ struct gsm_lchan *secondary_lchan; /* BSC */ + /* connected via 2G or 3G? */ + enum interface_type via_iface; }; diff --git a/openbsc/src/libbsc/bsc_api.c b/openbsc/src/libbsc/bsc_api.c index 7a48296..83c6c8c 100644 --- a/openbsc/src/libbsc/bsc_api.c +++ b/openbsc/src/libbsc/bsc_api.c @@ -251,6 +251,7 @@ conn->network = net; conn->lchan = lchan; conn->bts = lchan->ts->trx->bts; + conn->via_iface = IFACE_A; lchan->conn = conn; llist_add_tail(&conn->entry, &net->subscr_conns); return conn; -- To view, visit https://gerrit.osmocom.org/1858 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I93b870522f725170e4265a5543f6b680383d7465 Gerrit-PatchSet: 1 Gerrit-Project: openbsc Gerrit-Branch: master Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>