s6a_messages_types.h 3.45 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 S6A_MESSAGES_TYPES_H_
#define S6A_MESSAGES_TYPES_H_

32
33
34
#define AUTS_LENGTH 14

typedef struct s6a_update_location_req_s {
Cedric Roux's avatar
Cedric Roux committed
35
#define SKIP_SUBSCRIBER_DATA (0x1)
36
    unsigned skip_subscriber_data:1;
Cedric Roux's avatar
Cedric Roux committed
37
#define INITIAL_ATTACH       (0x1)
Cedric Roux's avatar
   
Cedric Roux committed
38
39
    unsigned initial_attach:1;

40
41
42
43
44
45
46
47
48
49
50
    char       imsi[IMSI_DIGITS_MAX + 1]; // username
    uint8_t    imsi_length;               // username

    plmn_t     visited_plmn;              // visited plmn id
    rat_type_t rat_type;                  // rat type

    // missing                           // origin host
    // missing                           // origin realm

    // missing                           // destination host
    // missing                           // destination realm
Cedric Roux's avatar
   
Cedric Roux committed
51
52
} s6a_update_location_req_t;

53
typedef struct s6a_update_location_ans_s {
54
55
56
57
58
59
60
61
62
    s6a_result_t        result;              // Result of the update location request procedure
    subscription_data_t subscription_data;   // subscriber status,
                                             // Maximum Requested Bandwidth Uplink, downlink
                                             // access restriction data
                                             // msisdn
    apn_config_profile_t  apn_config_profile;// APN configuration profile

    network_access_mode_t access_mode;
    rau_tau_timer_t       rau_tau_timer;
Cedric Roux's avatar
Cedric Roux committed
63
    char    imsi[IMSI_DIGITS_MAX + 1];
Cedric Roux's avatar
   
Cedric Roux committed
64
65
    uint8_t imsi_length;

66

Cedric Roux's avatar
   
Cedric Roux committed
67
68
} s6a_update_location_ans_t;

69
typedef struct s6a_auth_info_req_s {
Cedric Roux's avatar
Cedric Roux committed
70
    char    imsi[IMSI_DIGITS_MAX + 1];
Cedric Roux's avatar
   
Cedric Roux committed
71
72
73
74
    uint8_t imsi_length;
    plmn_t  visited_plmn;
    /* Number of vectors to retrieve from HSS, should be equal to one */
    uint8_t nb_of_vectors;
75
76
77
78
79
80
81

    /* Bit to indicate that USIM has requested a re-synchronization of SQN */
    unsigned re_synchronization:1;
    /* AUTS to provide to AUC.
     * Only present and interpreted if re_synchronization == 1.
     */
    uint8_t auts[AUTS_LENGTH];
Cedric Roux's avatar
   
Cedric Roux committed
82
83
} s6a_auth_info_req_t;

84
typedef struct s6a_auth_info_ans_s {
Cedric Roux's avatar
Cedric Roux committed
85
    char       imsi[IMSI_DIGITS_MAX + 1];
Cedric Roux's avatar
   
Cedric Roux committed
86
87
88
89
90
91
92
93
94
    uint8_t    imsi_length;

    /* Result of the authentication information procedure */
    s6a_result_t result;
    /* Authentication info containing the vector(s) */
    authentication_info_t auth_info;
} s6a_auth_info_ans_t;

#endif /* S6A_MESSAGES_TYPES_H_ */