diff options
author | Álvaro Neira Ayuso <anayuso@sysmocom.de> | 2014-05-23 10:14:22 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-05-25 13:41:08 +0200 |
commit | 399b3fe1b4ab1a8d78ef5bf39d185b3defdf1b5e (patch) | |
tree | 5a59435c288698924cf51fe73f3d454e85b3f699 /include/osmo-bts/oml.h | |
parent | 69925cef390289cf9eb0db283230953f82d9617c (diff) |
sysmobts: Move the function check_oml_msg to oml file
This patch move this function to oml and we can use in
the future for doing a sanity check to all the received
OML message.
Signed-off-by: Alvaro Neira Ayuso <anayuso@sysmocom.de>
Diffstat (limited to 'include/osmo-bts/oml.h')
-rw-r--r-- | include/osmo-bts/oml.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/osmo-bts/oml.h b/include/osmo-bts/oml.h index 4281fd32..242f5ecf 100644 --- a/include/osmo-bts/oml.h +++ b/include/osmo-bts/oml.h @@ -1,9 +1,18 @@ #ifndef _OML_H #define _OML_H +enum oml_message_type { + OML_MSG_TYPE_ETSI, + OML_MSG_TYPE_IPA, + OML_MSG_TYPE_OSMO, +}; + int oml_init(void); int down_oml(struct gsm_bts *bts, struct msgb *msg); +int oml_check_manuf(struct abis_om_hdr *hdr, size_t msg_size); +int oml_check_msg(struct msgb *msg); + struct msgb *oml_msgb_alloc(void); int oml_send_msg(struct msgb *msg, int is_mauf); int oml_mo_send_msg(struct gsm_abis_mo *mo, struct msgb *msg, uint8_t msg_type); |