diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-02-03 13:47:53 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-02-06 09:56:17 +0100 |
commit | cb1db8b6d5277a52ed553925d301bfdc514bb77c (patch) | |
tree | 62515e3ce5b4c0d1d13bcc02c787e1957e64e222 /openbsc/tests/sgsn/sgsn_test.ok | |
parent | 0e8add601da35188eb155c8c279a9bdcaf4ba41b (diff) |
sgsn: Add functions to handle APN contexts
This commit adds the exported functions apn_ctx_find_alloc,
apn_ctx_free, apn_ctx_by_name, and apn_ctx_match to manage and
retrieve APN to GGSN mappings.
The following VTY commands are added to 'config-sgsn':
- apn APN ggsn <0-255>
- apn APN imsi-prefix PREFIX ggsn <0-255>
which maps an APN gateway string to an SGSN id. The SGSN must be
configured in advance. When matching an APN string, entries with a
leading '*' are used for suffix matching, otherwise an exact match is
done. When a prefix is given, it is matched against the IMSI. If
several entries match, a longer matching IMSI prefix has precedence.
If there are several matching entries with the same PREFIX, the entry
with longest matching APN is returned.
Ticket: OW#1334
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/tests/sgsn/sgsn_test.ok')
-rw-r--r-- | openbsc/tests/sgsn/sgsn_test.ok | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/tests/sgsn/sgsn_test.ok b/openbsc/tests/sgsn/sgsn_test.ok index e5df50482..9f14721af 100644 --- a/openbsc/tests/sgsn/sgsn_test.ok +++ b/openbsc/tests/sgsn/sgsn_test.ok @@ -26,4 +26,5 @@ Testing P-TMSI allocation - sgsn_alloc_ptmsi - Repeated Attach Request - Repeated RA Update Request +Testing APN matching Done |