summaryrefslogtreecommitdiff
path: root/cesar/cp2/msg/inc/cm_mme_error.h
blob: cae087fafcebe698437a1eb9c52f654eb037dd5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef cp2_msg_inc_cm_mme_error_h
#define cp2_msg_inc_cm_mme_error_h
/* Cesar project {{{
 *
 * Copyright (C) 2008 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    cp2/msg/inc/cm_mme_error.h
 * \brief   CM_MME_ERROR messages.
 * \ingroup cp2_msg
 */

/** CM_MME_ERROR.IND reason. */
enum cp_msg_cm_mme_error_ind_reason_t
{
    CP_MSG_CM_MME_ERROR_IND_REASON_MME_NOT_SUPPORTED,
    CP_MSG_CM_MME_ERROR_IND_REASON_INVALID_MME_FIELDS,
    CP_MSG_CM_MME_ERROR_IND_REASON_UNSUPPORTED_FEATURE,
    CP_MSG_CM_MME_ERROR_IND_REASON_NB
};

/** Data associated with a CM_MME_ERROR.IND message. */
struct cp_msg_cm_mme_error_ind_t
{
    /** Reason of error. */
    enum cp_msg_cm_mme_error_ind_reason_t reason;
    /** Version of received MME. */
    u8 rx_mmv;
    /** MMTYPE of received MME. */
    cp_mmtype_t rx_mmtype;
    /** Offset of first invalid field. */
    uint offset;
};
typedef struct cp_msg_cm_mme_error_ind_t cp_msg_cm_mme_error_ind_t;

#endif /* cp2_msg_inc_cm_mme_error_h */