\doxysection{ss7\+\_\+route.\+h}
\label{ss7__route_8h_source}\index{src/ss7\_route.h@{src/ss7\_route.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 \textcolor{preprocessor}{\#include <osmocom/core/linuxlist.h>}}
\DoxyCodeLine{5 }
\DoxyCodeLine{6 \textcolor{comment}{/***********************************************************************}}
\DoxyCodeLine{7 \textcolor{comment}{ * SS7 Routes}}
\DoxyCodeLine{8 \textcolor{comment}{ ***********************************************************************/}}
\DoxyCodeLine{9 }
\DoxyCodeLine{10 \textcolor{keyword}{struct }osmo\_ss7\_instance;}
\DoxyCodeLine{11 \textcolor{keyword}{struct }osmo\_ss7\_route\_table;}
\DoxyCodeLine{12 \textcolor{keyword}{struct }osmo\_ss7\_linkset;}
\DoxyCodeLine{13 \textcolor{keyword}{struct }osmo\_ss7\_as;}
\DoxyCodeLine{14 }
\DoxyCodeLine{15 \textcolor{preprocessor}{\#define OSMO\_SS7\_ROUTE\_PRIO\_DEFAULT 5}}
\DoxyCodeLine{16 }
\DoxyCodeLine{17 \textcolor{keyword}{struct }osmo\_ss7\_route \{}
\DoxyCodeLine{19         \textcolor{keyword}{struct }llist\_head list;}
\DoxyCodeLine{21         \textcolor{keyword}{struct }osmo\_ss7\_route\_table *rtable;}
\DoxyCodeLine{22         \textcolor{comment}{/* Combined linkset this route is part of */}}
\DoxyCodeLine{23         \textcolor{keyword}{struct }osmo\_ss7\_combined\_linkset *clset;}
\DoxyCodeLine{24 }
\DoxyCodeLine{25         \textcolor{keyword}{struct }\{}
\DoxyCodeLine{27                 \textcolor{keyword}{struct }osmo\_ss7\_linkset *linkset;}
\DoxyCodeLine{29                 \textcolor{keyword}{struct }osmo\_ss7\_as *as;}
\DoxyCodeLine{30         \} dest;}
\DoxyCodeLine{31 }
\DoxyCodeLine{32         \textcolor{keyword}{struct }\{}
\DoxyCodeLine{33                 \textcolor{comment}{/* FIXME: presence? */}}
\DoxyCodeLine{34                 uint32\_t pc;}
\DoxyCodeLine{35                 uint32\_t mask;}
\DoxyCodeLine{37                 \textcolor{keywordtype}{char} *linkset\_name;}
\DoxyCodeLine{39                 uint32\_t priority;}
\DoxyCodeLine{40                 uint8\_t qos\_class;}
\DoxyCodeLine{41         \} cfg;}
\DoxyCodeLine{42 \};}
\DoxyCodeLine{43 }
\DoxyCodeLine{44 \textcolor{keyword}{struct }osmo\_ss7\_route *}
\DoxyCodeLine{45 ss7\_route\_alloc(\textcolor{keyword}{struct} osmo\_ss7\_route\_table *rtbl, uint32\_t pc, uint32\_t mask);}
\DoxyCodeLine{46 \textcolor{keyword}{struct }osmo\_ss7\_route *}
\DoxyCodeLine{47 ss7\_route\_create(\textcolor{keyword}{struct} osmo\_ss7\_route\_table *rtbl, uint32\_t dpc,}
\DoxyCodeLine{48                         uint32\_t mask, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *linkset\_name);}
\DoxyCodeLine{49 \textcolor{keywordtype}{void} ss7\_route\_destroy(\textcolor{keyword}{struct} osmo\_ss7\_route *rt);}
\DoxyCodeLine{50 }
\DoxyCodeLine{51 \textcolor{keyword}{struct }osmo\_ss7\_route *}
\DoxyCodeLine{52 ss7\_route\_find\_dpc(\textcolor{keyword}{struct} osmo\_ss7\_route\_table *rtbl, uint32\_t dpc);}
\DoxyCodeLine{53 \textcolor{keyword}{struct }osmo\_ss7\_route *}
\DoxyCodeLine{54 ss7\_route\_find\_dpc\_mask(\textcolor{keyword}{struct} osmo\_ss7\_route\_table *rtbl, uint32\_t dpc,}
\DoxyCodeLine{55                              uint32\_t mask);}
\DoxyCodeLine{56 }
\DoxyCodeLine{57 \textcolor{keywordtype}{int} ss7\_route\_set\_linkset(\textcolor{keyword}{struct} osmo\_ss7\_route *rt, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *linkset\_name);}
\DoxyCodeLine{58 \textcolor{keywordtype}{int} ss7\_route\_insert(\textcolor{keyword}{struct} osmo\_ss7\_route *rt);}
\DoxyCodeLine{59 }
\DoxyCodeLine{60 \textcolor{keywordtype}{bool} ss7\_route\_is\_available(\textcolor{keyword}{const} \textcolor{keyword}{struct} osmo\_ss7\_route *rt);}

\end{DoxyCode}
