From 399b3fe1b4ab1a8d78ef5bf39d185b3defdf1b5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Neira=20Ayuso?= Date: Fri, 23 May 2014 10:14:22 +0200 Subject: 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 --- include/osmo-bts/oml.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') 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); -- cgit v1.2.3