\doxysection{ss7\+\_\+internal.\+h}
\label{ss7__internal_8h_source}\index{src/ss7\_internal.h@{src/ss7\_internal.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{2 }
\DoxyCodeLine{3 \textcolor{comment}{/* Internal header used by libosmo-\/sccp, not available publicly for lib users */}}
\DoxyCodeLine{4 }
\DoxyCodeLine{5 \textcolor{preprocessor}{\#include <stdbool.h>}}
\DoxyCodeLine{6 \textcolor{preprocessor}{\#include <stdint.h>}}
\DoxyCodeLine{7 \textcolor{preprocessor}{\#include <osmocom/sigtran/osmo\_ss7.h>}}
\DoxyCodeLine{8 }
\DoxyCodeLine{9 \textcolor{keyword}{extern} \textcolor{keywordtype}{bool} ss7\_initialized;}
\DoxyCodeLine{10 uint32\_t ss7\_find\_free\_l\_rk\_id(\textcolor{keyword}{struct} osmo\_ss7\_instance *inst);}
\DoxyCodeLine{11 }
\DoxyCodeLine{12 \textcolor{keywordtype}{bool} ss7\_ipv6\_sctp\_supported(\textcolor{keyword}{const} \textcolor{keywordtype}{char} *host, \textcolor{keywordtype}{bool} bind);}
\DoxyCodeLine{13 }
\DoxyCodeLine{14 \textcolor{keyword}{struct }osmo\_ss7\_as *ss7\_as\_alloc(\textcolor{keyword}{struct} osmo\_ss7\_instance *inst, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *name,}
\DoxyCodeLine{15                                  \textcolor{keyword}{enum} osmo\_ss7\_asp\_protocol proto);}
\DoxyCodeLine{16 }
\DoxyCodeLine{17 \textcolor{keyword}{struct }osmo\_ss7\_asp *ss7\_asp\_alloc(\textcolor{keyword}{struct} osmo\_ss7\_instance *inst, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *name,}
\DoxyCodeLine{18                                    uint16\_t remote\_port, uint16\_t local\_port,}
\DoxyCodeLine{19                                    \textcolor{keywordtype}{int} trans\_proto, \textcolor{keyword}{enum} osmo\_ss7\_asp\_protocol proto);}
\DoxyCodeLine{20 \textcolor{keywordtype}{bool} ss7\_asp\_set\_default\_peer\_hosts(\textcolor{keyword}{struct} osmo\_ss7\_asp *asp);}
\DoxyCodeLine{21 \textcolor{keywordtype}{bool} ss7\_asp\_is\_started(\textcolor{keyword}{const} \textcolor{keyword}{struct} osmo\_ss7\_asp *asp);}
\DoxyCodeLine{22 \textcolor{keywordtype}{int} ss7\_asp\_get\_fd(\textcolor{keyword}{const} \textcolor{keyword}{struct} osmo\_ss7\_asp *asp);}
\DoxyCodeLine{23 \textcolor{keyword}{struct }osmo\_ss7\_asp *ss7\_asp\_find\_by\_socket\_addr(\textcolor{keywordtype}{int} fd, \textcolor{keywordtype}{int} trans\_proto);}
\DoxyCodeLine{24 }
\DoxyCodeLine{25 \textcolor{keywordtype}{bool} ss7\_asp\_protocol\_check\_trans\_proto(\textcolor{keyword}{enum} osmo\_ss7\_asp\_protocol proto, \textcolor{keywordtype}{int} trans\_proto);}
\DoxyCodeLine{26 \textcolor{keywordtype}{int} ss7\_default\_trans\_proto\_for\_asp\_proto(\textcolor{keyword}{enum} osmo\_ss7\_asp\_protocol proto);}
\DoxyCodeLine{27 \textcolor{keywordtype}{int} ss7\_asp\_ipa\_srv\_conn\_rx\_cb(\textcolor{keyword}{struct} osmo\_stream\_srv *conn, \textcolor{keywordtype}{int} res, \textcolor{keyword}{struct} msgb *msg);}
\DoxyCodeLine{28 \textcolor{keywordtype}{int} ss7\_asp\_xua\_srv\_conn\_rx\_cb(\textcolor{keyword}{struct} osmo\_stream\_srv *conn, \textcolor{keywordtype}{int} res, \textcolor{keyword}{struct} msgb *msg);}
\DoxyCodeLine{29 \textcolor{keywordtype}{int} ss7\_asp\_m3ua\_tcp\_srv\_conn\_rx\_cb(\textcolor{keyword}{struct} osmo\_stream\_srv *conn, \textcolor{keywordtype}{int} res, \textcolor{keyword}{struct} msgb *msg);}
\DoxyCodeLine{30 \textcolor{keywordtype}{int} ss7\_asp\_xua\_srv\_conn\_closed\_cb(\textcolor{keyword}{struct} osmo\_stream\_srv *srv);}
\DoxyCodeLine{31 \textcolor{keywordtype}{int} ss7\_asp\_apply\_peer\_primary\_address(\textcolor{keyword}{const} \textcolor{keyword}{struct} osmo\_ss7\_asp *asp);}
\DoxyCodeLine{32 \textcolor{keywordtype}{int} ss7\_asp\_apply\_primary\_address(\textcolor{keyword}{const} \textcolor{keyword}{struct} osmo\_ss7\_asp *asp);}
\DoxyCodeLine{33 \textcolor{keywordtype}{int} ss7\_asp\_apply\_new\_local\_address(\textcolor{keyword}{const} \textcolor{keyword}{struct} osmo\_ss7\_asp *asp, \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} loc\_idx);}
\DoxyCodeLine{34 \textcolor{keywordtype}{int} ss7\_asp\_apply\_drop\_local\_address(\textcolor{keyword}{const} \textcolor{keyword}{struct} osmo\_ss7\_asp *asp, \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} loc\_idx);}
\DoxyCodeLine{35 }
\DoxyCodeLine{36 \textcolor{keywordtype}{bool} ss7\_asp\_peer\_match\_host(\textcolor{keyword}{const} \textcolor{keyword}{struct} osmo\_ss7\_asp\_peer *peer, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *host, \textcolor{keywordtype}{bool} host\_is\_v6);}
\DoxyCodeLine{37 \textcolor{keywordtype}{int} ss7\_asp\_peer\_find\_host(\textcolor{keyword}{const} \textcolor{keyword}{struct} osmo\_ss7\_asp\_peer *peer, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *host);}
\DoxyCodeLine{38 }
\DoxyCodeLine{39 \textcolor{keywordtype}{bool} ss7\_xua\_server\_set\_default\_local\_hosts(\textcolor{keyword}{struct} osmo\_xua\_server *oxs);}
\DoxyCodeLine{40 }
\DoxyCodeLine{41 \textcolor{keywordtype}{int} xua\_tcp\_segmentation\_cb(\textcolor{keyword}{struct} msgb *msg);}
\DoxyCodeLine{42 }
\DoxyCodeLine{43 \textcolor{keyword}{enum} ss7\_as\_ctr \{}
\DoxyCodeLine{44         SS7\_AS\_CTR\_RX\_MSU\_TOTAL,}
\DoxyCodeLine{45         SS7\_AS\_CTR\_TX\_MSU\_TOTAL,}
\DoxyCodeLine{46 \};}
\DoxyCodeLine{47 }
\DoxyCodeLine{48 \textcolor{keyword}{enum} ss7\_asp\_ctr \{}
\DoxyCodeLine{49         SS7\_ASP\_CTR\_PKT\_RX\_TOTAL,}
\DoxyCodeLine{50         SS7\_ASP\_CTR\_PKT\_RX\_UNKNOWN,}
\DoxyCodeLine{51         SS7\_ASP\_CTR\_PKT\_TX\_TOTAL,}
\DoxyCodeLine{52 \};}

\end{DoxyCode}
