\doxysection{src/osmo\+\_\+ss7\+\_\+xua\+\_\+srv.c File Reference}
\label{osmo__ss7__xua__srv_8c}\index{src/osmo\_ss7\_xua\_srv.c@{src/osmo\_ss7\_xua\_srv.c}}
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include $<$errno.\+h$>$}\newline
{\ttfamily \#include $<$unistd.\+h$>$}\newline
{\ttfamily \#include $<$inttypes.\+h$>$}\newline
{\ttfamily \#include $<$netdb.\+h$>$}\newline
{\ttfamily \#include $<$netinet/in.\+h$>$}\newline
{\ttfamily \#include $<$netinet/sctp.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/sigtran/osmo\+\_\+ss7.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/sigtran/mtp\+\_\+sap.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/sigtran/protocol/mtp.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/sigtran/protocol/sua.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/sigtran/protocol/m3ua.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/linuxlist.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/select.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/utils.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/talloc.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/logging.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/msgb.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/socket.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/sockaddr\+\_\+str.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/osmo\+\_\+io.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/netif/stream.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/netif/ipa.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/netif/sctp.\+h$>$}\newline
{\ttfamily \#include \char`\"{}sccp\+\_\+internal.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}xua\+\_\+internal.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}ss7\+\_\+internal.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}xua\+\_\+asp\+\_\+fsm.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}xua\+\_\+as\+\_\+fsm.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static int \textbf{ xua\+\_\+accept\+\_\+cb} (struct osmo\+\_\+stream\+\_\+srv\+\_\+link $\ast$link, int fd)
\item 
struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$ \textbf{ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+create2} (struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$inst, int trans\+\_\+proto, enum \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+protocol} proto, uint16\+\_\+t local\+\_\+port, const char $\ast$local\+\_\+host)
\begin{DoxyCompactList}\small\item\em create a new x\+UA server configured with given ip/port \end{DoxyCompactList}\item 
struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$ \textbf{ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+create} (struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$inst, enum \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+protocol} proto, uint16\+\_\+t local\+\_\+port, const char $\ast$local\+\_\+host)
\begin{DoxyCompactList}\small\item\em create a new x\+UA server configured with given ip/port \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+bind} (struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$xs)
\begin{DoxyCompactList}\small\item\em Set the x\+UA server to bind/listen to the currently configured ip/port. \end{DoxyCompactList}\item 
int \textbf{ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+set\+\_\+local\+\_\+host} (struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$xs, const char $\ast$local\+\_\+host)
\item 
int \textbf{ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+set\+\_\+local\+\_\+hosts} (struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$xs, const char $\ast$$\ast$local\+\_\+hosts, size\+\_\+t local\+\_\+host\+\_\+cnt)
\item 
int \textbf{ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+add\+\_\+local\+\_\+host} (struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$xs, const char $\ast$local\+\_\+host)
\item 
int \textbf{ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+del\+\_\+local\+\_\+host} (struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$xs, const char $\ast$local\+\_\+host)
\item 
bool \textbf{ ss7\+\_\+xua\+\_\+server\+\_\+set\+\_\+default\+\_\+local\+\_\+hosts} (struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$oxs)
\item 
void \textbf{ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+destroy} (struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$xs)
\end{DoxyCompactItemize}


\doxysubsection{Function Documentation}
\mbox{\label{osmo__ss7__xua__srv_8c_a318b39d0f350e34da5bd5b4d9a4a38fd}} 
\index{osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}!osmo\_ss7\_xua\_server\_add\_local\_host@{osmo\_ss7\_xua\_server\_add\_local\_host}}
\index{osmo\_ss7\_xua\_server\_add\_local\_host@{osmo\_ss7\_xua\_server\_add\_local\_host}!osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}}
\doxysubsubsection{osmo\_ss7\_xua\_server\_add\_local\_host()}
{\footnotesize\ttfamily int osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+add\+\_\+local\+\_\+host (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$}]{xs,  }\item[{const char $\ast$}]{local\+\_\+host }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+xua\+\_\+server\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+peer\+::host}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+peer\+::host\+\_\+cnt}, \textbf{ osmo\+\_\+xua\+\_\+server\+::local}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+peer\+\_\+add\+\_\+host()}, and \textbf{ osmo\+\_\+xua\+\_\+server\+::server}.



Referenced by \textbf{ DEFUN\+\_\+\+ATTR()}.

\mbox{\label{osmo__ss7__xua__srv_8c_abf0d6146779911d066a27685e262133f}} 
\index{osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}!osmo\_ss7\_xua\_server\_bind@{osmo\_ss7\_xua\_server\_bind}}
\index{osmo\_ss7\_xua\_server\_bind@{osmo\_ss7\_xua\_server\_bind}!osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}}
\doxysubsubsection{osmo\_ss7\_xua\_server\_bind()}
{\footnotesize\ttfamily int osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+bind (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$}]{xs }\end{DoxyParamCaption})}



Set the x\+UA server to bind/listen to the currently configured ip/port. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em xs} & x\+UA server to operate \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success, negative value on error. 
\end{DoxyReturn}


References \textbf{ osmo\+\_\+xua\+\_\+server\+::cfg}, \textbf{ osmo\+\_\+xua\+\_\+server\+::local}, \textbf{ osmo\+\_\+xua\+\_\+server\+::max\+\_\+instreams\+\_\+present}, \textbf{ osmo\+\_\+xua\+\_\+server\+::max\+\_\+instreams\+\_\+value}, \textbf{ osmo\+\_\+xua\+\_\+server\+::num\+\_\+ostreams\+\_\+present}, \textbf{ osmo\+\_\+xua\+\_\+server\+::num\+\_\+ostreams\+\_\+value}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+peer\+\_\+snprintf()}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+protocol\+\_\+vals}, \textbf{ osmo\+\_\+xua\+\_\+server\+::proto}, \textbf{ osmo\+\_\+xua\+\_\+server\+::sctp\+\_\+init}, and \textbf{ osmo\+\_\+xua\+\_\+server\+::server}.



Referenced by \textbf{ osmo\+\_\+sccp\+\_\+simple\+\_\+server\+\_\+on\+\_\+ss7\+\_\+id()}, and \textbf{ osmo\+\_\+ss7\+\_\+vty\+\_\+go\+\_\+parent()}.

\mbox{\label{osmo__ss7__xua__srv_8c_a5f5047c18892bd2842ce01e309787907}} 
\index{osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}!osmo\_ss7\_xua\_server\_create@{osmo\_ss7\_xua\_server\_create}}
\index{osmo\_ss7\_xua\_server\_create@{osmo\_ss7\_xua\_server\_create}!osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}}
\doxysubsubsection{osmo\_ss7\_xua\_server\_create()}
{\footnotesize\ttfamily struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+create (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$}]{inst,  }\item[{enum \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+protocol}}]{proto,  }\item[{uint16\+\_\+t}]{local\+\_\+port,  }\item[{const char $\ast$}]{local\+\_\+host }\end{DoxyParamCaption})}



create a new x\+UA server configured with given ip/port 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em ctx} & talloc allocation context \\
\hline
\mbox{\texttt{ in}}  & {\em proto} & protocol (x\+UA variant) to use \\
\hline
\mbox{\texttt{ in}}  & {\em local\+\_\+port} & local SCTP port to bind/listen to \\
\hline
\mbox{\texttt{ in}}  & {\em local\+\_\+host} & local IP address to bind/listen to (optional) \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
callee-\/allocated \doxyref{osmo\+\_\+xua\+\_\+server}{p.}{structosmo__xua__server} in case of success 
\end{DoxyReturn}


References \textbf{ osmo\+\_\+xua\+\_\+server\+::inst}, \textbf{ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+create2()}, \textbf{ osmo\+\_\+xua\+\_\+server\+::proto}, \textbf{ ss7\+\_\+default\+\_\+trans\+\_\+proto\+\_\+for\+\_\+asp\+\_\+proto()}, and \textbf{ osmo\+\_\+xua\+\_\+server\+::trans\+\_\+proto}.

\mbox{\label{osmo__ss7__xua__srv_8c_a4263d99d71c327e16853c4a857a2abc9}} 
\index{osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}!osmo\_ss7\_xua\_server\_create2@{osmo\_ss7\_xua\_server\_create2}}
\index{osmo\_ss7\_xua\_server\_create2@{osmo\_ss7\_xua\_server\_create2}!osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}}
\doxysubsubsection{osmo\_ss7\_xua\_server\_create2()}
{\footnotesize\ttfamily struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+create2 (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+instance} $\ast$}]{inst,  }\item[{int}]{trans\+\_\+proto,  }\item[{enum \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+protocol}}]{proto,  }\item[{uint16\+\_\+t}]{local\+\_\+port,  }\item[{const char $\ast$}]{local\+\_\+host }\end{DoxyParamCaption})}



create a new x\+UA server configured with given ip/port 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em inst} & SS7 Instance on which we operate \\
\hline
\mbox{\texttt{ in}}  & {\em trans\+\_\+proto} & transport protocol to use (one of IPPROTO\+\_\+$\ast$) \\
\hline
\mbox{\texttt{ in}}  & {\em proto} & protocol (x\+UA variant) to use \\
\hline
\mbox{\texttt{ in}}  & {\em local\+\_\+port} & local SCTP port to bind/listen to \\
\hline
\mbox{\texttt{ in}}  & {\em local\+\_\+host} & local IP address to bind/listen to (optional) \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
callee-\/allocated \doxyref{osmo\+\_\+xua\+\_\+server}{p.}{structosmo__xua__server} in case of success 
\end{DoxyReturn}


References \textbf{ osmo\+\_\+xua\+\_\+server\+::asp\+\_\+list}, \textbf{ osmo\+\_\+xua\+\_\+server\+::cfg}, \textbf{ osmo\+\_\+xua\+\_\+server\+::inst}, \textbf{ osmo\+\_\+xua\+\_\+server\+::list}, \textbf{ osmo\+\_\+xua\+\_\+server\+::local}, \textbf{ OSMO\+\_\+\+SS7\+\_\+\+ASP\+\_\+\+PROT\+\_\+\+SUA}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+protocol\+\_\+name()}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+protocol\+\_\+vals}, \textbf{ osmo\+\_\+ss7\+\_\+ensure\+\_\+sccp()}, \textbf{ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+set\+\_\+local\+\_\+host()}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+peer\+::port}, \textbf{ osmo\+\_\+xua\+\_\+server\+::proto}, \textbf{ osmo\+\_\+xua\+\_\+server\+::server}, \textbf{ ss7\+\_\+asp\+\_\+protocol\+\_\+check\+\_\+trans\+\_\+proto()}, \textbf{ ss7\+\_\+initialized}, \textbf{ osmo\+\_\+xua\+\_\+server\+::trans\+\_\+proto}, \textbf{ xua\+\_\+accept\+\_\+cb()}, and \textbf{ osmo\+\_\+ss7\+\_\+instance\+::xua\+\_\+servers}.



Referenced by \textbf{ DEFUN\+\_\+\+ATTR()}, \textbf{ osmo\+\_\+sccp\+\_\+simple\+\_\+server\+\_\+on\+\_\+ss7\+\_\+id()}, and \textbf{ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+create()}.

\mbox{\label{osmo__ss7__xua__srv_8c_a9ecc8a3d9ff669d07fedd11dccc67782}} 
\index{osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}!osmo\_ss7\_xua\_server\_del\_local\_host@{osmo\_ss7\_xua\_server\_del\_local\_host}}
\index{osmo\_ss7\_xua\_server\_del\_local\_host@{osmo\_ss7\_xua\_server\_del\_local\_host}!osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}}
\doxysubsubsection{osmo\_ss7\_xua\_server\_del\_local\_host()}
{\footnotesize\ttfamily int osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+del\+\_\+local\+\_\+host (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$}]{xs,  }\item[{const char $\ast$}]{local\+\_\+host }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+xua\+\_\+server\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+peer\+::host}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+peer\+::host\+\_\+cnt}, \textbf{ osmo\+\_\+xua\+\_\+server\+::local}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+peer\+\_\+del\+\_\+host()}, and \textbf{ osmo\+\_\+xua\+\_\+server\+::server}.



Referenced by \textbf{ DEFUN\+\_\+\+ATTR()}.

\mbox{\label{osmo__ss7__xua__srv_8c_a27173446ba8d82c930840a6e3a8202d4}} 
\index{osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}!osmo\_ss7\_xua\_server\_destroy@{osmo\_ss7\_xua\_server\_destroy}}
\index{osmo\_ss7\_xua\_server\_destroy@{osmo\_ss7\_xua\_server\_destroy}!osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}}
\doxysubsubsection{osmo\_ss7\_xua\_server\_destroy()}
{\footnotesize\ttfamily void osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+destroy (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$}]{xs }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+xua\+\_\+server\+::asp\+\_\+list}, \textbf{ osmo\+\_\+xua\+\_\+server\+::list}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+destroy()}, \textbf{ osmo\+\_\+xua\+\_\+server\+::server}, and \textbf{ osmo\+\_\+ss7\+\_\+asp\+::siblings}.



Referenced by \textbf{ DEFUN\+\_\+\+ATTR()}, and \textbf{ osmo\+\_\+sccp\+\_\+simple\+\_\+server\+\_\+on\+\_\+ss7\+\_\+id()}.

\mbox{\label{osmo__ss7__xua__srv_8c_ae97d2ba8d01c1819acad4f085c846bf8}} 
\index{osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}!osmo\_ss7\_xua\_server\_set\_local\_host@{osmo\_ss7\_xua\_server\_set\_local\_host}}
\index{osmo\_ss7\_xua\_server\_set\_local\_host@{osmo\_ss7\_xua\_server\_set\_local\_host}!osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}}
\doxysubsubsection{osmo\_ss7\_xua\_server\_set\_local\_host()}
{\footnotesize\ttfamily int osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+set\+\_\+local\+\_\+host (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$}]{xs,  }\item[{const char $\ast$}]{local\+\_\+host }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+set\+\_\+local\+\_\+hosts()}.



Referenced by \textbf{ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+create2()}, and \textbf{ ss7\+\_\+xua\+\_\+server\+\_\+set\+\_\+default\+\_\+local\+\_\+hosts()}.

\mbox{\label{osmo__ss7__xua__srv_8c_a6baf9122fc63dcf51ee9de5cc8fd7663}} 
\index{osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}!osmo\_ss7\_xua\_server\_set\_local\_hosts@{osmo\_ss7\_xua\_server\_set\_local\_hosts}}
\index{osmo\_ss7\_xua\_server\_set\_local\_hosts@{osmo\_ss7\_xua\_server\_set\_local\_hosts}!osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}}
\doxysubsubsection{osmo\_ss7\_xua\_server\_set\_local\_hosts()}
{\footnotesize\ttfamily int osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+set\+\_\+local\+\_\+hosts (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$}]{xs,  }\item[{const char $\ast$$\ast$}]{local\+\_\+hosts,  }\item[{size\+\_\+t}]{local\+\_\+host\+\_\+cnt }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+xua\+\_\+server\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+peer\+::host}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+peer\+::host\+\_\+cnt}, \textbf{ osmo\+\_\+xua\+\_\+server\+::local}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+peer\+\_\+set\+\_\+hosts()}, \textbf{ osmo\+\_\+xua\+\_\+server\+::server}, and \textbf{ ss7\+\_\+initialized}.



Referenced by \textbf{ DEFUN\+\_\+\+ATTR()}, and \textbf{ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+set\+\_\+local\+\_\+host()}.

\mbox{\label{osmo__ss7__xua__srv_8c_a9bffae77f1a675fbe61bd792d646c474}} 
\index{osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}!ss7\_xua\_server\_set\_default\_local\_hosts@{ss7\_xua\_server\_set\_default\_local\_hosts}}
\index{ss7\_xua\_server\_set\_default\_local\_hosts@{ss7\_xua\_server\_set\_default\_local\_hosts}!osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}}
\doxysubsubsection{ss7\_xua\_server\_set\_default\_local\_hosts()}
{\footnotesize\ttfamily bool ss7\+\_\+xua\+\_\+server\+\_\+set\+\_\+default\+\_\+local\+\_\+hosts (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+xua\+\_\+server} $\ast$}]{oxs }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+xua\+\_\+server\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+peer\+::host\+\_\+cnt}, \textbf{ osmo\+\_\+xua\+\_\+server\+::local}, \textbf{ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+set\+\_\+local\+\_\+host()}, and \textbf{ ss7\+\_\+ipv6\+\_\+sctp\+\_\+supported()}.



Referenced by \textbf{ osmo\+\_\+ss7\+\_\+vty\+\_\+go\+\_\+parent()}.

\mbox{\label{osmo__ss7__xua__srv_8c_ac53c7d59ea8e1bb4b855ac893ff7e407}} 
\index{osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}!xua\_accept\_cb@{xua\_accept\_cb}}
\index{xua\_accept\_cb@{xua\_accept\_cb}!osmo\_ss7\_xua\_srv.c@{osmo\_ss7\_xua\_srv.c}}
\doxysubsubsection{xua\_accept\_cb()}
{\footnotesize\ttfamily static int xua\+\_\+accept\+\_\+cb (\begin{DoxyParamCaption}\item[{struct osmo\+\_\+stream\+\_\+srv\+\_\+link $\ast$}]{link,  }\item[{int}]{fd }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



References \textbf{ osmo\+\_\+xua\+\_\+server\+::accept\+\_\+dyn\+\_\+reg}, \textbf{ osmo\+\_\+xua\+\_\+server\+::asp\+\_\+list}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+::cfg}, \textbf{ osmo\+\_\+xua\+\_\+server\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+::dyn\+\_\+allocated}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+::fi}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+peer\+::host}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+peer\+::host\+\_\+cnt}, \textbf{ osmo\+\_\+xua\+\_\+server\+::inst}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+::is\+\_\+server}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+::local}, \textbf{ osmo\+\_\+xua\+\_\+server\+::local}, \textbf{ LOGPASP}, \textbf{ M3\+UA\+\_\+\+MSG\+\_\+\+HEADROOM}, \textbf{ M3\+UA\+\_\+\+MSG\+\_\+\+SIZE}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+::name}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+find\+\_\+or\+\_\+create2()}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+peer\+\_\+set\+\_\+hosts()}, \textbf{ OSMO\+\_\+\+SS7\+\_\+\+ASP\+\_\+\+PROT\+\_\+\+IPA}, \textbf{ OSMO\+\_\+\+SS7\+\_\+\+ASP\+\_\+\+PROT\+\_\+\+M3\+UA}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+protocol\+\_\+vals}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+restart()}, \textbf{ OSMO\+\_\+\+SS7\+\_\+\+ASP\+\_\+\+ROLE\+\_\+\+SG}, \textbf{ OSMO\+\_\+\+XLM\+\_\+\+PRIM\+\_\+\+M\+\_\+\+SCTP\+\_\+\+ESTABLISH}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+\_\+peer\+::port}, \textbf{ osmo\+\_\+xua\+\_\+server\+::proto}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+::remote}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+::role}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+::server}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+::siblings}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+::sock\+\_\+name}, \textbf{ ss7\+\_\+asp\+\_\+apply\+\_\+peer\+\_\+primary\+\_\+address()}, \textbf{ ss7\+\_\+asp\+\_\+apply\+\_\+primary\+\_\+address()}, \textbf{ ss7\+\_\+asp\+\_\+find\+\_\+by\+\_\+socket\+\_\+addr()}, \textbf{ ss7\+\_\+asp\+\_\+ipa\+\_\+srv\+\_\+conn\+\_\+rx\+\_\+cb()}, \textbf{ ss7\+\_\+asp\+\_\+m3ua\+\_\+tcp\+\_\+srv\+\_\+conn\+\_\+rx\+\_\+cb()}, \textbf{ ss7\+\_\+asp\+\_\+xua\+\_\+srv\+\_\+conn\+\_\+closed\+\_\+cb()}, \textbf{ ss7\+\_\+asp\+\_\+xua\+\_\+srv\+\_\+conn\+\_\+rx\+\_\+cb()}, \textbf{ osmo\+\_\+xua\+\_\+server\+::trans\+\_\+proto}, \textbf{ XUA\+\_\+\+ASP\+\_\+\+E\+\_\+\+SCTP\+\_\+\+EST\+\_\+\+IND}, \textbf{ xua\+\_\+asp\+\_\+send\+\_\+xlm\+\_\+prim\+\_\+simple()}, \textbf{ osmo\+\_\+ss7\+\_\+asp\+::xua\+\_\+server}, and \textbf{ xua\+\_\+tcp\+\_\+segmentation\+\_\+cb()}.



Referenced by \textbf{ osmo\+\_\+ss7\+\_\+xua\+\_\+server\+\_\+create2()}.

