2017-02-17 16:06:59 +00:00
|
|
|
#pragma once
|
2008-12-23 20:25:15 +00:00
|
|
|
|
2009-12-22 21:32:51 +00:00
|
|
|
#include <stdio.h>
|
2011-03-22 15:47:59 +00:00
|
|
|
#include <osmocom/core/linuxlist.h>
|
2009-02-18 03:27:39 +00:00
|
|
|
|
2009-12-22 21:32:51 +00:00
|
|
|
#define DEBUG
|
2011-03-22 15:47:59 +00:00
|
|
|
#include <osmocom/core/logging.h>
|
2009-11-20 12:05:48 +00:00
|
|
|
|
2009-12-22 21:32:51 +00:00
|
|
|
/* Debug Areas of the code */
|
|
|
|
enum {
|
|
|
|
DRLL,
|
|
|
|
DCC,
|
|
|
|
DMM,
|
|
|
|
DRR,
|
|
|
|
DRSL,
|
|
|
|
DNM,
|
|
|
|
DMNCC,
|
|
|
|
DPAG,
|
|
|
|
DMEAS,
|
|
|
|
DSCCP,
|
|
|
|
DMSC,
|
|
|
|
DMGCP,
|
|
|
|
DHO,
|
2009-12-24 10:39:14 +00:00
|
|
|
DDB,
|
2009-12-24 10:46:44 +00:00
|
|
|
DREF,
|
2010-03-14 07:45:01 +00:00
|
|
|
DGPRS,
|
2010-05-11 03:54:22 +00:00
|
|
|
DNS,
|
|
|
|
DBSSGP,
|
2010-05-13 17:47:01 +00:00
|
|
|
DLLC,
|
|
|
|
DSNDCP,
|
2016-08-26 14:58:41 +00:00
|
|
|
DSLHC,
|
2010-06-15 11:27:25 +00:00
|
|
|
DNAT,
|
2011-07-19 10:14:34 +00:00
|
|
|
DCTRL,
|
2012-11-08 15:14:37 +00:00
|
|
|
DSMPP,
|
2015-04-05 17:34:12 +00:00
|
|
|
DFILTER,
|
2015-09-24 15:32:30 +00:00
|
|
|
DGTPHUB,
|
2016-05-20 19:59:45 +00:00
|
|
|
DRANAP,
|
2016-05-20 19:59:35 +00:00
|
|
|
DSUA,
|
2016-09-02 11:32:38 +00:00
|
|
|
DV42BIS,
|
2016-10-26 13:19:41 +00:00
|
|
|
DPCU,
|
2009-12-22 21:32:51 +00:00
|
|
|
Debug_LastEntry,
|
|
|
|
};
|
2009-12-16 23:31:10 +00:00
|
|
|
|
2014-12-28 17:54:32 +00:00
|
|
|
struct gsm_subscriber;
|
2010-05-15 21:52:02 +00:00
|
|
|
|
add struct bsc_subscr, separating libbsc from gsm_subscriber
In a future commit, gsm_subscriber will be replaced by vlr_subscr, and it will
not make sense to use vlr_subscr in libbsc. Thus we need a dedicated BSC
subscriber: struct bsc_subscr.
Add rf_policy arg to bsc_grace_paging_request() because the bsc_subscr will no
longer have a backpointer to gsm_network (used to be via subscr->group).
Create a separate logging filter for the new BSC subscriber. The implementation
of adjusting the filter context is added in libbsc to not introduce
bsc_subscr_get/_put() dependencies to libcommon.
During Paging Response, fetch a bsc_subscr from the mobile identity, like we do
for the gsm_subscriber. It looks like a duplication now, but will make sense
for the VLR as well as for future MSC split patches.
Naming: it was requested to not name the new struct bsc_sub, because 'sub' is
too ambiguous. At the same time it would be fine to have 'bsc_sub_' as function
prefix. Instead of struct bsc_subscriber and bsc_sub_ prefix, I decided to
match both up as struct bsc_subscr and bsc_subscr_ function prefix. It's fast
to type, relatively short, unambiguous, and the naming is consistent.
Add bsc_subscr unit test.
Related: OS#1592, OS#1594
Change-Id: Ia61cc00e8bb186b976939a4fc8f7cf9ce6aa3d8e
2017-02-18 21:20:46 +00:00
|
|
|
void log_set_filter_vlr_subscr(struct log_target *target,
|
|
|
|
struct gsm_subscriber *vlr_subscr);
|
2009-12-22 21:32:51 +00:00
|
|
|
|
2010-03-26 13:28:59 +00:00
|
|
|
extern const struct log_info log_info;
|