summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-11 21:05:10 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-12 12:50:01 +0100
commitb8962797a5bdbfbf69c294db455654edde8d0e70 (patch)
treed730f6f8903b70e8d0c6ba8b2139cc37445e989a
parent2127f196723714451e742836a75a653f9e930733 (diff)
m2ua: Add enum values for the parameters of the individual messages
-rw-r--r--include/m2ua/m2ua_types.h137
1 files changed, 137 insertions, 0 deletions
diff --git a/include/m2ua/m2ua_types.h b/include/m2ua/m2ua_types.h
index 387e917..39180de 100644
--- a/include/m2ua/m2ua_types.h
+++ b/include/m2ua/m2ua_types.h
@@ -157,5 +157,142 @@ struct m2ua_parameter_hdr {
} __attribute__((packed));
+/**
+ * 3.3.1.5 State Request
+ */
+enum {
+ M2UA_STATUS_LPO_SET, /* Request local processor outage */
+ M2UA_STATUS_LPO_CLEAR, /* Request local processor outage recovered */
+ M2UA_STATUS_EMER_SET, /* Request emergency alignment */
+ M2UA_STATUS_EMER_CLEAR, /* Request normal alignment (cancel emergency) */
+ M2UA_STATUS_FLUSH_BUFFERS, /* Flush or clear receive, transmit and retransmit queues */
+ M2UA_STATUS_CONTINUE, /* Continue or Resume */
+ M2UA_STATUS_CLEAR_RTB, /* Clear the retransmit queue */
+ M2UA_STATUS_AUDIT, /* Audit state of link */
+ M2UA_STATUS_CONG_CLEAR, /* Congestion cleared */
+ M2UA_STATUS_CONG_ACCEPT, /* Congestion accept */
+ M2UA_STATUS_CONG_DISCARD, /* Congestion discard */
+};
+
+/**
+ * 3.3.1.7 State Indication
+ */
+enum {
+ __m2ua_event_dummy,
+ M2UA_EVENT_RPO_ENTER, /* Remote entered processor outage */
+ M2UA_EVENT_RPO_EXIT, /* Remote exited processor outage */
+ M2UA_EVENT_LPO_ENTER, /* Link entered processor outage */
+ M2UA_EVENT_LPO_EXIT, /* Link exited processor outage */
+};
+
+/**
+ * 3.3.1.8 Congestion Indication
+ */
+enum {
+ M2UA_LEVEL_NONE, /* No congestion */
+ M2UA_LEVEL_1, /* Congestion Level 1 */
+ M2UA_LEVEL_2, /* Congestion Level 2 */
+ M2UA_LEVEL_3, /* Congestion Level 3 */
+};
+
+/**
+ * 3.3.1.9 Retrieval Request
+ */
+enum {
+ M2UA_ACTION_RTRV_BSN, /* Retrieve the backward sequence number */
+ M2UA_ACTION_RTRV_MSGS, /* Retrieve the PDUs from the transmit and retransmit queues. */
+};
+
+/**
+ * 3.3.1.10 Retrieval Confirm
+ */
+enum {
+ M2UA_RESULT_SUCCESS, /* Action successful */
+ M2UA_RESULT_FAILURE, /* Action failed */
+};
+
+/**
+ * 3.3.2.7 ASP Active (ASPAC)
+ */
+enum {
+ M2UA_TRA_OVERRIDE = 1, /* Override */
+ M2UA_TRA_LOAD_SHARE = 2, /* Load-share */
+ M2UA_TRA_BROADCAST = 3, /* Broadcast */
+};
+
+/**
+ * 3.3.3.1 Error (ERR)
+ */
+enum {
+ __m2ua_err_unused,
+ M2UA_ERR_INV_VER, /* Invalid Version */
+ M2UA_ERR_INV_INT_IDENT, /* Invalid Interface Identifier */
+ M2UA_ERR_UNS_MSG_CLASS, /* Unsupported Message Class */
+ M2UA_ERR_UNS_MSG_TYPE, /* Unsupported Message Type */
+ M2UA_ERR_UNS_TRA_MODE, /* Unsupported Traffic Handling Mode */
+ M2UA_ERR_UNE_MSG, /* Unexpected Message */
+ M2UA_ERR_PROTO_ERROR, /* Protocol Error */
+ M2UA_ERR_UNS_INT_IDENT_T, /* Unsupported Interface Identifier Type */
+ M2UA_ERR_INV_STR_IDENT, /* Invalid Stream Identifier */
+ M2UA_ERR_UNUSED1, /* Unused in M2UA */
+ M2UA_ERR_UNUSED2, /* Unused in M2UA */
+ M2UA_ERR_UNUSED3, /* Unused in M2UA */
+ M2UA_ERR_REFUSED, /* Refused - Management Blocking */
+ M2UA_ERR_ASP_IDENT_REQ, /* ASP Identifier Required */
+ M2UA_ERR_INV_ASP_IDENT, /* Invalid ASP Identifier */
+ M2UA_ERR_ASP_ACT_FOR_IDENT, /* ASP Active for Interface Identifier(s) */
+ M2UA_ERR_INV_PARAM_VAL, /* Invalid Parameter Value */
+ M2UA_ERR_PARAM_FIELD_ERR, /* Parameter Field Error */
+ M2UA_ERR_UNEXP_PARAM, /* Unexpected Parameter */
+ M2UA_ERR_UNUSED4, /* Unused in M2UA */
+ M2UA_ERR_UNUSED5, /* Unused in M2UA */
+ M2UA_ERR_MISSING_PARAM, /* Missing Parameter */
+};
+
+/**
+ * 3.3.3.2 Notify (NTFY)
+ */
+enum {
+ M2UA_STP_AS_STATE_CHG = 1, /* Application Server state change (AS_State_Change) */
+ M2UA_STP_OTHER = 2, /* Other */
+};
+
+enum {
+ /* this is for M2UA_STP_AS_STATE_CHG */
+ M2UA_STP_AS_INACTIVE = 2, /* Application Server Inactive (AS_Inactive) */
+ M2UA_STP_AS_ACTIVE = 3, /* Application Server Active (AS_Active) */
+ M2UA_STP_AS_PENDING = 4, /* Application Server Pending (AS_Pending) */
+
+ /* this is for the other */
+ M2UA_STP_O_INSUFF_ASP_RES = 1, /* Insufficient ASP resources active in AS */
+ M2UA_STP_O_ALT_ASP_ACTIVR = 2, /* Alternate ASP Active */
+ M2UA_STP_O_ASP_FAILURE = 3, /* ASP Failure */
+};
+
+/**
+ * 3.3.4.3 Registration Response (REG RSP)
+ */
+enum {
+ M2UA_REG_SUCC, /* Successfully Registered */
+ M2UA_REG_ERR_UNK, /* Error - Unknown */
+ M2UA_REG_ERR_INV_SDLI, /* Error - Invalid SDLI */
+ M2UA_REG_ERR_INV_SDTI, /* Error - Invalid SDTI */
+ M2UA_REG_ERR_INV_LNK_KEY, /* Error - Invalid Link Key */
+ M2UA_REG_ERR_PERM_DENIED, /* Error - Permission Denied */
+ M2UA_REG_ERR_OVERLAP_KEY, /* Error - Overlapping (Non-unique) Link Key */
+ M2UA_REG_ERR_LNK_KEY_NOT_PROV, /* Error - Link Key not Provisioned */
+ M2UA_REG_ERR_INSUFF_RES, /* Error - Insufficient Resources */
+};
+
+/**
+ * 3.3.4.4 De-Registration Response (DEREG RSP)
+ */
+enum {
+ M2UA_DEREG_SUCC, /* Successfully De-registered */
+ M2UA_DEREG_ERR_UNK, /* Error - Unknown */
+ M2UA_DEREG_ERR_INV_IDENT, /* Error - Invalid Interface Identifier */
+ M2UA_DEREG_ERR_PERM_DENIED, /* Error - Permission Denied */
+ M2UA_DEREG_ERR_NOT_REG, /* Error - Not Registered */
+};
#endif