blob: 237c618fdcbf86e829495efbd409513c5002bb5a [file] [log] [blame]
Philipp Maierfbf66102017-04-09 12:32:51 +02001/* (C) 2017 by sysmocom s.f.m.c. GmbH
2 * All Rights Reserved
3 *
4 * Author: Philipp Maier
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Affero General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Affero General Public License for more details.
15 *
16 * You should have received a copy of the GNU Affero General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20
21#pragma once
22
23/* Note: The structs and functions presented in this header file are intended
24 * to be used only by a_iface.c. */
25
26/* A structure to hold tha most basic information about a sigtran connection
27 * we use this struct internally here to pass connection data around */
28struct a_conn_info {
29 struct osmo_sccp_addr *msc_addr;
30 struct osmo_sccp_addr *bsc_addr;
31 uint32_t conn_id;
32 struct gsm_network *network;
33 struct a_reset_ctx *reset;
34};
35
36/* Receive incoming connection less data messages via sccp */
37void sccp_rx_udt(struct osmo_sccp_user *scu, const struct a_conn_info *a_conn_info, struct msgb *msg);
38
39/* Receive incoming connection oriented data messages via sccp */
40int sccp_rx_dt(struct osmo_sccp_user *scu, const struct a_conn_info *a_conn_info, struct msgb *msg);
41