libosmo-sigtran 2.1.0.187-fd10
Osmocom SIGTRAN library
mtp_sap.h File Reference
#include <stdint.h>
#include <osmocom/core/prim.h>
#include <osmocom/sigtran/sigtran_sap.h>

Go to the source code of this file.

Data Structures

struct  osmo_mtp_transfer_param
 
struct  osmo_mtp_pause_param
 
struct  osmo_mtp_resume_param
 
struct  osmo_mtp_status_param
 
struct  osmo_mtp_prim
 

Macros

#define MTP_SIO(service, net_ind)   ((((net_ind) & 0x3) << 6) | ((service) & 0xF))
 
#define msgb_mtp_prim(msg)   ((struct osmo_mtp_prim *)(msg)->l1h)
 

Enumerations

enum  osmo_mtp_prim_type { OSMO_MTP_PRIM_TRANSFER , OSMO_MTP_PRIM_PAUSE , OSMO_MTP_PRIM_RESUME , OSMO_MTP_PRIM_STATUS }
 

Functions

static const char * osmo_mtp_prim_type_name (enum osmo_mtp_prim_type val)
 
char * osmo_mtp_prim_name (const struct osmo_prim_hdr *oph)
 
struct osmo_mtp_primosmo_mtp_prim_xfer_req_prepend (const struct osmo_mtp_transfer_param *param, struct msgb *msg)
 Wrap MTP payload into an MTP-TRANSFER.req primitive. More...
 

Variables

const struct value_string osmo_mtp_prim_type_names []
 

Macro Definition Documentation

◆ msgb_mtp_prim

#define msgb_mtp_prim (   msg)    ((struct osmo_mtp_prim *)(msg)->l1h)

◆ MTP_SIO

#define MTP_SIO (   service,
  net_ind 
)    ((((net_ind) & 0x3) << 6) | ((service) & 0xF))

Enumeration Type Documentation

◆ osmo_mtp_prim_type

Enumerator
OSMO_MTP_PRIM_TRANSFER 
OSMO_MTP_PRIM_PAUSE 
OSMO_MTP_PRIM_RESUME 
OSMO_MTP_PRIM_STATUS 

Function Documentation

◆ osmo_mtp_prim_name()

char * osmo_mtp_prim_name ( const struct osmo_prim_hdr *  oph)

◆ osmo_mtp_prim_type_name()

static const char * osmo_mtp_prim_type_name ( enum osmo_mtp_prim_type  val)
inlinestatic

◆ osmo_mtp_prim_xfer_req_prepend()

struct osmo_mtp_prim * osmo_mtp_prim_xfer_req_prepend ( const struct osmo_mtp_transfer_param param,
struct msgb *  msg 
)

Wrap MTP payload into an MTP-TRANSFER.req primitive.

Parameters
[in]paramMTP-TRANSFER.req params to copy to the primitive (Optional, can be NULL)
[in]msgmsgb containing MTP payload and where primitive will be prepended
Returns
return MTP-TRANSFER.req prepended to msgb

References MTP_SAP_USER, osmo_mtp_prim::oph, OSMO_MTP_PRIM_TRANSFER, osmo_mtp_prim::transfer, and osmo_mtp_prim::u.

Referenced by sua2sccp_tx_m3ua().

Variable Documentation

◆ osmo_mtp_prim_type_names

const struct value_string osmo_mtp_prim_type_names[]
extern

Referenced by osmo_mtp_prim_type_name().