diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-08-12 16:30:30 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-08-24 16:16:39 +0200 |
commit | 9057bc3c727e97cd7ff2534bffbd9ba4dcd8d4ea (patch) | |
tree | d63a0a24749b5961285515b44c4641b8a13f10ba /openbsc/src/gprs/gb_proxy_vty.c | |
parent | c53f2a6961780153fbf97910609c827a0e9300c3 (diff) |
gbproxy: Track SGSN and BSS TLLI/PTMSI separately
This patch separates BSS side from SGSN side TLLI/PTMSI tracking. When
TLLI/PTMSI patching is not enabled, the corresponding states shall be
identical. The TLLI/PTMSI state has been moved into the struct
gbproxy_tlli_state and is used twice in gbproxy_tlli_info.
Since the state handling for uplink and downlink messages is
diverging, gbprox_update_state() is replaced by two functions
gbprox_update_state_dl/gbprox_update_state_ul and
gbprox_process_bssgp_message() is replaced by
gbprox_process_bssgp_dl/gbprox_process_bssgp_ul.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/src/gprs/gb_proxy_vty.c')
-rw-r--r-- | openbsc/src/gprs/gb_proxy_vty.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/openbsc/src/gprs/gb_proxy_vty.c b/openbsc/src/gprs/gb_proxy_vty.c index 9574a451f..d1b912fcd 100644 --- a/openbsc/src/gprs/gb_proxy_vty.c +++ b/openbsc/src/gprs/gb_proxy_vty.c @@ -377,7 +377,7 @@ DEFUN(show_gbproxy_tllis, show_gbproxy_tllis_cmd, "show gbproxy tllis", snprintf(mi_buf, sizeof(mi_buf), "(none)"); } vty_out(vty, " TLLI %08x, IMSI %s, AGE %d%s", - tlli_info->tlli, mi_buf, (int)age, + tlli_info->tlli.current, mi_buf, (int)age, VTY_NEWLINE); } } @@ -532,7 +532,7 @@ DEFUN(delete_gb_tlli, delete_gb_tlli_cmd, } llist_for_each_entry_safe(tlli_info, nxt, &state->enabled_tllis, list) { - if (match == MATCH_TLLI && tlli_info->tlli != tlli) + if (match == MATCH_TLLI && tlli_info->tlli.current != tlli) continue; if (match == MATCH_IMSI) { @@ -544,7 +544,8 @@ DEFUN(delete_gb_tlli, delete_gb_tlli_cmd, if (strcmp(mi_buf, imsi) != 0) continue; } - vty_out(vty, "Deleting TLLI %08x%s", tlli_info->tlli, VTY_NEWLINE); + vty_out(vty, "Deleting TLLI %08x%s", tlli_info->tlli.current, + VTY_NEWLINE); gbprox_delete_tlli(peer, tlli_info); found += 1; } |