diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-05-25 16:21:35 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-07-31 16:58:26 +0200 |
commit | 0655cac6f1fbb0a669f064780a171a363ce8ef83 (patch) | |
tree | 17bda895ab0b476e73d74e9fdb6deb21dd38689b /include/osmo-bts/msg_utils.h | |
parent | b05d72d21b8cc91126cf45525f9010df6142e1c2 (diff) |
sysmobts: Verify the structure of IPA and OML messages
Extend the router to verify that the message received is
properly encoded. The code can deal with the basic structure
of ETSI OML and vendor specific messages for ip.access and
the osmocom project.
Diffstat (limited to 'include/osmo-bts/msg_utils.h')
-rw-r--r-- | include/osmo-bts/msg_utils.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/osmo-bts/msg_utils.h b/include/osmo-bts/msg_utils.h new file mode 100644 index 00000000..f63c0964 --- /dev/null +++ b/include/osmo-bts/msg_utils.h @@ -0,0 +1,20 @@ +/* + * Routines to check the structurally integrity of messages + */ + +#pragma once + +struct msgb; + +/** + * Classification of OML message. ETSI for plain GSM 12.21 + * messages and IPA/Osmo for manufacturer messages. + */ +enum { + OML_MSG_TYPE_ETSI, + OML_MSG_TYPE_IPA, + OML_MSG_TYPE_OSMO, +}; + +int msg_verify_ipa_structure(struct msgb *msg); +int msg_verify_oml_structure(struct msgb *msg); |