<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\doxysection{src/ss7\+\_\+hmrt.c File Reference}
\label{ss7__hmrt_8c}\index{src/ss7\_hmrt.c@{src/ss7\_hmrt.c}}
{\ttfamily \#include $&lt;$stdbool.\+h$&gt;$}\newline
{\ttfamily \#include $&lt;$string.\+h$&gt;$}\newline
{\ttfamily \#include $&lt;$errno.\+h$&gt;$}\newline
{\ttfamily \#include $&lt;$arpa/inet.\+h$&gt;$}\newline
{\ttfamily \#include $&lt;$osmocom/core/linuxlist.\+h$&gt;$}\newline
{\ttfamily \#include $&lt;$osmocom/core/logging.\+h$&gt;$}\newline
{\ttfamily \#include $&lt;$osmocom/sigtran/mtp\+\_\+sap.\+h$&gt;$}\newline
{\ttfamily \#include $&lt;$osmocom/sigtran/osmo\+\_\+ss7.\+h$&gt;$}\newline
{\ttfamily \#include $&lt;$osmocom/sigtran/protocol/m3ua.\+h$&gt;$}\newline
{\ttfamily \#include \char`\"{}xua\+\_\+internal.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}ss7\+\_\+as.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}ss7\+\_\+asp.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}ss7\+\_\+linkset.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}ss7\+\_\+route.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}ss7\+\_\+route\+\_\+table.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}ss7\+\_\+internal.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}ss7\+\_\+user.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ osmo\+\_\+mtp\+\_\+prim} $\ast$ \textbf{ m3ua\+\_\+to\+\_\+xfer\+\_\+ind} (struct \textbf{ xua\+\_\+msg} $\ast$xua)
\item 
static struct \textbf{ xua\+\_\+msg} $\ast$ \textbf{ mtp\+\_\+prim\+\_\+to\+\_\+m3ua} (struct \textbf{ osmo\+\_\+mtp\+\_\+prim} $\ast$prim)
\item 
static int \textbf{ deliver\+\_\+to\+\_\+mtp\+\_\+user} (const struct \textbf{ osmo\+\_\+ss7\+\_\+user} $\ast$osu, struct \textbf{ xua\+\_\+msg} $\ast$xua)
\item 
static int \textbf{ hmdt\+\_\+message\+\_\+for\+\_\+distribution} (struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$inst, struct \textbf{ xua\+\_\+msg} $\ast$xua)
\item 
static int \textbf{ hmrt\+\_\+message\+\_\+for\+\_\+routing} (struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$inst, struct \textbf{ xua\+\_\+msg} $\ast$xua)
\item 
int \textbf{ m3ua\+\_\+hmdc\+\_\+rx\+\_\+from\+\_\+l2} (struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$inst, struct \textbf{ xua\+\_\+msg} $\ast$xua)
\item 
int \textbf{ osmo\+\_\+ss7\+\_\+user\+\_\+mtp\+\_\+xfer\+\_\+req} (struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$inst, struct \textbf{ osmo\+\_\+mtp\+\_\+prim} $\ast$omp)
\end{DoxyCompactItemize}


\doxysubsection{Function Documentation}
\mbox{\label{ss7__hmrt_8c_ab0f4b1309a8a2006635950c46ddd3b06}} 
\index{ss7\_hmrt.c@{ss7\_hmrt.c}!deliver\_to\_mtp\_user@{deliver\_to\_mtp\_user}}
\index{deliver\_to\_mtp\_user@{deliver\_to\_mtp\_user}!ss7\_hmrt.c@{ss7\_hmrt.c}}
\doxysubsubsection{deliver\_to\_mtp\_user()}
{\footnotesize\ttfamily static int deliver\+\_\+to\+\_\+mtp\+\_\+user (\begin{DoxyParamCaption}\item[{const struct \textbf{ osmo\+\_\+ss7\+\_\+user} $\ast$}]{osu,  }\item[{struct \textbf{ xua\+\_\+msg} $\ast$}]{xua }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



References \textbf{ m3ua\+\_\+to\+\_\+xfer\+\_\+ind()}, \textbf{ xua\+\_\+msg\+::mtp}, \textbf{ osmo\+\_\+mtp\+\_\+prim\+::oph}, \textbf{ osmo\+\_\+ss7\+\_\+user\+::prim\+\_\+cb}, \textbf{ osmo\+\_\+ss7\+\_\+user\+::priv}, \textbf{ osmo\+\_\+mtp\+\_\+prim\+::transfer}, \textbf{ osmo\+\_\+mtp\+\_\+prim\+::u}, and \textbf{ xua\+\_\+msg\+\_\+free()}.



Referenced by \textbf{ hmdt\+\_\+message\+\_\+for\+\_\+distribution()}.

\mbox{\label{ss7__hmrt_8c_a3c2df3b0f156f7bd46317990d8136d97}} 
\index{ss7\_hmrt.c@{ss7\_hmrt.c}!hmdt\_message\_for\_distribution@{hmdt\_message\_for\_distribution}}
\index{hmdt\_message\_for\_distribution@{hmdt\_message\_for\_distribution}!ss7\_hmrt.c@{ss7\_hmrt.c}}
\doxysubsubsection{hmdt\_message\_for\_distribution()}
{\footnotesize\ttfamily static int hmdt\+\_\+message\+\_\+for\+\_\+distribution (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$}]{inst,  }\item[{struct \textbf{ xua\+\_\+msg} $\ast$}]{xua }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



References \textbf{ data\+\_\+hdr\+\_\+from\+\_\+m3ua()}, \textbf{ deliver\+\_\+to\+\_\+mtp\+\_\+user()}, \textbf{ xua\+\_\+msg\+::hdr}, \textbf{ osmo\+\_\+ss7\+\_\+user\+::inst}, \textbf{ LOGSS7}, \textbf{ M3\+UA\+\_\+\+MSGC\+\_\+\+SNM}, \textbf{ M3\+UA\+\_\+\+MSGC\+\_\+\+XFER}, \textbf{ M3\+UA\+\_\+\+XFER\+\_\+\+DATA}, \textbf{ xua\+\_\+common\+\_\+hdr\+::msg\+\_\+class}, \textbf{ xua\+\_\+common\+\_\+hdr\+::msg\+\_\+type}, \textbf{ m3ua\+\_\+data\+\_\+hdr\+::si}, \textbf{ osmo\+\_\+ss7\+\_\+instance\+::user}, and \textbf{ xua\+\_\+msg\+\_\+free()}.



Referenced by \textbf{ m3ua\+\_\+hmdc\+\_\+rx\+\_\+from\+\_\+l2()}.

\mbox{\label{ss7__hmrt_8c_a33ede64db537fe1d5a39e6d9c2f07c8b}} 
\index{ss7\_hmrt.c@{ss7\_hmrt.c}!hmrt\_message\_for\_routing@{hmrt\_message\_for\_routing}}
\index{hmrt\_message\_for\_routing@{hmrt\_message\_for\_routing}!ss7\_hmrt.c@{ss7\_hmrt.c}}
\doxysubsubsection{hmrt\_message\_for\_routing()}
{\footnotesize\ttfamily static int hmrt\+\_\+message\+\_\+for\+\_\+routing (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$}]{inst,  }\item[{struct \textbf{ xua\+\_\+msg} $\ast$}]{xua }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



References \textbf{ osmo\+\_\+ss7\+\_\+route\+::as}, \textbf{ osmo\+\_\+ss7\+\_\+as\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+as\+::ctrg}, \textbf{ osmo\+\_\+ss7\+\_\+route\+::dest}, \textbf{ osmo\+\_\+mtp\+\_\+transfer\+\_\+param\+::dpc}, \textbf{ dpc}, \textbf{ osmo\+\_\+ss7\+\_\+as\+::inst}, \textbf{ ipa\+\_\+tx\+\_\+xua\+\_\+as()}, \textbf{ osmo\+\_\+ss7\+\_\+route\+::linkset}, \textbf{ LOGSS7}, \textbf{ m3ua\+\_\+tx\+\_\+xua\+\_\+as()}, \textbf{ xua\+\_\+msg\+::mtp}, \textbf{ osmo\+\_\+mtp\+\_\+transfer\+\_\+param\+::opc}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+label\+::opc}, \textbf{ OSMO\+\_\+\+SS7\+\_\+\+ASP\+\_\+\+PROT\+\_\+\+IPA}, \textbf{ OSMO\+\_\+\+SS7\+\_\+\+ASP\+\_\+\+PROT\+\_\+\+M3\+UA}, \textbf{ osmo\+\_\+ss7\+\_\+pointcode\+\_\+print()}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+name()}, \textbf{ osmo\+\_\+ss7\+\_\+as\+::proto}, \textbf{ osmo\+\_\+mtp\+\_\+transfer\+\_\+param\+::sls}, \textbf{ SS7\+\_\+\+AS\+\_\+\+CTR\+\_\+\+TX\+\_\+\+MSU\+\_\+\+SLS\+\_\+0}, \textbf{ SS7\+\_\+\+AS\+\_\+\+CTR\+\_\+\+TX\+\_\+\+MSU\+\_\+\+TOTAL}, \textbf{ ss7\+\_\+instance\+\_\+lookup\+\_\+route()}, and \textbf{ xua\+\_\+msg\+\_\+free()}.



Referenced by \textbf{ m3ua\+\_\+hmdc\+\_\+rx\+\_\+from\+\_\+l2()}.

\mbox{\label{ss7__hmrt_8c_a8bc0dfc719354cd380bb206d25c33c6a}} 
\index{ss7\_hmrt.c@{ss7\_hmrt.c}!m3ua\_hmdc\_rx\_from\_l2@{m3ua\_hmdc\_rx\_from\_l2}}
\index{m3ua\_hmdc\_rx\_from\_l2@{m3ua\_hmdc\_rx\_from\_l2}!ss7\_hmrt.c@{ss7\_hmrt.c}}
\doxysubsubsection{m3ua\_hmdc\_rx\_from\_l2()}
{\footnotesize\ttfamily int m3ua\+\_\+hmdc\+\_\+rx\+\_\+from\+\_\+l2 (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$}]{inst,  }\item[{struct \textbf{ xua\+\_\+msg} $\ast$}]{xua }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+mtp\+\_\+transfer\+\_\+param\+::dpc}, \textbf{ dpc}, \textbf{ hmdt\+\_\+message\+\_\+for\+\_\+distribution()}, \textbf{ hmrt\+\_\+message\+\_\+for\+\_\+routing()}, \textbf{ osmo\+\_\+ss7\+\_\+as\+::inst}, \textbf{ LOGSS7}, \textbf{ xua\+\_\+msg\+::mtp}, \textbf{ osmo\+\_\+ss7\+\_\+pc\+\_\+is\+\_\+local()}, and \textbf{ osmo\+\_\+ss7\+\_\+pointcode\+\_\+print()}.



Referenced by \textbf{ ipa\+\_\+rx\+\_\+msg\+\_\+sccp()}, \textbf{ m3ua\+\_\+rx\+\_\+xfer()}, and \textbf{ osmo\+\_\+ss7\+\_\+user\+\_\+mtp\+\_\+xfer\+\_\+req()}.

\mbox{\label{ss7__hmrt_8c_a24f194897e3f4c4afcb473a08c65b5a3}} 
\index{ss7\_hmrt.c@{ss7\_hmrt.c}!m3ua\_to\_xfer\_ind@{m3ua\_to\_xfer\_ind}}
\index{m3ua\_to\_xfer\_ind@{m3ua\_to\_xfer\_ind}!ss7\_hmrt.c@{ss7\_hmrt.c}}
\doxysubsubsection{m3ua\_to\_xfer\_ind()}
{\footnotesize\ttfamily struct \textbf{ osmo\+\_\+mtp\+\_\+prim} $\ast$ m3ua\+\_\+to\+\_\+xfer\+\_\+ind (\begin{DoxyParamCaption}\item[{struct \textbf{ xua\+\_\+msg} $\ast$}]{xua }\end{DoxyParamCaption})}



References \textbf{ xua\+\_\+msg\+\_\+part\+::dat}, \textbf{ xua\+\_\+msg\+\_\+part\+::len}, \textbf{ m3ua\+\_\+dh\+\_\+to\+\_\+xfer\+\_\+param()}, \textbf{ M3\+UA\+\_\+\+IEI\+\_\+\+PROT\+\_\+\+DATA}, \textbf{ m3ua\+\_\+msgb\+\_\+alloc()}, \textbf{ MTP\+\_\+\+SAP\+\_\+\+USER}, \textbf{ NULL}, \textbf{ osmo\+\_\+mtp\+\_\+prim\+::oph}, \textbf{ OSMO\+\_\+\+MTP\+\_\+\+PRIM\+\_\+\+TRANSFER}, \textbf{ osmo\+\_\+mtp\+\_\+prim\+::transfer}, \textbf{ osmo\+\_\+mtp\+\_\+prim\+::u}, and \textbf{ xua\+\_\+msg\+\_\+find\+\_\+tag()}.



Referenced by \textbf{ deliver\+\_\+to\+\_\+mtp\+\_\+user()}.

\mbox{\label{ss7__hmrt_8c_ad6c17cf3ab5e476f72b42abb6329f257}} 
\index{ss7\_hmrt.c@{ss7\_hmrt.c}!mtp\_prim\_to\_m3ua@{mtp\_prim\_to\_m3ua}}
\index{mtp\_prim\_to\_m3ua@{mtp\_prim\_to\_m3ua}!ss7\_hmrt.c@{ss7\_hmrt.c}}
\doxysubsubsection{mtp\_prim\_to\_m3ua()}
{\footnotesize\ttfamily static struct \textbf{ xua\+\_\+msg} $\ast$ mtp\+\_\+prim\+\_\+to\+\_\+m3ua (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+mtp\+\_\+prim} $\ast$}]{prim }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



References \textbf{ m3ua\+\_\+xfer\+\_\+from\+\_\+data()}, \textbf{ mtp\+\_\+xfer\+\_\+param\+\_\+to\+\_\+m3ua\+\_\+dh()}, \textbf{ osmo\+\_\+mtp\+\_\+prim\+::oph}, \textbf{ osmo\+\_\+mtp\+\_\+prim\+::transfer}, and \textbf{ osmo\+\_\+mtp\+\_\+prim\+::u}.



Referenced by \textbf{ osmo\+\_\+ss7\+\_\+user\+\_\+mtp\+\_\+xfer\+\_\+req()}.

\mbox{\label{ss7__hmrt_8c_a6e0fa32ebbd3aeba25b800146a76bbc7}} 
\index{ss7\_hmrt.c@{ss7\_hmrt.c}!osmo\_ss7\_user\_mtp\_xfer\_req@{osmo\_ss7\_user\_mtp\_xfer\_req}}
\index{osmo\_ss7\_user\_mtp\_xfer\_req@{osmo\_ss7\_user\_mtp\_xfer\_req}!ss7\_hmrt.c@{ss7\_hmrt.c}}
\doxysubsubsection{osmo\_ss7\_user\_mtp\_xfer\_req()}
{\footnotesize\ttfamily int osmo\+\_\+ss7\+\_\+user\+\_\+mtp\+\_\+xfer\+\_\+req (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$}]{inst,  }\item[{struct \textbf{ osmo\+\_\+mtp\+\_\+prim} $\ast$}]{omp }\end{DoxyParamCaption})}



References \textbf{ LOGSS7}, \textbf{ m3ua\+\_\+hmdc\+\_\+rx\+\_\+from\+\_\+l2()}, \textbf{ xua\+\_\+msg\+::mtp}, \textbf{ mtp\+\_\+prim\+\_\+to\+\_\+m3ua()}, \textbf{ MTP\+\_\+\+SAP\+\_\+\+USER}, \textbf{ osmo\+\_\+mtp\+\_\+prim\+::oph}, \textbf{ OSMO\+\_\+\+MTP\+\_\+\+PRIM\+\_\+\+TRANSFER}, \textbf{ osmo\+\_\+mtp\+\_\+prim\+::transfer}, and \textbf{ osmo\+\_\+mtp\+\_\+prim\+::u}.



Referenced by \textbf{ sua2sccp\+\_\+tx\+\_\+m3ua()}.

</pre></body></html>