Dependent functions: M3uaGetPsCfg, M3UAInitPsCfg, M3uaSetPsCfg
The following M3UAPsCfg structure contains M3UA peer server configuration parameters. Bold text indicates fields you can set. Unbolded fields are either unused or for internal use only. They are set to correct values by M3uaInitPsCfg and must not be overridden.
typedef struct _M3UAPsCfg /* Peer Server configuration */
{
U8 nwkId; /* Network ID */
U8 mode; /* Active/Standby or load sharing */
U8 loadShareMode; /* Round robin, SLS mapping etc. */
Bool reqAvail; /* TRUE if required for SPMC availability */
U32 psId; /* Peer Server ID */
U32 routCtx; /* Routing Context */
U16 nmbActPspReqd; /* number of active PSPs sharing load */
U16 nmbPsp; /* number of entries in PSP list */
U16 psp[M3UA_MAX_PSP]; /* ordered list of PSPs */
Bool lclFlag; /* PS type is local if set */
U8 spare1; /* alignment */
U16 spare2; /* alignment */
} M3UAPsCfg;
The following table describes the fields in the M3UAPsCfg structure that you can set:
Field |
Type |
Default |
Re-configurable? |
Description |
nwkId |
U8 |
1 |
No |
Peer server network identifier. |
mode |
U8 |
M3UA_MODE_ACTSTANDBY |
Yes |
Indicates whether the peer signaling process is in active/standby mode or load sharing mode. Valid values are: M3UA_MODE_ACTSTANDBY = Active/standby mode M3UA_MODE_LOADSHARE = Load sharing mode |
loadShareMode |
U8 |
M3UA_LOADSH_RNDROBIN |
No |
(Remote peer server only, used only if mode = M3UA_MODE_LOADSHARE) Type of load sharing. Valid values are: M3UA_LOADSH_RNDROBIN = Round robin. M3UA_LOADSH_SLS = By link selector. |
psId |
U32 |
1 |
No |
Peer server identifier. |
routCtx |
U32 |
0 |
Yes |
(Local peer server only) Routing context. |
nmbPsp |
U16 |
1 |
Yes |
Total number of peer signaling processes defined for this peer server. |
psp[M3UA_MAX_PSP] |
U16 |
Psp[0] = 1 |
Yes, but may affect service |
An ordered list of peer signaling processes referenced by pspId. Preference is given to earlier entries when performing failover and failback operations. |
lclFlag |
Bool |
FALSE |
No |
Indicates whether the peer server is local or remote: TRUE = Local peer server FALSE = Remote peer server |