s1ap_messages_types.h 2.86 KB
Newer Older
gauthier's avatar
Licence    
gauthier committed
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
/*******************************************************************************
    OpenAirInterface
    Copyright(c) 1999 - 2014 Eurecom

    OpenAirInterface is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.


    OpenAirInterface is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with OpenAirInterface.The full GNU General Public License is
   included in this distribution in the file called "COPYING". If not,
   see <http://www.gnu.org/licenses/>.

  Contact Information
  OpenAirInterface Admin: openair_admin@eurecom.fr
  OpenAirInterface Tech : openair_tech@eurecom.fr
  OpenAirInterface Dev  : openair4g-devel@eurecom.fr

  Address      : Eurecom, Compus SophiaTech 450, route des chappes, 06451 Biot, France.

 *******************************************************************************/
Cedric Roux's avatar
   
Cedric Roux committed
29
30
31
#ifndef S1AP_MESSAGES_TYPES_H_
#define S1AP_MESSAGES_TYPES_H_

32
33
34
#define S1AP_ENB_DEREGISTERED_IND(mSGpTR) (mSGpTR)->ittiMsg.s1ap_eNB_deregistered_ind
#define S1AP_DEREGISTER_UE_REQ(mSGpTR)    (mSGpTR)->ittiMsg.s1ap_deregister_ue_req

Cedric Roux's avatar
   
Cedric Roux committed
35
typedef struct s1ap_initial_ue_message_s {
36
37
38
    unsigned     eNB_ue_s1ap_id:24;
    uint32_t     mme_ue_s1ap_id;
    cgi_t        e_utran_cgi;
Cedric Roux's avatar
   
Cedric Roux committed
39
40
41
} s1ap_initial_ue_message_t;

typedef struct s1ap_initial_ctxt_setup_req_s {
42
43
    unsigned                eNB_ue_s1ap_id:24;
    uint32_t                mme_ue_s1ap_id;
Cedric Roux's avatar
   
Cedric Roux committed
44
45

    /* Key eNB */
46
    uint8_t                 keNB[32];
Cedric Roux's avatar
   
Cedric Roux committed
47

48
49
    ambr_t                  ambr;
    ambr_t                  apn_ambr;
Cedric Roux's avatar
   
Cedric Roux committed
50
51

    /* EPS bearer ID */
52
    unsigned                ebi:4;
Cedric Roux's avatar
   
Cedric Roux committed
53
54
55
56
57
58
59
60

    /* QoS */
    qci_t                   qci;
    priority_level_t        prio_level;
    pre_emp_vulnerability_t pre_emp_vulnerability;
    pre_emp_capability_t    pre_emp_capability;

    /* S-GW TEID for user-plane */
61
    Teid_t                  teid;
Cedric Roux's avatar
   
Cedric Roux committed
62
    /* S-GW IP address for User-Plane */
63
    ip_address_t            s_gw_address;
Cedric Roux's avatar
   
Cedric Roux committed
64
65
66
} s1ap_initial_ctxt_setup_req_t;

typedef struct s1ap_ue_cap_ind_s {
67
68
69
70
    unsigned  eNB_ue_s1ap_id:24;
    uint32_t  mme_ue_s1ap_id;
    uint8_t   radio_capabilities[100];
    uint32_t  radio_capabilities_length;
Cedric Roux's avatar
   
Cedric Roux committed
71
72
} s1ap_ue_cap_ind_t;

73
74
75
76
77
78
79
80
81
82
#define S1AP_ITTI_UE_PER_DEREGISTER_MESSAGE 20
typedef struct s1ap_eNB_deregistered_ind_s {
    uint8_t  nb_ue_to_deregister;
    uint32_t mme_ue_s1ap_id[S1AP_ITTI_UE_PER_DEREGISTER_MESSAGE];
} s1ap_eNB_deregistered_ind_t;

typedef struct s1ap_deregister_ue_req_s {
    uint32_t mme_ue_s1ap_id;
} s1ap_deregister_ue_req_t;

Cedric Roux's avatar
   
Cedric Roux committed
83
#endif /* S1AP_MESSAGES_TYPES_H_ */