aboutsummaryrefslogtreecommitdiffstats
path: root/sigtran/sua_test_common.h
blob: 0fb62f55d10ae6f1917b1b4282e27bc5fe278f67 (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
#pragma once 

#include <stdint.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#include <osmocom/core/select.h>
#include <osmocom/core/prim.h>
#include <osmocom/core/talloc.h>
#include <osmocom/core/logging.h>
#include <osmocom/vty/logging.h>

#include "sua.h"
#include "sccp_sap.h"


enum log_cat {
	DMAIN,
	DSUA,
	DXUA,
};

extern const struct log_info test_log_info;

int tx_unitdata(struct osmo_sua_link *link);
int tx_conn_req(struct osmo_sua_link *link, uint32_t conn_id);

struct osmo_prim_hdr *make_conn_req(uint32_t conn_id);
struct osmo_prim_hdr *make_dt1_req(uint32_t conn_id, const uint8_t *data, unsigned int len);