\doxysection{src/osmo\+\_\+ss7\+\_\+route\+\_\+table.c File Reference}
\label{osmo__ss7__route__table_8c}\index{src/osmo\_ss7\_route\_table.c@{src/osmo\_ss7\_route\_table.c}}
{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/linuxlist.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/logging.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/sigtran/mtp\+\_\+sap.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/sigtran/osmo\+\_\+ss7.\+h$>$}\newline
{\ttfamily \#include \char`\"{}ss7\+\_\+combined\+\_\+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
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
char $\ast$ \textbf{ ss7\+\_\+route\+\_\+label\+\_\+to\+\_\+str} (char $\ast$buf, size\+\_\+t buf\+\_\+len, const struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$inst, const struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+label} $\ast$rtlb)
\item 
static struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$ \textbf{ ss7\+\_\+route\+\_\+table\+\_\+alloc} (struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$inst, const char $\ast$name)
\item 
struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$ \textbf{ ss7\+\_\+route\+\_\+table\+\_\+find} (struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$inst, const char $\ast$name)
\item 
struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$ \textbf{ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+or\+\_\+create} (struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$inst, const char $\ast$name)
\item 
void \textbf{ ss7\+\_\+route\+\_\+table\+\_\+destroy} (struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$rtbl)
\item 
struct \textbf{ osmo\+\_\+ss7\+\_\+route} $\ast$ \textbf{ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+route\+\_\+by\+\_\+dpc\+\_\+mask} (struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$rtbl, uint32\+\_\+t \textbf{ dpc}, uint32\+\_\+t mask)
\begin{DoxyCompactList}\small\item\em Find a SS7 route for given destination point code + mask in given table. \end{DoxyCompactList}\item 
struct \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset} $\ast$ \textbf{ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+combined\+\_\+linkset\+\_\+by\+\_\+dpc} (struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$rtbl, uint32\+\_\+t \textbf{ dpc})
\item 
struct \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset} $\ast$ \textbf{ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+combined\+\_\+linkset\+\_\+by\+\_\+dpc\+\_\+mask} (struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$rtbl, uint32\+\_\+t \textbf{ dpc}, uint32\+\_\+t mask)
\item 
struct \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset} $\ast$ \textbf{ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+combined\+\_\+linkset} (struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$rtbl, uint32\+\_\+t \textbf{ dpc}, uint32\+\_\+t mask, uint32\+\_\+t prio)
\item 
struct \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset} $\ast$ \textbf{ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+or\+\_\+create\+\_\+combined\+\_\+linkset} (struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$rtable, uint32\+\_\+t pc, uint32\+\_\+t mask, uint32\+\_\+t prio)
\item 
void \textbf{ ss7\+\_\+route\+\_\+table\+\_\+del\+\_\+routes\+\_\+by\+\_\+as} (struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$rtbl, struct \textbf{ osmo\+\_\+ss7\+\_\+as} $\ast$as)
\item 
void \textbf{ ss7\+\_\+route\+\_\+table\+\_\+del\+\_\+routes\+\_\+by\+\_\+linkset} (struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$rtbl, struct \textbf{ osmo\+\_\+ss7\+\_\+linkset} $\ast$lset)
\item 
struct \textbf{ osmo\+\_\+ss7\+\_\+route} $\ast$ \textbf{ ss7\+\_\+route\+\_\+table\+\_\+lookup\+\_\+route} (struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$rtbl, const struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+label} $\ast$rtlabel)
\end{DoxyCompactItemize}


\doxysubsection{Function Documentation}
\mbox{\label{osmo__ss7__route__table_8c_a3263fc2bc9e3377269a4c0a41fdd0b8e}} 
\index{osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}!ss7\_route\_label\_to\_str@{ss7\_route\_label\_to\_str}}
\index{ss7\_route\_label\_to\_str@{ss7\_route\_label\_to\_str}!osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}}
\doxysubsubsection{ss7\_route\_label\_to\_str()}
{\footnotesize\ttfamily char $\ast$ ss7\+\_\+route\+\_\+label\+\_\+to\+\_\+str (\begin{DoxyParamCaption}\item[{char $\ast$}]{buf,  }\item[{size\+\_\+t}]{buf\+\_\+len,  }\item[{const struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$}]{inst,  }\item[{const struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+label} $\ast$}]{rtlb }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+label\+::dpc}, \textbf{ NULL}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+label\+::opc}, \textbf{ osmo\+\_\+ss7\+\_\+pointcode\+\_\+print()}, \textbf{ osmo\+\_\+ss7\+\_\+pointcode\+\_\+print2()}, and \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+label\+::sls}.



Referenced by \textbf{ DEFUN()}, and \textbf{ gen\+\_\+mtp\+\_\+transfer\+\_\+req\+\_\+xua()}.

\mbox{\label{osmo__ss7__route__table_8c_a893939378e40f7ce00e6424fd2438d6a}} 
\index{osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}!ss7\_route\_table\_alloc@{ss7\_route\_table\_alloc}}
\index{ss7\_route\_table\_alloc@{ss7\_route\_table\_alloc}!osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}}
\doxysubsubsection{ss7\_route\_table\_alloc()}
{\footnotesize\ttfamily static struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$ ss7\+\_\+route\+\_\+table\+\_\+alloc (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$}]{inst,  }\item[{const char $\ast$}]{name }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



References \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::combined\+\_\+linksets}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::inst}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::list}, \textbf{ LOGSS7}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::name}, and \textbf{ osmo\+\_\+ss7\+\_\+instance\+::rtable\+\_\+list}.



Referenced by \textbf{ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+or\+\_\+create()}.

\mbox{\label{osmo__ss7__route__table_8c_a31366f9d23c4f7498118f19ce34ee49d}} 
\index{osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}!ss7\_route\_table\_del\_routes\_by\_as@{ss7\_route\_table\_del\_routes\_by\_as}}
\index{ss7\_route\_table\_del\_routes\_by\_as@{ss7\_route\_table\_del\_routes\_by\_as}!osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}}
\doxysubsubsection{ss7\_route\_table\_del\_routes\_by\_as()}
{\footnotesize\ttfamily void ss7\+\_\+route\+\_\+table\+\_\+del\+\_\+routes\+\_\+by\+\_\+as (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$}]{rtbl,  }\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+as} $\ast$}]{as }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+ss7\+\_\+route\+::as}, \textbf{ osmo\+\_\+ss7\+\_\+route\+::clset}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::combined\+\_\+linksets}, \textbf{ osmo\+\_\+ss7\+\_\+route\+::dest}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::list}, \textbf{ osmo\+\_\+ss7\+\_\+route\+::list}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::routes}, and \textbf{ ss7\+\_\+route\+\_\+destroy()}.



Referenced by \textbf{ osmo\+\_\+ss7\+\_\+as\+\_\+destroy()}.

\mbox{\label{osmo__ss7__route__table_8c_a6654b99144311dad1d260b18211870ef}} 
\index{osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}!ss7\_route\_table\_del\_routes\_by\_linkset@{ss7\_route\_table\_del\_routes\_by\_linkset}}
\index{ss7\_route\_table\_del\_routes\_by\_linkset@{ss7\_route\_table\_del\_routes\_by\_linkset}!osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}}
\doxysubsubsection{ss7\_route\_table\_del\_routes\_by\_linkset()}
{\footnotesize\ttfamily void ss7\+\_\+route\+\_\+table\+\_\+del\+\_\+routes\+\_\+by\+\_\+linkset (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$}]{rtbl,  }\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+linkset} $\ast$}]{lset }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+ss7\+\_\+route\+::clset}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::combined\+\_\+linksets}, \textbf{ osmo\+\_\+ss7\+\_\+route\+::dest}, \textbf{ osmo\+\_\+ss7\+\_\+route\+::linkset}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::list}, \textbf{ osmo\+\_\+ss7\+\_\+route\+::list}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::routes}, and \textbf{ ss7\+\_\+route\+\_\+destroy()}.



Referenced by \textbf{ ss7\+\_\+linkset\+\_\+destroy()}.

\mbox{\label{osmo__ss7__route__table_8c_a954b58f587a98e6c5e92f1b7a73975e9}} 
\index{osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}!ss7\_route\_table\_destroy@{ss7\_route\_table\_destroy}}
\index{ss7\_route\_table\_destroy@{ss7\_route\_table\_destroy}!osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}}
\doxysubsubsection{ss7\_route\_table\_destroy()}
{\footnotesize\ttfamily void ss7\+\_\+route\+\_\+table\+\_\+destroy (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$}]{rtbl }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::list}.

\mbox{\label{osmo__ss7__route__table_8c_aed9bc0d02f1541dd23f33b9183e70324}} 
\index{osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}!ss7\_route\_table\_find@{ss7\_route\_table\_find}}
\index{ss7\_route\_table\_find@{ss7\_route\_table\_find}!osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}}
\doxysubsubsection{ss7\_route\_table\_find()}
{\footnotesize\ttfamily struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$ ss7\+\_\+route\+\_\+table\+\_\+find (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$}]{inst,  }\item[{const char $\ast$}]{name }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::inst}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::list}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::name}, \textbf{ NULL}, \textbf{ osmo\+\_\+ss7\+\_\+instance\+::rtable\+\_\+list}, and \textbf{ ss7\+\_\+initialized}.



Referenced by \textbf{ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+or\+\_\+create()}.

\mbox{\label{osmo__ss7__route__table_8c_aabd139681a2a26b1831d87cbdc077948}} 
\index{osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}!ss7\_route\_table\_find\_combined\_linkset@{ss7\_route\_table\_find\_combined\_linkset}}
\index{ss7\_route\_table\_find\_combined\_linkset@{ss7\_route\_table\_find\_combined\_linkset}!osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}}
\doxysubsubsection{ss7\_route\_table\_find\_combined\_linkset()}
{\footnotesize\ttfamily struct \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset} $\ast$ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+combined\+\_\+linkset (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$}]{rtbl,  }\item[{uint32\+\_\+t}]{dpc,  }\item[{uint32\+\_\+t}]{mask,  }\item[{uint32\+\_\+t}]{prio }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::combined\+\_\+linksets}, \textbf{ dpc}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::list}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::mask}, \textbf{ NULL}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::pc}, and \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::priority}.



Referenced by \textbf{ ss7\+\_\+route\+\_\+insert()}, and \textbf{ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+or\+\_\+create\+\_\+combined\+\_\+linkset()}.

\mbox{\label{osmo__ss7__route__table_8c_aebd0cdd36959ecf1c921ddecfd254fef}} 
\index{osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}!ss7\_route\_table\_find\_combined\_linkset\_by\_dpc@{ss7\_route\_table\_find\_combined\_linkset\_by\_dpc}}
\index{ss7\_route\_table\_find\_combined\_linkset\_by\_dpc@{ss7\_route\_table\_find\_combined\_linkset\_by\_dpc}!osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}}
\doxysubsubsection{ss7\_route\_table\_find\_combined\_linkset\_by\_dpc()}
{\footnotesize\ttfamily struct \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset} $\ast$ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+combined\+\_\+linkset\+\_\+by\+\_\+dpc (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$}]{rtbl,  }\item[{uint32\+\_\+t}]{dpc }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+instance\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::combined\+\_\+linksets}, \textbf{ dpc}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::inst}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::list}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::mask}, \textbf{ NULL}, \textbf{ osmo\+\_\+ss7\+\_\+pc\+\_\+normalize()}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::pc}, \textbf{ osmo\+\_\+ss7\+\_\+instance\+::pc\+\_\+fmt}, and \textbf{ ss7\+\_\+initialized}.

\mbox{\label{osmo__ss7__route__table_8c_a8315128b71f31bb694df525a39a27d10}} 
\index{osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}!ss7\_route\_table\_find\_combined\_linkset\_by\_dpc\_mask@{ss7\_route\_table\_find\_combined\_linkset\_by\_dpc\_mask}}
\index{ss7\_route\_table\_find\_combined\_linkset\_by\_dpc\_mask@{ss7\_route\_table\_find\_combined\_linkset\_by\_dpc\_mask}!osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}}
\doxysubsubsection{ss7\_route\_table\_find\_combined\_linkset\_by\_dpc\_mask()}
{\footnotesize\ttfamily struct \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset} $\ast$ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+combined\+\_\+linkset\+\_\+by\+\_\+dpc\+\_\+mask (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$}]{rtbl,  }\item[{uint32\+\_\+t}]{dpc,  }\item[{uint32\+\_\+t}]{mask }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+instance\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::combined\+\_\+linksets}, \textbf{ dpc}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::inst}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::list}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::mask}, \textbf{ NULL}, \textbf{ osmo\+\_\+ss7\+\_\+pc\+\_\+normalize()}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::pc}, \textbf{ osmo\+\_\+ss7\+\_\+instance\+::pc\+\_\+fmt}, and \textbf{ ss7\+\_\+initialized}.



Referenced by \textbf{ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+route\+\_\+by\+\_\+dpc\+\_\+mask()}.

\mbox{\label{osmo__ss7__route__table_8c_adec7dc12336efe6460d6e036dea8a7a1}} 
\index{osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}!ss7\_route\_table\_find\_or\_create@{ss7\_route\_table\_find\_or\_create}}
\index{ss7\_route\_table\_find\_or\_create@{ss7\_route\_table\_find\_or\_create}!osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}}
\doxysubsubsection{ss7\_route\_table\_find\_or\_create()}
{\footnotesize\ttfamily struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+or\+\_\+create (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$}]{inst,  }\item[{const char $\ast$}]{name }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::inst}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::name}, \textbf{ ss7\+\_\+initialized}, \textbf{ ss7\+\_\+route\+\_\+table\+\_\+alloc()}, and \textbf{ ss7\+\_\+route\+\_\+table\+\_\+find()}.



Referenced by \textbf{ ss7\+\_\+instance\+\_\+alloc()}.

\mbox{\label{osmo__ss7__route__table_8c_a37c67807bf9770984ea349d998f45695}} 
\index{osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}!ss7\_route\_table\_find\_or\_create\_combined\_linkset@{ss7\_route\_table\_find\_or\_create\_combined\_linkset}}
\index{ss7\_route\_table\_find\_or\_create\_combined\_linkset@{ss7\_route\_table\_find\_or\_create\_combined\_linkset}!osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}}
\doxysubsubsection{ss7\_route\_table\_find\_or\_create\_combined\_linkset()}
{\footnotesize\ttfamily struct \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset} $\ast$ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+or\+\_\+create\+\_\+combined\+\_\+linkset (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$}]{rtable,  }\item[{uint32\+\_\+t}]{pc,  }\item[{uint32\+\_\+t}]{mask,  }\item[{uint32\+\_\+t}]{prio }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::mask}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::pc}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::rtable}, \textbf{ ss7\+\_\+combined\+\_\+linkset\+\_\+alloc()}, and \textbf{ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+combined\+\_\+linkset()}.

\mbox{\label{osmo__ss7__route__table_8c_a67b95bb2b2a8bb9f66c54c2f9bb33543}} 
\index{osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}!ss7\_route\_table\_find\_route\_by\_dpc\_mask@{ss7\_route\_table\_find\_route\_by\_dpc\_mask}}
\index{ss7\_route\_table\_find\_route\_by\_dpc\_mask@{ss7\_route\_table\_find\_route\_by\_dpc\_mask}!osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}}
\doxysubsubsection{ss7\_route\_table\_find\_route\_by\_dpc\_mask()}
{\footnotesize\ttfamily struct \textbf{ osmo\+\_\+ss7\+\_\+route} $\ast$ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+route\+\_\+by\+\_\+dpc\+\_\+mask (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$}]{rtbl,  }\item[{uint32\+\_\+t}]{dpc,  }\item[{uint32\+\_\+t}]{mask }\end{DoxyParamCaption})}



Find a SS7 route for given destination point code + mask in given table. 

This function is used for route management procedures, not for packet routing lookup procedures! 

References \textbf{ osmo\+\_\+ss7\+\_\+instance\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+route\+::clset}, \textbf{ dpc}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::inst}, \textbf{ osmo\+\_\+ss7\+\_\+route\+::list}, \textbf{ osmo\+\_\+ss7\+\_\+route\+::mask}, \textbf{ NULL}, \textbf{ osmo\+\_\+ss7\+\_\+pc\+\_\+normalize()}, \textbf{ osmo\+\_\+ss7\+\_\+instance\+::pc\+\_\+fmt}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::routes}, \textbf{ ss7\+\_\+initialized}, and \textbf{ ss7\+\_\+route\+\_\+table\+\_\+find\+\_\+combined\+\_\+linkset\+\_\+by\+\_\+dpc\+\_\+mask()}.



Referenced by \textbf{ \+\_\+rout\+\_\+key()}, \textbf{ DEFUN\+\_\+\+ATTR()}, \textbf{ handle\+\_\+rkey\+\_\+dereg()}, \textbf{ ipa\+\_\+add\+\_\+route()}, \textbf{ ipa\+\_\+del\+\_\+route()}, \textbf{ osmo\+\_\+sccp\+\_\+simple\+\_\+client\+\_\+on\+\_\+ss7\+\_\+id()}, and \textbf{ ss7\+\_\+route\+\_\+create()}.

\mbox{\label{osmo__ss7__route__table_8c_ab30b0560f1af6ff1cba53d3766b368cf}} 
\index{osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}!ss7\_route\_table\_lookup\_route@{ss7\_route\_table\_lookup\_route}}
\index{ss7\_route\_table\_lookup\_route@{ss7\_route\_table\_lookup\_route}!osmo\_ss7\_route\_table.c@{osmo\_ss7\_route\_table.c}}
\doxysubsubsection{ss7\_route\_table\_lookup\_route()}
{\footnotesize\ttfamily struct \textbf{ osmo\+\_\+ss7\+\_\+route} $\ast$ ss7\+\_\+route\+\_\+table\+\_\+lookup\+\_\+route (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table} $\ast$}]{rtbl,  }\item[{const struct \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+label} $\ast$}]{rtlabel }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+instance\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::combined\+\_\+linksets}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+label\+::dpc}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+table\+::inst}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::mask}, \textbf{ NULL}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+label\+::opc}, \textbf{ osmo\+\_\+ss7\+\_\+pc\+\_\+normalize()}, \textbf{ osmo\+\_\+ss7\+\_\+combined\+\_\+linkset\+::pc}, \textbf{ osmo\+\_\+ss7\+\_\+instance\+::pc\+\_\+fmt}, \textbf{ osmo\+\_\+ss7\+\_\+route\+\_\+label\+::sls}, and \textbf{ ss7\+\_\+combined\+\_\+linkset\+\_\+lookup\+\_\+route()}.



Referenced by \textbf{ ss7\+\_\+instance\+\_\+lookup\+\_\+route()}.

