\doxysection{ss7\+\_\+as.\+h} \label{ss7__as_8h_source}\index{src/ss7\_as.h@{src/ss7\_as.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 }} \DoxyCodeLine{4 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{5 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{6 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{7 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{8 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{9 } \DoxyCodeLine{10 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{11 } \DoxyCodeLine{12 \textcolor{preprocessor}{\#include "{}ss7\_internal.h"{}}} \DoxyCodeLine{13 } \DoxyCodeLine{14 \textcolor{comment}{/***********************************************************************}} \DoxyCodeLine{15 \textcolor{comment}{ * SS7 Application Server}} \DoxyCodeLine{16 \textcolor{comment}{ ***********************************************************************/}} \DoxyCodeLine{17 } \DoxyCodeLine{18 \textcolor{keyword}{struct }osmo\_ss7\_instance;} \DoxyCodeLine{19 \textcolor{keyword}{struct }osmo\_ss7\_asp;} \DoxyCodeLine{20 } \DoxyCodeLine{21 \textcolor{keyword}{enum} osmo\_ss7\_as\_patch\_sccp\_mode \{} \DoxyCodeLine{22 OSMO\_SS7\_PATCH\_NONE, \textcolor{comment}{/* no patching of SCCP */}} \DoxyCodeLine{23 OSMO\_SS7\_PATCH\_BOTH, \textcolor{comment}{/* patch both OPC and DPC into SCCP addresses */}} \DoxyCodeLine{24 \};} \DoxyCodeLine{25 } \DoxyCodeLine{26 \textcolor{keyword}{enum} ss7\_as\_ctr \{} \DoxyCodeLine{27 SS7\_AS\_CTR\_RX\_MSU\_TOTAL,} \DoxyCodeLine{28 SS7\_AS\_CTR\_TX\_MSU\_TOTAL,} \DoxyCodeLine{29 \};} \DoxyCodeLine{30 } \DoxyCodeLine{31 \textcolor{keyword}{struct }osmo\_ss7\_as \{} \DoxyCodeLine{33 \textcolor{keyword}{struct }llist\_head list;} \DoxyCodeLine{34 \textcolor{keyword}{struct }osmo\_ss7\_instance *inst;} \DoxyCodeLine{35 } \DoxyCodeLine{37 \textcolor{keyword}{struct }osmo\_fsm\_inst *fi;} \DoxyCodeLine{38 } \DoxyCodeLine{40 \textcolor{keywordtype}{bool} rkm\_dyn\_allocated;} \DoxyCodeLine{41 } \DoxyCodeLine{43 \textcolor{keywordtype}{bool} simple\_client\_allocated;} \DoxyCodeLine{44 } \DoxyCodeLine{46 \textcolor{keyword}{struct }rate\_ctr\_group *ctrg;} \DoxyCodeLine{47 } \DoxyCodeLine{48 \textcolor{keyword}{struct }\{} \DoxyCodeLine{49 \textcolor{keywordtype}{char} *name;} \DoxyCodeLine{50 \textcolor{keywordtype}{char} *description;} \DoxyCodeLine{51 \textcolor{keyword}{enum} osmo\_ss7\_asp\_protocol proto;} \DoxyCodeLine{52 \textcolor{keyword}{struct }osmo\_ss7\_routing\_key routing\_key;} \DoxyCodeLine{53 \textcolor{keyword}{enum} osmo\_ss7\_as\_traffic\_mode mode;} \DoxyCodeLine{54 \textcolor{comment}{/* traffic mode was configured by VTY / config file */}} \DoxyCodeLine{55 \textcolor{keywordtype}{bool} mode\_set\_by\_vty;} \DoxyCodeLine{56 \textcolor{comment}{/* traffic mode was configured by RKM (routing key management) or first ASPAC */}} \DoxyCodeLine{57 \textcolor{keywordtype}{bool} mode\_set\_by\_peer;} \DoxyCodeLine{58 uint32\_t recovery\_timeout\_msec;} \DoxyCodeLine{59 uint8\_t qos\_class;} \DoxyCodeLine{60 \textcolor{keyword}{struct }\{} \DoxyCodeLine{61 uint32\_t dpc;} \DoxyCodeLine{62 \textcolor{keyword}{enum} osmo\_ss7\_as\_patch\_sccp\_mode sccp\_mode;} \DoxyCodeLine{63 \} pc\_override;} \DoxyCodeLine{64 } \DoxyCodeLine{65 \textcolor{keyword}{struct }osmo\_ss7\_asp *asps[16];} \DoxyCodeLine{66 uint8\_t last\_asp\_idx\_sent; \textcolor{comment}{/* used for load-\/sharing traffic mode (round robin implementation) */}} \DoxyCodeLine{67 \} cfg;} \DoxyCodeLine{68 \};} \DoxyCodeLine{69 } \DoxyCodeLine{70 \textcolor{preprocessor}{\#define LOGPAS(as, subsys, level, fmt, args ...) \(\backslash\)}} \DoxyCodeLine{71 \textcolor{preprocessor}{ \_LOGSS7((as)-\/>inst, subsys, level, "{}as-\/\%s: "{}} fmt, (as)-\/>cfg.name, \#\# args)} \end{DoxyCode}