mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-01 20:43:47 +00:00
nat: SMS rewrite matching, empty list means match everything
This commit is contained in:
@@ -907,7 +907,7 @@ static char *find_new_smsc(struct bsc_nat *nat, void *ctx, const char *imsi,
|
|||||||
{
|
{
|
||||||
struct bsc_nat_num_rewr_entry *entry;
|
struct bsc_nat_num_rewr_entry *entry;
|
||||||
char *new_number = NULL;
|
char *new_number = NULL;
|
||||||
uint8_t dest_match = 0;
|
uint8_t dest_match = llist_empty(&nat->tpdest_match);
|
||||||
|
|
||||||
/* We will find a new number now */
|
/* We will find a new number now */
|
||||||
llist_for_each_entry(entry, &nat->smsc_rewr, list) {
|
llist_for_each_entry(entry, &nat->smsc_rewr, list) {
|
||||||
|
|||||||
Reference in New Issue
Block a user