diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-01-18 15:57:48 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-03-03 16:19:09 +0100 |
commit | 712074cb171a9139a40d564a35a07b59871c2389 (patch) | |
tree | d29c4ef80580987d46984a1ca2e1cdf118a0430f /openbsc/src | |
parent | a34aedf7f92b240e591098e7868513db244bd7b3 (diff) |
cosmetic: a rename, comments.
Rename conn_ctx_list -> ue_conn_ctx_list.
Indicate Iu-CS 'siblings' for a couple of functions.
Tweak/add comments.
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/gprs/iu.c | 6 | ||||
-rw-r--r-- | openbsc/src/libbsc/bsc_api.c | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/openbsc/src/gprs/iu.c b/openbsc/src/gprs/iu.c index 56614d10f..f30d844ac 100644 --- a/openbsc/src/gprs/iu.c +++ b/openbsc/src/gprs/iu.c @@ -33,7 +33,7 @@ void *talloc_asn1_ctx; iu_recv_cb_t global_iu_recv_cb = NULL; -static LLIST_HEAD(conn_ctx_list); +static LLIST_HEAD(ue_conn_ctx_list); struct ue_conn_ctx *ue_conn_ctx_alloc(struct osmo_sua_link *link, uint32_t conn_id) { @@ -41,7 +41,7 @@ struct ue_conn_ctx *ue_conn_ctx_alloc(struct osmo_sua_link *link, uint32_t conn_ ctx->link = link; ctx->conn_id = conn_id; - llist_add(&ctx->list, &conn_ctx_list); + llist_add(&ctx->list, &ue_conn_ctx_list); return ctx; } @@ -50,7 +50,7 @@ struct ue_conn_ctx *ue_conn_ctx_find(struct osmo_sua_link *link, uint32_t conn_i { struct ue_conn_ctx *ctx; - llist_for_each_entry(ctx, &conn_ctx_list, list) { + llist_for_each_entry(ctx, &ue_conn_ctx_list, list) { if (ctx->link == link && ctx->conn_id == conn_id) return ctx; } diff --git a/openbsc/src/libbsc/bsc_api.c b/openbsc/src/libbsc/bsc_api.c index 3225adc1d..4613502e3 100644 --- a/openbsc/src/libbsc/bsc_api.c +++ b/openbsc/src/libbsc/bsc_api.c @@ -239,8 +239,8 @@ static int handle_new_assignment(struct gsm_subscriber_connection *conn, int cha return 0; } -struct gsm_subscriber_connection *subscr_con_allocate_iu(struct gsm_lchan *lchan) -/* for A-interface */ +/* Allocate a subscriber connection for A-interface link. For Iu-CS see + * subscr_con_allocate_iu(). */ struct gsm_subscriber_connection *subscr_con_allocate(struct gsm_lchan *lchan) { struct gsm_subscriber_connection *conn; @@ -251,6 +251,7 @@ struct gsm_subscriber_connection *subscr_con_allocate(struct gsm_lchan *lchan) return NULL; /* Configure the time and start it so it will be closed */ + /* FIXME: above comment is weird in at least two ways */ conn->lchan = lchan; conn->bts = lchan->ts->trx->bts; lchan->conn = conn; @@ -655,7 +656,8 @@ static void dispatch_dtap(struct gsm_subscriber_connection *conn, } } -/*! \brief RSL has received a DATA INDICATION with L3 from MS */ +/*! \brief RSL has received a DATA INDICATION with L3 from MS. + * (for Iu-CS see gsm0408_rcvmsg_iucs()) */ int gsm0408_rcvmsg(struct msgb *msg, uint8_t link_id) { int rc; |