aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2021-01-11 05:00:46 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2021-01-17 13:51:57 +0100
commit6ff8d21fed42a1a8211cc55eff5ce13fffa4d9d8 (patch)
tree5930a282dc592743538fbd3533b1f9d8ea9b0dea
parent5b1122f717df5f5ee39b127d332c63e07f5fb473 (diff)
gbproxy: Use C-style comments
-rw-r--r--src/gbproxy/gb_proxy.c4
-rw-r--r--src/gbproxy/gb_proxy_peer.c10
2 files changed, 7 insertions, 7 deletions
diff --git a/src/gbproxy/gb_proxy.c b/src/gbproxy/gb_proxy.c
index 44a9008ca..da232e2d4 100644
--- a/src/gbproxy/gb_proxy.c
+++ b/src/gbproxy/gb_proxy.c
@@ -417,9 +417,9 @@ static int gbprox_rx_ptp_from_bss(struct gbproxy_nse *nse, struct msgb *msg, uin
tlli = osmo_load32be(TLVP_VAL(&tp, BSSGP_IE_TMSI));
rc = gbprox_bss2sgsn_tlli(bss_bvc->cell, msg, &tlli, false);
} else if (TLVP_PRESENT(&tp, BSSGP_IE_IMSI)) {
- // FIXME: Use the IMSI as selector?
+ /* FIXME: Use the IMSI as selector? */
rc = gbprox_bss2sgsn_tlli(bss_bvc->cell, msg, NULL, false);
- //rc = gbprox_bss2sgsn_hashed(bss_bvc->cell, msg, NULL);
+ /* rc = gbprox_bss2sgsn_hashed(bss_bvc->cell, msg, NULL); */
} else
LOGPBVC(bss_bvc, LOGL_ERROR, "Rx RADIO-STATUS without any of the conditional IEs\n");
break;
diff --git a/src/gbproxy/gb_proxy_peer.c b/src/gbproxy/gb_proxy_peer.c
index 1d9352de0..7e9433196 100644
--- a/src/gbproxy/gb_proxy_peer.c
+++ b/src/gbproxy/gb_proxy_peer.c
@@ -609,7 +609,7 @@ static void _sgsn_free(struct gbproxy_sgsn *sgsn) {
LOGPSGSN_CAT(sgsn, DOBJ, LOGL_INFO, "SGSN Destroying\n");
llist_del(&sgsn->list);
- // talloc will free ->name and ->pool.nri_ranges
+ /* talloc will free ->name and ->pool.nri_ranges */
talloc_free(sgsn);
}
@@ -728,23 +728,23 @@ struct gbproxy_sgsn *gbproxy_sgsn_by_tlli(struct gbproxy_config *cfg, struct gbp
return sgsn;
}
- // TODO: We should keep track of count in cfg
+ /* TODO: We should keep track of count in cfg */
num_sgsns = llist_count(&cfg->sgsns);
if (num_sgsns == 0)
return NULL;
- // FIXME: 256 SGSNs ought to be enough for everyone
+ /* FIXME: 256 SGSNs ought to be enough for everyone */
index = hash_32(tlli, 8) % num_sgsns;
- // Get the first enabled SGSN after index
+ /* Get the first enabled SGSN after index */
llist_for_each_entry(sgsn, &cfg->sgsns, list) {
if (i >= index && sgsn->pool.allow_attach) {
return sgsn;
}
i++;
}
- // Start again from the beginning
+ /* Start again from the beginning */
i = 0;
llist_for_each_entry(sgsn, &cfg->sgsns, list) {
if (i >= index) {