nat: Explain that we do not want to have a + in the replacement rule

This commit is contained in:
Holger Hans Peter Freyther 2010-10-27 10:24:12 +02:00
parent 25adfceb3a
commit 1400310f05
1 changed files with 6 additions and 0 deletions

View File

@ -788,6 +788,12 @@ struct msgb *bsc_nat_rewrite_setup(struct bsc_nat *nat, struct msgb *msg, struct
if (entry->mnc[0] == '*' || strncmp(entry->mnc, imsi + 3, 2) != 0)
continue;
if (entry->text[0] == '+') {
LOGP(DNAT, LOGL_ERROR,
"Plus is not allowed in the number");
continue;
}
/* We have an entry for the IMSI. Need to match now */
if (regcomp(&reg, entry->option, REG_EXTENDED) != 0) {
LOGP(DNAT, LOGL_ERROR,