libosmo-sigtran  1.9.0.4-dc82
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;
43  char *info_string;
44 };
45 
47  uint32_t code;
48 };
49 
51  /* routing key */
53  enum osmo_ss7_as_traffic_mode traf_mode;
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 
66 struct osmo_xlm_prim {
67  struct osmo_prim_hdr oph;
68  union {
69  struct osmo_xlm_prim_notify notify;
70  struct osmo_xlm_prim_error error;
71  struct osmo_xlm_prim_rk_reg rk_reg;
72  struct osmo_xlm_prim_rk_dereg rk_dereg;
73  } u;
74 };
75 
76 #define msgb_xlm_prim(msg) ((struct osmo_xlm_prim *)(msg)->l1h)
77 
78 char *osmo_xlm_prim_name(struct osmo_prim_hdr *oph);
79 
80 /* XUA LM-SAP towards stack */
81 int osmo_xlm_sap_down(struct osmo_ss7_asp *asp, struct osmo_prim_hdr *oph);
Definition: sigtran_sap.h:25
Definition: sigtran_sap.h:18
Definition: sigtran_sap.h:27
Definition: sigtran_sap.h:22
Definition: sigtran_sap.h:21
uint16_t status_type
Definition: sigtran_sap.h:39
Definition: sigtran_sap.h:19
uint32_t asp_id
Definition: sigtran_sap.h:41
Definition: sigtran_sap.h:7
Definition: sigtran_sap.h:46
Definition: sigtran_sap.h:31
uint32_t route_ctx
Definition: sigtran_sap.h:60
Definition: sigtran_sap.h:66
Definition: osmo_ss7.h:251
uint32_t presence
Definition: sigtran_sap.h:38
osmo_sigtran_sap
Definition: sigtran_sap.h:6
Definition: sigtran_sap.h:10
Definition: sigtran_sap.h:15
char * osmo_xlm_prim_name(struct osmo_prim_hdr *oph)
Definition: sccp_sap.c:96
char * info_string
Definition: sigtran_sap.h:43
Definition: sigtran_sap.h:14
Definition: sigtran_sap.h:37
osmo_xlm_prim_type
Definition: sigtran_sap.h:13
Definition: sigtran_sap.h:16
Definition: sigtran_sap.h:26
Definition: sigtran_sap.h:9
Definition: sigtran_sap.h:28
osmo_ss7_as_traffic_mode
Definition: osmo_ss7.h:261
int osmo_xlm_sap_down(struct osmo_ss7_asp *asp, struct osmo_prim_hdr *oph)
Definition: xua_rkm.c:560
Definition: sigtran_sap.h:30
Definition: osmo_ss7.h:390
Definition: sigtran_sap.h:20
Definition: sigtran_sap.h:17
uint32_t route_ctx
Definition: sigtran_sap.h:42
uint32_t status
Definition: sigtran_sap.h:56
Definition: sigtran_sap.h:50
uint32_t code
Definition: sigtran_sap.h:47
Definition: sigtran_sap.h:23
Definition: sigtran_sap.h:24
Definition: sigtran_sap.h:59
uint32_t status
Definition: sigtran_sap.h:63
uint16_t status_info
Definition: sigtran_sap.h:40