aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/msg_utils.h
blob: f63c09647f2f3b25f888a9572678f7aa2caa0d63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);