diff options
author | Álvaro Neira Ayuso <anayuso@sysmocom.de> | 2014-05-17 10:45:50 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-05-18 09:41:29 +0200 |
commit | c6ab90b27006ff2d1fdfb0b1d7fc01e1dd4a696d (patch) | |
tree | 46bb0d2443ef44dfdc1eaad5695bfc43424187ea /src/osmo-bts-sysmo/utils.h | |
parent | 73d9d3af6cd79e674cb326d814dbb50134f76f64 (diff) |
sysmobts: Add beginnings of an OML router and create Failure Messages in the sysmobts-manager
Make the sysmobts listen for OML messages on a Unix Domain Socket.
Messages passing a sanity check will be forwarded to the BSC.
In case the sysmobts-mgr detects a temperature above or below
temperature threshold an OML failure message will be sent
to the BTS.
[moved confinfo into the #ifdef BUILD_SBTS2050]
Signed-off-by: Alvaro Neira Ayuso <anayuso@sysmocom.de>
Diffstat (limited to 'src/osmo-bts-sysmo/utils.h')
-rw-r--r-- | src/osmo-bts-sysmo/utils.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/utils.h b/src/osmo-bts-sysmo/utils.h index aef774ca..85a5e880 100644 --- a/src/osmo-bts-sysmo/utils.h +++ b/src/osmo-bts-sysmo/utils.h @@ -13,4 +13,20 @@ int sysmobts_select_femto_band(struct gsm_bts_trx *trx, uint16_t arfcn); int sysmobts_get_nominal_power(struct gsm_bts_trx *trx); int sysmobts_get_power_trx(struct gsm_bts_trx *trx); + +struct msgb; + +enum manuf_type_id { + IPACCESS_MANUF_ID, + OSMOCOM_MANUF_ID, +}; + +static const char osmocom_magic[] = "org.osmocom"; +static const char ipaccess_magic[] = "com.ipaccess"; + +int add_manufacturer_id_label(struct msgb *msg, int manuf_type_id); + +void prepend_oml_ipa_header(struct msgb *msg); + +int check_oml_msg(struct msgb *msg); #endif |