aboutsummaryrefslogtreecommitdiffstats
path: root/include/sctp_m3ua.h
blob: f59b5deeb7528016ea1f6caa4c7911f6dca7935e (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
/*
 * 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;
};

struct mtp_m3ua_client_link *mtp_m3ua_client_link_init(struct mtp_link *link);