blob: f06e381011aa66426d3d9c1dd5eb54c4f7b471a3 [file] [log] [blame]
Neels Hofmeyr62d916f2019-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/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
30struct vty;
31struct remote_hlr;
32struct hlr_subscriber;
33
34extern void *dgsm_ctx;
35
36void dgsm_init(void *ctx);
37void dgsm_start(void *ctx);
38void dgsm_stop();
39
40bool dgsm_check_forward_gsup_msg(struct osmo_gsup_req *req);
41
42void dgsm_vty_init();
43void dgsm_mdns_client_config_apply(void);
44
45bool hlr_subscr_lu_age(const struct hlr_subscriber *subscr, uint32_t *age_p);