libosmo-sigtran 2.0.0.50-b59d
Osmocom SIGTRAN library
sigtran_sap.h
Go to the documentation of this file.
1#pragma once
2#include <osmocom/core/prim.h>
4
5
7 SCCP_SAP_USER = _SAP_SS7_BASE,
8 /* xUA Layer Manager */
11};
12
29 /* optional as per spec, not implemented yet */
32};
33
34#define NOTIFY_PAR_P_ASP_ID (1 << 0)
35#define NOTIFY_PAR_P_ROUTE_CTX (1 << 1)
36
38 uint32_t presence;
39 uint16_t status_type;
40 uint16_t status_info;
41 uint32_t asp_id;
42 uint32_t route_ctx;
44};
45
47 uint32_t code;
48};
49
51 /* routing key */
54
55 /* Status: Confirm only */
56 uint32_t status;
57};
58
60 uint32_t route_ctx;
61
62 /* Status: Confirm only */
63 uint32_t status;
64};
65
67 struct osmo_prim_hdr oph;
68 union {
73 } u;
74};
75
76#define msgb_xlm_prim(msg) ((struct osmo_xlm_prim *)(msg)->l1h)
77
78char *osmo_xlm_prim_name(struct osmo_prim_hdr *oph);
79
80/* XUA LM-SAP towards stack */
81int osmo_xlm_sap_down(struct osmo_ss7_asp *asp, struct osmo_prim_hdr *oph);
osmo_ss7_as_traffic_mode
Definition: osmo_ss7.h:175
int osmo_xlm_sap_down(struct osmo_ss7_asp *asp, struct osmo_prim_hdr *oph)
Definition: xua_rkm.c:569
osmo_xlm_prim_type
Definition: sigtran_sap.h:13
@ OSMO_XLM_PRIM_M_ASP_STATUS
Definition: sigtran_sap.h:18
@ OSMO_XLM_PRIM_M_AS_ACTIVE
Definition: sigtran_sap.h:26
@ OSMO_XLM_PRIM_M_ASP_DOWN
Definition: sigtran_sap.h:23
@ OSMO_XLM_PRIM_M_SCTP_RELEASE
Definition: sigtran_sap.h:15
@ OSMO_XLM_PRIM_M_ASP_ACTIVE
Definition: sigtran_sap.h:24
@ OSMO_XLM_PRIM_M_RK_DEREG
Definition: sigtran_sap.h:31
@ OSMO_XLM_PRIM_M_ASP_INACTIVE
Definition: sigtran_sap.h:25
@ OSMO_XLM_PRIM_M_SCTP_RESTART
Definition: sigtran_sap.h:16
@ OSMO_XLM_PRIM_M_ERROR
Definition: sigtran_sap.h:21
@ OSMO_XLM_PRIM_M_SCTP_ESTABLISH
Definition: sigtran_sap.h:14
@ OSMO_XLM_PRIM_M_SCTP_STATUS
Definition: sigtran_sap.h:17
@ OSMO_XLM_PRIM_M_RK_REG
Definition: sigtran_sap.h:30
@ OSMO_XLM_PRIM_M_AS_DOWN
Definition: sigtran_sap.h:28
@ OSMO_XLM_PRIM_M_ASP_UP
Definition: sigtran_sap.h:22
@ OSMO_XLM_PRIM_M_NOTIFY
Definition: sigtran_sap.h:20
@ OSMO_XLM_PRIM_M_AS_STATUS
Definition: sigtran_sap.h:19
@ OSMO_XLM_PRIM_M_AS_INACTIVE
Definition: sigtran_sap.h:27
osmo_sigtran_sap
Definition: sigtran_sap.h:6
@ XUA_SAP_LM
Definition: sigtran_sap.h:9
@ MTP_SAP_USER
Definition: sigtran_sap.h:10
@ SCCP_SAP_USER
Definition: sigtran_sap.h:7
char * osmo_xlm_prim_name(struct osmo_prim_hdr *oph)
Definition: sccp_sap.c:96
Definition: ss7_asp.h:28
Definition: osmo_ss7.h:138
Definition: sigtran_sap.h:46
uint32_t code
Definition: sigtran_sap.h:47
Definition: sigtran_sap.h:37
uint32_t asp_id
Definition: sigtran_sap.h:41
uint16_t status_info
Definition: sigtran_sap.h:40
char * info_string
Definition: sigtran_sap.h:43
uint32_t route_ctx
Definition: sigtran_sap.h:42
uint16_t status_type
Definition: sigtran_sap.h:39
uint32_t presence
Definition: sigtran_sap.h:38
Definition: sigtran_sap.h:59
uint32_t route_ctx
Definition: sigtran_sap.h:60
uint32_t status
Definition: sigtran_sap.h:63
Definition: sigtran_sap.h:50
uint32_t status
Definition: sigtran_sap.h:56
struct osmo_ss7_routing_key key
Definition: sigtran_sap.h:52
enum osmo_ss7_as_traffic_mode traf_mode
Definition: sigtran_sap.h:53
Definition: sigtran_sap.h:66
union osmo_xlm_prim::@21 u
struct osmo_xlm_prim_notify notify
Definition: sigtran_sap.h:69
struct osmo_xlm_prim_rk_dereg rk_dereg
Definition: sigtran_sap.h:72
struct osmo_prim_hdr oph
Definition: sigtran_sap.h:67
struct osmo_xlm_prim_rk_reg rk_reg
Definition: sigtran_sap.h:71
struct osmo_xlm_prim_error error
Definition: sigtran_sap.h:70