aboutsummaryrefslogtreecommitdiffstats
path: root/include/sctp_m3ua.h
blob: 0cc405f349c566d1b33c51b223811705253449a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * Represet M3UA client (and later server) links
 */
#pragma once

#include "mtp_data.h"

#include <osmocom/core/write_queue.h>

#include <netinet/in.h>

struct mtp_m3ua_client_link {
	struct mtp_link *base;

	struct osmo_wqueue queue;
	struct osmo_timer_list connect_timer;

	char *source;
	struct sockaddr_in local;

	char *dest;
	struct sockaddr_in remote;
	int link_index;
	int routing_context;


	/* state of the link */
	int aspsm_active;
	int asptm_active;
};

struct mtp_m3ua_client_link *mtp_m3ua_client_link_init(struct mtp_link *link);