\doxysection{m2ua\+\_\+types.\+h}
\label{m2ua__types_8h_source}\index{include/osmocom/sigtran/m2ua\_types.h@{include/osmocom/sigtran/m2ua\_types.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#ifndef m2ua\_types\_h}}
\DoxyCodeLine{2 \textcolor{preprocessor}{\#define m2ua\_types\_h}}
\DoxyCodeLine{3 }
\DoxyCodeLine{8 \textcolor{preprocessor}{\#include <stdint.h>}}
\DoxyCodeLine{9 }
\DoxyCodeLine{10 \textcolor{preprocessor}{\#define M2UA\_VERSION    1}}
\DoxyCodeLine{11 \textcolor{preprocessor}{\#define M2UA\_SPARE      0}}
\DoxyCodeLine{12 }
\DoxyCodeLine{13 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{14         M2UA\_CLS\_MGMT,             \textcolor{comment}{/* Management (MGMT) Message [IUA/M2UA/M3UA/SUA] */}}
\DoxyCodeLine{15         M2UA\_CLS\_TRANS,           \textcolor{comment}{/* Transfer Messages [M3UA] */}}
\DoxyCodeLine{16         M2UA\_CLS\_SSNM,             \textcolor{comment}{/* SS7 Signalling Network Management (SSNM) Messages [M3UA/SUA] */}}
\DoxyCodeLine{17         M2UA\_CLS\_ASPSM,           \textcolor{comment}{/* ASP State Maintenance (ASPSM) Messages [IUA/M2UA/M3UA/SUA] */}}
\DoxyCodeLine{18         M2UA\_CLS\_ASPTM,           \textcolor{comment}{/* ASP Traffic Maintenance (ASPTM) Messages [IUA/M2UA/M3UA/SUA] */}}
\DoxyCodeLine{19         M2UA\_CLS\_QPTM,             \textcolor{comment}{/* Q.921/Q.931 Boundary Primitives Transport (QPTM) */}}
\DoxyCodeLine{20         M2UA\_CLS\_MAUP,             \textcolor{comment}{/* MTP2 User Adaptation (MAUP) Messages [M2UA] */}}
\DoxyCodeLine{21         M2UA\_CLS\_SUA\_LESS,     \textcolor{comment}{/* Connectionless Messages [SUA] */}}
\DoxyCodeLine{22         M2UA\_CLS\_SUA\_CONN,     \textcolor{comment}{/* Connection-\/Oriented Messages [SUA] */}}
\DoxyCodeLine{23         M2UA\_CLS\_RKM,               \textcolor{comment}{/* Routing Key Management (RKM) Messages (M3UA) */}}
\DoxyCodeLine{24         M2UA\_CLS\_IIM,               \textcolor{comment}{/* Interface Identifier Management (IIM) Messages (M2UA) */}}
\DoxyCodeLine{25 \};}
\DoxyCodeLine{26 }
\DoxyCodeLine{30 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{31         M2UA\_MAUP\_RESERVED,   \textcolor{comment}{/* Reserved */}}
\DoxyCodeLine{32         M2UA\_MAUP\_DATA,           \textcolor{comment}{/* Data */}}
\DoxyCodeLine{33         M2UA\_MAUP\_EST\_REQ,     \textcolor{comment}{/* Establish Request */}}
\DoxyCodeLine{34         M2UA\_MAUP\_EST\_CON,     \textcolor{comment}{/* Establish Confirm */}}
\DoxyCodeLine{35         M2UA\_MAUP\_REL\_REQ,     \textcolor{comment}{/* Release Request */}}
\DoxyCodeLine{36         M2UA\_MAUP\_REL\_CON,     \textcolor{comment}{/* Release Confirm */}}
\DoxyCodeLine{37         M2UA\_MAUP\_REL\_IND,     \textcolor{comment}{/* Release Indication */}}
\DoxyCodeLine{38         M2UA\_MAUP\_STATE\_REQ, \textcolor{comment}{/* State Request */}}
\DoxyCodeLine{39         M2UA\_MAUP\_STATE\_CON, \textcolor{comment}{/* State Confirm */}}
\DoxyCodeLine{40         M2UA\_MAUP\_STATE\_IND, \textcolor{comment}{/* State Indication */}}
\DoxyCodeLine{41         M2UA\_MAUP\_RETR\_REQ,   \textcolor{comment}{/* Data Retrieval Request */}}
\DoxyCodeLine{42         M2UA\_MAUP\_D\_RETR\_CON,       \textcolor{comment}{/* Data Retrieval Confirm */}}
\DoxyCodeLine{43         M2UA\_MAUP\_D\_RETR\_IND,       \textcolor{comment}{/* Data Retrieval Indication */}}
\DoxyCodeLine{44         M2UA\_MAUP\_D\_RETR\_COMPL,   \textcolor{comment}{/* Data Retrieval Complete Indication */}}
\DoxyCodeLine{45         M2UA\_MAUP\_CONG\_IND,   \textcolor{comment}{/* Congestion Indication */}}
\DoxyCodeLine{46         M2UA\_MAUP\_DATA\_ACK,   \textcolor{comment}{/* Data Acknowledge */}}
\DoxyCodeLine{47 \};}
\DoxyCodeLine{48 }
\DoxyCodeLine{52 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{53         M2UA\_ASPSM\_RESERVED, \textcolor{comment}{/* Reserved */}}
\DoxyCodeLine{54         M2UA\_ASPSM\_UP,             \textcolor{comment}{/* ASP Up (UP) */}}
\DoxyCodeLine{55         M2UA\_ASPSM\_DOWN, \textcolor{comment}{/* ASP Down (DOWN) */}}
\DoxyCodeLine{56         M2UA\_ASPSM\_BEAT, \textcolor{comment}{/* Heartbeat (BEAT) */}}
\DoxyCodeLine{57         M2UA\_ASPSM\_UP\_ACK,     \textcolor{comment}{/* ASP Up Ack (UP ACK) */}}
\DoxyCodeLine{58         M2UA\_ASPSM\_DOWN\_ACK, \textcolor{comment}{/* ASP Down Ack (DOWN ACK) */}}
\DoxyCodeLine{59         M2UA\_ASPSM\_BEAT\_ACK, \textcolor{comment}{/* Heartbeat Ack (BEAT ACK) */}}
\DoxyCodeLine{60 \};}
\DoxyCodeLine{61 }
\DoxyCodeLine{65 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{66         M2UA\_ASPTM\_RESERVED, \textcolor{comment}{/* Reserved */}}
\DoxyCodeLine{67         M2UA\_ASPTM\_ACTIV,       \textcolor{comment}{/* ASP Active (ACTIVE) */}}
\DoxyCodeLine{68         M2UA\_ASPTM\_INACTIV,   \textcolor{comment}{/* ASP Inactive (INACTIVE) */}}
\DoxyCodeLine{69         M2UA\_ASPTM\_ACTIV\_ACK,       \textcolor{comment}{/* ASP Active Ack (ACTIVE ACK) */}}
\DoxyCodeLine{70         M2UA\_ASPTM\_INACTIV\_ACK,   \textcolor{comment}{/* ASP Inactive Ack (INACTIVE ACK) */}}
\DoxyCodeLine{71 \};}
\DoxyCodeLine{72 }
\DoxyCodeLine{76 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{77         M2UA\_MGMT\_ERROR, \textcolor{comment}{/* Error (ERR) */}}
\DoxyCodeLine{78         M2UA\_MGMT\_NTFY,           \textcolor{comment}{/* Notify (NTFY) */}}
\DoxyCodeLine{79 \};}
\DoxyCodeLine{80 }
\DoxyCodeLine{84 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{85         M2UA\_IIM\_RESERVED,     \textcolor{comment}{/* Reserved */}}
\DoxyCodeLine{86         M2UA\_IIM\_REG\_REQ,       \textcolor{comment}{/* Registration Request (REG REQ) */}}
\DoxyCodeLine{87         M2UA\_IIM\_REG\_RSP,       \textcolor{comment}{/* Registration Response (REG RSP) */}}
\DoxyCodeLine{88         M2UA\_IIM\_DEREG\_REQ,   \textcolor{comment}{/* Deregistration Request (DEREG REQ) */}}
\DoxyCodeLine{89         M2UA\_IIM\_DEREG\_RSP,   \textcolor{comment}{/* Deregistration Response (DEREG RSP) */}}
\DoxyCodeLine{90 \};}
\DoxyCodeLine{91 }
\DoxyCodeLine{95 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{96         \_\_m2ua\_tag\_start        = 767,}
\DoxyCodeLine{97 }
\DoxyCodeLine{98         M2UA\_TAG\_DATA,             \textcolor{comment}{/* Protocol Data 1 */}}
\DoxyCodeLine{99         M2UA\_TAG\_DATA\_TTC,     \textcolor{comment}{/* Protocol Data 2 (TTC) */}}
\DoxyCodeLine{100         M2UA\_TAG\_STATE\_REQ,   \textcolor{comment}{/* State Request */}}
\DoxyCodeLine{101         M2UA\_TAG\_STATE\_EVENT,       \textcolor{comment}{/* State Event */}}
\DoxyCodeLine{102         M2UA\_TAG\_CONG\_STATUS,       \textcolor{comment}{/* Congestion Status */}}
\DoxyCodeLine{103         M2UA\_TAG\_DISC\_STATUS,       \textcolor{comment}{/* Discard Status */}}
\DoxyCodeLine{104         M2UA\_TAG\_ACTION, \textcolor{comment}{/* Action */}}
\DoxyCodeLine{105         M2UA\_TAG\_SEQ\_NO, \textcolor{comment}{/* Sequence Number */}}
\DoxyCodeLine{106         M2UA\_TAG\_RETR\_RES,     \textcolor{comment}{/* Retrieval Result */}}
\DoxyCodeLine{107         M2UA\_TAG\_LNK\_KEY,       \textcolor{comment}{/* Link Key */}}
\DoxyCodeLine{108         M2UA\_TAG\_L\_LNK\_KEY\_ID,     \textcolor{comment}{/* Local-\/LK-\/Identifier */}}
\DoxyCodeLine{109         M2UA\_TAG\_SDT,               \textcolor{comment}{/* Signalling Data Terminal (SDT) Identifier */}}
\DoxyCodeLine{110         M2UA\_TAG\_SDL,               \textcolor{comment}{/* Signalling Data Link (SDL) Identifier */}}
\DoxyCodeLine{111         M2UA\_TAG\_REG\_RES,       \textcolor{comment}{/* Registration Result */}}
\DoxyCodeLine{112         M2UA\_TAG\_RES\_STATUS, \textcolor{comment}{/* Registration Status */}}
\DoxyCodeLine{113         M2UA\_TAG\_DEREG\_RES,   \textcolor{comment}{/* De-\/Registration Result */}}
\DoxyCodeLine{114         M2UA\_TAG\_DEREG\_STATUS,     \textcolor{comment}{/* De-\/Registration Status */}}
\DoxyCodeLine{115 \};}
\DoxyCodeLine{116 }
\DoxyCodeLine{120 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{121         M2UA\_STATUS\_LPO\_SET,         \textcolor{comment}{/* Request local processor outage */}}
\DoxyCodeLine{122         M2UA\_STATUS\_LPO\_CLEAR,             \textcolor{comment}{/* Request local processor outage recovered */}}
\DoxyCodeLine{123         M2UA\_STATUS\_EMER\_SET,               \textcolor{comment}{/* Request emergency alignment */}}
\DoxyCodeLine{124         M2UA\_STATUS\_EMER\_CLEAR,   \textcolor{comment}{/* Request normal alignment (cancel emergency) */}}
\DoxyCodeLine{125         M2UA\_STATUS\_FLUSH\_BUFFERS,     \textcolor{comment}{/* Flush or clear receive, transmit and retransmit queues */}}
\DoxyCodeLine{126         M2UA\_STATUS\_CONTINUE,               \textcolor{comment}{/* Continue or Resume */}}
\DoxyCodeLine{127         M2UA\_STATUS\_CLEAR\_RTB,             \textcolor{comment}{/* Clear the retransmit queue */}}
\DoxyCodeLine{128         M2UA\_STATUS\_AUDIT,             \textcolor{comment}{/* Audit state of link */}}
\DoxyCodeLine{129         M2UA\_STATUS\_CONG\_CLEAR,           \textcolor{comment}{/* Congestion cleared */}}
\DoxyCodeLine{130         M2UA\_STATUS\_CONG\_ACCEPT, \textcolor{comment}{/* Congestion accept */}}
\DoxyCodeLine{131         M2UA\_STATUS\_CONG\_DISCARD,       \textcolor{comment}{/* Congestion discard */}}
\DoxyCodeLine{132 \};}
\DoxyCodeLine{133 }
\DoxyCodeLine{137 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{138         \_\_m2ua\_event\_dummy,}
\DoxyCodeLine{139         M2UA\_EVENT\_RPO\_ENTER,               \textcolor{comment}{/* Remote entered processor outage */}}
\DoxyCodeLine{140         M2UA\_EVENT\_RPO\_EXIT,         \textcolor{comment}{/* Remote exited processor outage */}}
\DoxyCodeLine{141         M2UA\_EVENT\_LPO\_ENTER,               \textcolor{comment}{/* Link entered processor outage */}}
\DoxyCodeLine{142         M2UA\_EVENT\_LPO\_EXIT,         \textcolor{comment}{/* Link exited processor outage */}}
\DoxyCodeLine{143 \};}
\DoxyCodeLine{144 }
\DoxyCodeLine{148 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{149         M2UA\_LEVEL\_NONE,         \textcolor{comment}{/* No congestion */}}
\DoxyCodeLine{150         M2UA\_LEVEL\_1,                       \textcolor{comment}{/* Congestion Level 1 */}}
\DoxyCodeLine{151         M2UA\_LEVEL\_2,                       \textcolor{comment}{/* Congestion Level 2 */}}
\DoxyCodeLine{152         M2UA\_LEVEL\_3,                       \textcolor{comment}{/* Congestion Level 3 */}}
\DoxyCodeLine{153 \};}
\DoxyCodeLine{154 }
\DoxyCodeLine{158 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{159         M2UA\_ACTION\_RTRV\_BSN,               \textcolor{comment}{/* Retrieve the backward sequence number */}}
\DoxyCodeLine{160         M2UA\_ACTION\_RTRV\_MSGS,             \textcolor{comment}{/* Retrieve the PDUs from the transmit and retransmit queues. */}}
\DoxyCodeLine{161 \};}
\DoxyCodeLine{162 }
\DoxyCodeLine{166 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{167         M2UA\_RESULT\_SUCCESS,         \textcolor{comment}{/* Action successful */}}
\DoxyCodeLine{168         M2UA\_RESULT\_FAILURE,         \textcolor{comment}{/* Action failed */}}
\DoxyCodeLine{169 \};}
\DoxyCodeLine{170 }
\DoxyCodeLine{174 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{175         M2UA\_TRA\_OVERRIDE      = 1,    \textcolor{comment}{/* Override */}}
\DoxyCodeLine{176         M2UA\_TRA\_LOAD\_SHARE  = 2,    \textcolor{comment}{/* Load-\/share */}}
\DoxyCodeLine{177         M2UA\_TRA\_BROADCAST    = 3,    \textcolor{comment}{/* Broadcast */}}
\DoxyCodeLine{178 \};}
\DoxyCodeLine{179 }
\DoxyCodeLine{183 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{184         \_\_m2ua\_err\_unused,}
\DoxyCodeLine{185         M2UA\_ERR\_INV\_VER,               \textcolor{comment}{/* Invalid Version */}}
\DoxyCodeLine{186         M2UA\_ERR\_INV\_INT\_IDENT,           \textcolor{comment}{/* Invalid Interface Identifier */}}
\DoxyCodeLine{187         M2UA\_ERR\_UNS\_MSG\_CLASS,           \textcolor{comment}{/* Unsupported Message Class */}}
\DoxyCodeLine{188         M2UA\_ERR\_UNS\_MSG\_TYPE,             \textcolor{comment}{/* Unsupported Message Type */}}
\DoxyCodeLine{189         M2UA\_ERR\_UNS\_TRA\_MODE,             \textcolor{comment}{/* Unsupported Traffic Handling Mode */}}
\DoxyCodeLine{190         M2UA\_ERR\_UNE\_MSG,               \textcolor{comment}{/* Unexpected Message */}}
\DoxyCodeLine{191         M2UA\_ERR\_PROTO\_ERROR,               \textcolor{comment}{/* Protocol Error */}}
\DoxyCodeLine{192         M2UA\_ERR\_UNS\_INT\_IDENT\_T,       \textcolor{comment}{/* Unsupported Interface Identifier Type */}}
\DoxyCodeLine{193         M2UA\_ERR\_INV\_STR\_IDENT,           \textcolor{comment}{/* Invalid Stream Identifier */}}
\DoxyCodeLine{194         M2UA\_ERR\_UNUSED1,               \textcolor{comment}{/* Unused in M2UA */}}
\DoxyCodeLine{195         M2UA\_ERR\_UNUSED2,               \textcolor{comment}{/* Unused in M2UA */}}
\DoxyCodeLine{196         M2UA\_ERR\_UNUSED3,               \textcolor{comment}{/* Unused in M2UA */}}
\DoxyCodeLine{197         M2UA\_ERR\_REFUSED,               \textcolor{comment}{/* Refused -\/ Management Blocking */}}
\DoxyCodeLine{198         M2UA\_ERR\_ASP\_IDENT\_REQ,           \textcolor{comment}{/* ASP Identifier Required */}}
\DoxyCodeLine{199         M2UA\_ERR\_INV\_ASP\_IDENT,           \textcolor{comment}{/* Invalid ASP Identifier */}}
\DoxyCodeLine{200         M2UA\_ERR\_ASP\_ACT\_FOR\_IDENT,   \textcolor{comment}{/* ASP Active for Interface Identifier(s) */}}
\DoxyCodeLine{201         M2UA\_ERR\_INV\_PARAM\_VAL,           \textcolor{comment}{/* Invalid Parameter Value */}}
\DoxyCodeLine{202         M2UA\_ERR\_PARAM\_FIELD\_ERR,       \textcolor{comment}{/* Parameter Field Error */}}
\DoxyCodeLine{203         M2UA\_ERR\_UNEXP\_PARAM,               \textcolor{comment}{/* Unexpected Parameter */}}
\DoxyCodeLine{204         M2UA\_ERR\_UNUSED4,               \textcolor{comment}{/* Unused in M2UA */}}
\DoxyCodeLine{205         M2UA\_ERR\_UNUSED5,               \textcolor{comment}{/* Unused in M2UA */}}
\DoxyCodeLine{206         M2UA\_ERR\_MISSING\_PARAM,           \textcolor{comment}{/* Missing Parameter */}}
\DoxyCodeLine{207 \};}
\DoxyCodeLine{208 }
\DoxyCodeLine{212 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{213         M2UA\_STP\_AS\_STATE\_CHG      = 1,    \textcolor{comment}{/* Application Server state change (AS\_State\_Change) */}}
\DoxyCodeLine{214         M2UA\_STP\_OTHER            = 2,    \textcolor{comment}{/* Other */}}
\DoxyCodeLine{215 \};}
\DoxyCodeLine{216 }
\DoxyCodeLine{217 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{218         \textcolor{comment}{/* this is for M2UA\_STP\_AS\_STATE\_CHG */}}
\DoxyCodeLine{219         M2UA\_STP\_AS\_INACTIVE                = 2,    \textcolor{comment}{/* Application Server Inactive (AS\_Inactive) */}}
\DoxyCodeLine{220         M2UA\_STP\_AS\_ACTIVE            = 3,    \textcolor{comment}{/* Application Server Active (AS\_Active) */}}
\DoxyCodeLine{221         M2UA\_STP\_AS\_PENDING          = 4,    \textcolor{comment}{/* Application Server Pending (AS\_Pending) */}}
\DoxyCodeLine{222 }
\DoxyCodeLine{223         \textcolor{comment}{/* this is for the other */}}
\DoxyCodeLine{224         M2UA\_STP\_O\_INSUFF\_ASP\_RES      = 1,    \textcolor{comment}{/* Insufficient ASP resources active in AS */}}
\DoxyCodeLine{225         M2UA\_STP\_O\_ALT\_ASP\_ACTIVR      = 2,    \textcolor{comment}{/* Alternate ASP Active */}}
\DoxyCodeLine{226         M2UA\_STP\_O\_ASP\_FAILURE            = 3,    \textcolor{comment}{/* ASP Failure */}}
\DoxyCodeLine{227 \};}
\DoxyCodeLine{228 }
\DoxyCodeLine{232 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{233         M2UA\_REG\_SUCC,                             \textcolor{comment}{/* Successfully Registered */}}
\DoxyCodeLine{234         M2UA\_REG\_ERR\_UNK,                       \textcolor{comment}{/* Error -\/ Unknown */}}
\DoxyCodeLine{235         M2UA\_REG\_ERR\_INV\_SDLI,                     \textcolor{comment}{/* Error -\/ Invalid SDLI */}}
\DoxyCodeLine{236         M2UA\_REG\_ERR\_INV\_SDTI,                     \textcolor{comment}{/* Error -\/ Invalid SDTI */}}
\DoxyCodeLine{237         M2UA\_REG\_ERR\_INV\_LNK\_KEY,               \textcolor{comment}{/* Error -\/ Invalid Link Key */}}
\DoxyCodeLine{238         M2UA\_REG\_ERR\_PERM\_DENIED,               \textcolor{comment}{/* Error -\/ Permission Denied */}}
\DoxyCodeLine{239         M2UA\_REG\_ERR\_OVERLAP\_KEY,               \textcolor{comment}{/* Error -\/ Overlapping (Non-\/unique) Link Key */}}
\DoxyCodeLine{240         M2UA\_REG\_ERR\_LNK\_KEY\_NOT\_PROV,             \textcolor{comment}{/* Error -\/ Link Key not Provisioned */}}
\DoxyCodeLine{241         M2UA\_REG\_ERR\_INSUFF\_RES,         \textcolor{comment}{/* Error -\/ Insufficient Resources */}}
\DoxyCodeLine{242 \};}
\DoxyCodeLine{243 }
\DoxyCodeLine{247 \textcolor{keyword}{enum} \{}
\DoxyCodeLine{248         M2UA\_DEREG\_SUCC,                 \textcolor{comment}{/* Successfully De-\/registered */}}
\DoxyCodeLine{249         M2UA\_DEREG\_ERR\_UNK,                   \textcolor{comment}{/* Error -\/ Unknown */}}
\DoxyCodeLine{250         M2UA\_DEREG\_ERR\_INV\_IDENT,               \textcolor{comment}{/* Error -\/ Invalid Interface Identifier */}}
\DoxyCodeLine{251         M2UA\_DEREG\_ERR\_PERM\_DENIED,           \textcolor{comment}{/* Error -\/ Permission Denied */}}
\DoxyCodeLine{252         M2UA\_DEREG\_ERR\_NOT\_REG,                   \textcolor{comment}{/* Error -\/ Not Registered */}}
\DoxyCodeLine{253 \};}
\DoxyCodeLine{254 }
\DoxyCodeLine{255 \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
