aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/gb_proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/gprs/gb_proxy.c')
-rw-r--r--openbsc/src/gprs/gb_proxy.c92
1 files changed, 0 insertions, 92 deletions
diff --git a/openbsc/src/gprs/gb_proxy.c b/openbsc/src/gprs/gb_proxy.c
index 504b1a464..ebec59220 100644
--- a/openbsc/src/gprs/gb_proxy.c
+++ b/openbsc/src/gprs/gb_proxy.c
@@ -1957,98 +1957,6 @@ int gbprox_signal(unsigned int subsys, unsigned int signal,
return 0;
}
-int gbprox_dump_global(FILE *stream, int indent)
-{
- unsigned int i;
- const struct rate_ctr_group_desc *desc;
- int rc;
-
- rc = fprintf(stream, "%*sGbproxy global:\n", indent, "");
- if (rc < 0)
- return rc;
-
- desc = gbcfg.ctrg->desc;
-
- for (i = 0; i < desc->num_ctr; i++) {
- struct rate_ctr *ctr = &gbcfg.ctrg->ctr[i];
- if (ctr->current) {
- rc = fprintf(stream, "%*s %s: %llu\n",
- indent, "",
- desc->ctr_desc[i].description,
- (long long)ctr->current);
-
- if (rc < 0)
- return rc;
- }
- }
-
- return 0;
-}
-
-int gbprox_dump_peers(FILE *stream, int indent)
-{
- struct gbprox_peer *peer;
- struct gprs_ra_id raid;
- unsigned int i;
- const struct rate_ctr_group_desc *desc;
- int rc;
- time_t now = time(NULL);
-
- rc = fprintf(stream, "%*sPeers:\n", indent, "");
- if (rc < 0)
- return rc;
-
- llist_for_each_entry(peer, &gbcfg.bts_peers, list) {
- struct gbprox_tlli_info *tlli_info;
- struct gbprox_patch_state *state = &peer->patch_state;
- gsm48_parse_ra(&raid, peer->ra);
-
- rc = fprintf(stream, "%*s NSEI %u, BVCI %u, %sblocked, "
- "RAI %u-%u-%u-%u\n",
- indent, "",
- peer->nsei, peer->bvci,
- peer->blocked ? "" : "not ",
- raid.mcc, raid.mnc, raid.lac, raid.rac);
-
- if (rc < 0)
- return rc;
-
- desc = peer->ctrg->desc;
-
- for (i = 0; i < desc->num_ctr; i++) {
- struct rate_ctr *ctr = &peer->ctrg->ctr[i];
- if (ctr->current) {
- rc = fprintf(stream, "%*s %s: %llu\n",
- indent, "",
- desc->ctr_desc[i].description,
- (long long)ctr->current);
-
- if (rc < 0)
- return rc;
- }
- }
-
- fprintf(stream, "%*s TLLI-Cache: %d\n",
- indent, "", state->enabled_tllis_count);
- llist_for_each_entry(tlli_info, &state->enabled_tllis, list) {
- char mi_buf[200];
- time_t age = now - tlli_info->timestamp;
- snprintf(mi_buf, sizeof(mi_buf), "(invalid)");
- gsm48_mi_to_string(mi_buf, sizeof(mi_buf),
- tlli_info->mi_data,
- tlli_info->mi_data_len);
- rc = fprintf(stream,
- "%*s TLLI %08x, IMSI %s, AGE %d\n",
- indent, "",
- tlli_info->tlli, mi_buf, (int)age);
- if (rc < 0)
- return rc;
- }
- }
-
- return 0;
-}
-
void gbprox_reset()
{
struct gbprox_peer *peer, *tmp;