[MERGED] libosmocore[master]: OML: add external alerts

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Jan 25 11:49:08 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: OML: add external alerts
......................................................................


OML: add external alerts

Add special cause for alerts produced by external processes.

Change-Id: Idd7ee085321f8172c72ecfdba320186049f4d988
Related: OS#1615
---
M include/osmocom/gsm/protocol/gsm_12_21.h
M src/gsm/abis_nm.c
2 files changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/include/osmocom/gsm/protocol/gsm_12_21.h b/include/osmocom/gsm/protocol/gsm_12_21.h
index 5daab42..d6e8c11 100644
--- a/include/osmocom/gsm/protocol/gsm_12_21.h
+++ b/include/osmocom/gsm/protocol/gsm_12_21.h
@@ -275,6 +275,8 @@
 	OSMO_EVT_MIN_PAG_TAB_FULL	= 0x0401,
 	/* Warning causes */
 	OSMO_EVT_WARN_SW_WARN		= 0x0001,
+	/* External causes */
+	OSMO_EVT_EXT_ALARM		= 0xfeed,
 };
 
 extern const struct value_string abis_mm_event_cause_names[];
diff --git a/src/gsm/abis_nm.c b/src/gsm/abis_nm.c
index 9839d29..10aae9a 100644
--- a/src/gsm/abis_nm.c
+++ b/src/gsm/abis_nm.c
@@ -161,6 +161,7 @@
 	{ OSMO_EVT_MAJ_NET_CONGEST,	"Network congestion" },
 	{ OSMO_EVT_MIN_PAG_TAB_FULL,	"Paging table full" },
 	{ OSMO_EVT_WARN_SW_WARN,	"Software warning" },
+	{ OSMO_EVT_EXT_ALARM,		"External alarm" },
 	{ 0, NULL }
 };
 

-- 
To view, visit https://gerrit.osmocom.org/1571
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Idd7ee085321f8172c72ecfdba320186049f4d988
Gerrit-PatchSet: 2
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list