Osmocom Primitives are a method to express inter-layer primitives as used often in ITU/ETSI/3GPP specifications in a generic way.
More...
Osmocom Primitives are a method to express inter-layer primitives as used often in ITU/ETSI/3GPP specifications in a generic way.
(C) 2015-2017 by Harald Welte lafor.nosp@m.ge@g.nosp@m.numon.nosp@m.ks.o.nosp@m.rg All Rights Reserved
They are based on Message buffers and encapsulate any (optional) user payload data with a primitive header. The header contains information on
- which SAP this primitive is used on
- what is the name of the primitive
- is it REQUEST, RESPONSE, INDICATION or CONFIRMATION
For more information on the inter-layer primitives concept, see ITU-T X.21@ as found at https://www.itu.int/rec/T-REC-X.212-199511-I/en
SPDX-License-Identifier: GPL-2.0+
◆ _SAP_GSM_BASE
◆ _SAP_GSM_SHIFT
| #define _SAP_GSM_SHIFT 24 |
◆ _SAP_SS7_BASE
◆ _SAP_TETRA_BASE
◆ OSMO_NO_EVENT
| #define OSMO_NO_EVENT 0xFFFFFFFF |
◆ OSMO_PRIM
| #define OSMO_PRIM |
( |
|
prim, |
|
|
|
op |
|
) |
| ((prim << 8) | (op & 0xFF)) |
◆ OSMO_PRIM_HDR
| #define OSMO_PRIM_HDR |
( |
|
oph | ) |
OSMO_PRIM((oph)->primitive, (oph)->operation) |
◆ osmo_prim_cb
| typedef int(* osmo_prim_cb) (struct osmo_prim_hdr *oph, void *ctx) |
primitive handler callback type
◆ osmo_prim_operation
primitive operation
| Enumerator |
|---|
| PRIM_OP_REQUEST | request
|
| PRIM_OP_RESPONSE | response
|
| PRIM_OP_INDICATION | indication
|
| PRIM_OP_CONFIRM | confirm
|
◆ osmo_event_for_prim()
◆ osmo_prim_init()
◆ osmo_prim_op_names [1/2]
The upper 8 byte of the technology, the lower 24 bits for the SAP.
The upper 8 byte of the technology, the lower 24 bits for the SAP.
◆ osmo_prim_op_names [2/2]
Initial value:= {
{ 0, NULL }
}
@ PRIM_OP_INDICATION
indication
Definition: prim.h:29
@ PRIM_OP_CONFIRM
confirm
Definition: prim.h:30
@ PRIM_OP_REQUEST
request
Definition: prim.h:27
@ PRIM_OP_RESPONSE
response
Definition: prim.h:28
human-readable string mapping for osmo_prim_operation
The upper 8 byte of the technology, the lower 24 bits for the SAP.