Neels Hofmeyr | 1971b67 | 2020-01-23 04:40:51 +0100 | [diff] [blame] | 1 | /* Copyright 2020 by sysmocom s.f.m.c. GmbH <info@sysmocom.de> |
| 2 | * |
| 3 | * Author: Neels Hofmeyr <neels@hofmeyr.de> |
| 4 | * |
| 5 | * All Rights Reserved |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU Affero General Public License as published by |
| 9 | * the Free Software Foundation; either version 3 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU Affero General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU Affero General Public License |
| 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | * |
| 20 | */ |
| 21 | |
| 22 | /* If a subscriber from a remote site has successfully attached at this local site, and the link to the subscriber's |
| 23 | * home HLR has succeeded, this will try to bridge the time of temporary link failure to that home HLR. |
| 24 | * Tasks to take over from the unreachable home HLR: |
| 25 | * - Resend known auth tuples on OSMO_GSUP_MSGT_SEND_AUTH_INFO_REQUEST. |
| 26 | * - ...? |
| 27 | * |
| 28 | * |
| 29 | */ |
| 30 | |
| 31 | /* Data stored per subscriber */ |
| 32 | struct proxy_broken_link_cache { |
| 33 | struct osmo_auth_vector auth_vectors[OSMO_GSUP_MAX_NUM_AUTH_INFO]; |
| 34 | size_t num_auth_vectors; |
| 35 | |
| 36 | timestamp_t last_update; |
| 37 | }; |