blob: b3d73e918d9a5f4ac205b700fdbfe7be42910de4 [file] [log] [blame]
Neels Hofmeyr647c1062019-11-20 03:35:37 +01001/* 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/hlr/logging.h>
25#include <osmocom/gsupclient/gsup_peer_id.h>
26#include <osmocom/gsupclient/gsup_req.h>
27
28#define LOG_DGSM(imsi, level, fmt, args...) \
29 LOGP(DDGSM, level, "(IMSI-%s) " fmt, imsi, ##args)
30
31struct vty;
32struct remote_hlr;
33struct hlr_subscriber;
34
35extern void *dgsm_ctx;
36
37void dgsm_init(void *ctx);
38void dgsm_start(void *ctx);
39void dgsm_stop();
40
41bool dgsm_check_forward_gsup_msg(struct osmo_gsup_req *req);
42
43void dgsm_vty_init();
44void dgsm_mdns_client_config_apply(void);
45
46bool hlr_subscr_lu_age(const struct hlr_subscriber *subscr, uint32_t *age_p);