Neels Hofmeyr | 62d916f | 2019-11-20 03:35:37 +0100 | [diff] [blame^] | 1 | /* Copyright 2019 by sysmocom s.f.m.c. GmbH <info@sysmocom.de> |
| 2 | * |
| 3 | * All Rights Reserved |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU Affero General Public License as published by |
| 7 | * the Free Software Foundation; either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU Affero General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Affero General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | * |
| 18 | */ |
| 19 | |
| 20 | #pragma once |
| 21 | |
| 22 | #include <osmocom/mslookup/mslookup.h> |
| 23 | #include <osmocom/hlr/gsup_server.h> |
| 24 | #include <osmocom/gsupclient/gsup_peer_id.h> |
| 25 | #include <osmocom/gsupclient/gsup_req.h> |
| 26 | |
| 27 | #define LOG_DGSM(imsi, level, fmt, args...) \ |
| 28 | LOGP(DDGSM, level, "(IMSI-%s) " fmt, imsi, ##args) |
| 29 | |
| 30 | struct vty; |
| 31 | struct remote_hlr; |
| 32 | struct hlr_subscriber; |
| 33 | |
| 34 | extern void *dgsm_ctx; |
| 35 | |
| 36 | void dgsm_init(void *ctx); |
| 37 | void dgsm_start(void *ctx); |
| 38 | void dgsm_stop(); |
| 39 | |
| 40 | bool dgsm_check_forward_gsup_msg(struct osmo_gsup_req *req); |
| 41 | |
| 42 | void dgsm_vty_init(); |
| 43 | void dgsm_mdns_client_config_apply(void); |
| 44 | |
| 45 | bool hlr_subscr_lu_age(const struct hlr_subscriber *subscr, uint32_t *age_p); |