filter: Rename BSC to LOCAL and NAT to GLOBAL
This commit is contained in:
parent
a1e6bd6768
commit
14b2cd9f32
|
@ -28,8 +28,8 @@ struct bsc_nat_barr_entry {
|
|||
};
|
||||
|
||||
enum bsc_nat_acc_ctr {
|
||||
ACC_LIST_BSC_FILTER,
|
||||
ACC_LIST_NAT_FILTER,
|
||||
ACC_LIST_LOCAL_FILTER,
|
||||
ACC_LIST_GLOBAL_FILTER,
|
||||
};
|
||||
|
||||
struct bsc_msg_acc_lst {
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
#include <string.h>
|
||||
|
||||
static const struct rate_ctr_desc acc_list_ctr_description[] = {
|
||||
[ACC_LIST_BSC_FILTER] = { "access-list.bsc-filter", "Rejected by rule for BSC"},
|
||||
[ACC_LIST_NAT_FILTER] = { "access-list.nat-filter", "Rejected by rule for NAT"},
|
||||
[ACC_LIST_LOCAL_FILTER] = { "access-list.local-filter", "Rejected by rule for local"},
|
||||
[ACC_LIST_GLOBAL_FILTER]= { "access-list.global-filter", "Rejected by rule for global"},
|
||||
};
|
||||
|
||||
static const struct rate_ctr_group_desc bsc_cfg_acc_list_desc = {
|
||||
|
|
|
@ -181,7 +181,7 @@ static int auth_imsi(struct bsc_connection *bsc, const char *imsi,
|
|||
if (lst_check_deny(bsc_lst, imsi, &cm, &lu) == 0) {
|
||||
LOGP(DNAT, LOGL_ERROR,
|
||||
"Filtering %s by imsi_deny on bsc nr: %d.\n", imsi, bsc->cfg->nr);
|
||||
rate_ctr_inc(&bsc_lst->stats->ctr[ACC_LIST_BSC_FILTER]);
|
||||
rate_ctr_inc(&bsc_lst->stats->ctr[ACC_LIST_LOCAL_FILTER]);
|
||||
cause->cm_reject_cause = cm;
|
||||
cause->lu_reject_cause = lu;
|
||||
return -2;
|
||||
|
@ -194,7 +194,7 @@ static int auth_imsi(struct bsc_connection *bsc, const char *imsi,
|
|||
if (lst_check_deny(nat_lst, imsi, &cm, &lu) == 0) {
|
||||
LOGP(DNAT, LOGL_ERROR,
|
||||
"Filtering %s by nat imsi_deny on bsc nr: %d.\n", imsi, bsc->cfg->nr);
|
||||
rate_ctr_inc(&nat_lst->stats->ctr[ACC_LIST_NAT_FILTER]);
|
||||
rate_ctr_inc(&nat_lst->stats->ctr[ACC_LIST_GLOBAL_FILTER]);
|
||||
cause->cm_reject_cause = cm;
|
||||
cause->lu_reject_cause = lu;
|
||||
return -3;
|
||||
|
|
Loading…
Reference in New Issue