\doxysection{tcap\+\_\+as\+\_\+loadshare.\+h}
\label{tcap__as__loadshare_8h_source}\index{src/tcap\_as\_loadshare.h@{src/tcap\_as\_loadshare.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{2 }
\DoxyCodeLine{3 \textcolor{preprocessor}{\#include <stdint.h>}}
\DoxyCodeLine{4 }
\DoxyCodeLine{5 \textcolor{preprocessor}{\#include <osmocom/core/msgb.h>}}
\DoxyCodeLine{6 \textcolor{preprocessor}{\#include <osmocom/sigtran/osmo\_ss7.h>}}
\DoxyCodeLine{7 }
\DoxyCodeLine{8 \textcolor{keyword}{struct }xua\_msg;}
\DoxyCodeLine{9 }
\DoxyCodeLine{10 \textcolor{preprocessor}{\#define TCAP\_PC\_WILDCARD 0xffffffff}}
\DoxyCodeLine{11 \textcolor{preprocessor}{\#define TCAP\_SSN\_WILDCARD 0}}
\DoxyCodeLine{12 }
\DoxyCodeLine{13 \textcolor{keyword}{struct }tcap\_range \{}
\DoxyCodeLine{14         \textcolor{keyword}{struct }hlist\_node list;}
\DoxyCodeLine{15         \textcolor{keyword}{struct }osmo\_ss7\_asp *asp;}
\DoxyCodeLine{16         uint32\_t tid\_start;}
\DoxyCodeLine{17         uint32\_t tid\_end;}
\DoxyCodeLine{18         uint32\_t pc;}
\DoxyCodeLine{19         uint8\_t ssn;}
\DoxyCodeLine{20 \};}
\DoxyCodeLine{21 }
\DoxyCodeLine{22 \textcolor{comment}{/* IPA entry point */}}
\DoxyCodeLine{23 \textcolor{keywordtype}{int} ipa\_rx\_msg\_osmo\_ext\_tcap\_routing(\textcolor{keyword}{struct} osmo\_ss7\_asp *asp, \textcolor{keyword}{struct} msgb *msg);}
\DoxyCodeLine{24 }
\DoxyCodeLine{25 \textcolor{keyword}{struct }tcap\_range *tcap\_range\_alloc(\textcolor{keyword}{struct} osmo\_ss7\_as *as, \textcolor{keyword}{struct} osmo\_ss7\_asp *asp,}
\DoxyCodeLine{26                                     uint32\_t tid\_start, uint32\_t tid\_end, uint32\_t pc, uint8\_t ssn);}
\DoxyCodeLine{27 \textcolor{keywordtype}{void} tcap\_range\_free(\textcolor{keyword}{struct} tcap\_range *tcrng);}
\DoxyCodeLine{28 }
\DoxyCodeLine{29 \textcolor{keywordtype}{bool} tcap\_range\_matches(\textcolor{keyword}{const} \textcolor{keyword}{struct} tcap\_range *tcrng, uint32\_t tid);}
\DoxyCodeLine{30 \textcolor{keywordtype}{bool} tcap\_range\_overlaps(\textcolor{keyword}{const} \textcolor{keyword}{struct} tcap\_range *a, uint32\_t tid\_min, uint32\_t tid\_max);}
\DoxyCodeLine{31 }
\DoxyCodeLine{32 \textcolor{comment}{/* Traffic ASP -\/> AS -\/> STP (Rx path) From TCAP Routing AS, only used for connection tracking */}}
\DoxyCodeLine{33 \textcolor{keywordtype}{int} tcap\_as\_rx\_sccp\_asp(\textcolor{keyword}{struct} osmo\_ss7\_as *as, \textcolor{keyword}{struct} osmo\_ss7\_asp *asp, uint32\_t opc, uint32\_t dpc, \textcolor{keyword}{struct} msgb *sccp\_msg);}
\DoxyCodeLine{34 }
\DoxyCodeLine{35 \textcolor{comment}{/* Traffic STP -\/> AS -\/> ASP (Tx path) Loadshare towards the TCAP routing AS */}}
\DoxyCodeLine{36 \textcolor{keywordtype}{int} tcap\_as\_select\_asp\_loadshare(\textcolor{keyword}{struct} osmo\_ss7\_asp **asp, \textcolor{keyword}{struct} osmo\_ss7\_as *as, \textcolor{keyword}{const} \textcolor{keyword}{struct} xua\_msg *xua);}
\DoxyCodeLine{37 }
\DoxyCodeLine{38 \textcolor{comment}{/* When the ASP got removed */}}
\DoxyCodeLine{39 \textcolor{keywordtype}{void} tcap\_as\_del\_asp(\textcolor{keyword}{struct} osmo\_ss7\_as *as, \textcolor{keyword}{struct} osmo\_ss7\_asp *asp);}
\DoxyCodeLine{40 }
\DoxyCodeLine{41 \textcolor{keywordtype}{void} tcap\_enable(\textcolor{keyword}{struct} osmo\_ss7\_as *as);}
\DoxyCodeLine{42 \textcolor{keywordtype}{void} tcap\_disable(\textcolor{keyword}{struct} osmo\_ss7\_as *as);}

\end{DoxyCode}
