network.h 3.4 KB
Newer Older
gauthier's avatar
 
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
29
30
31
32
/*****************************************************************************
Source    network.h

Version   0.1

Date    2013/03/26

Product   USIM data generator

Subsystem PLMN network operators

Author    Frederic Maurel

Description Defines a list of PLMN network operators

*****************************************************************************/
#ifndef __NETWORK_H__
#define __NETWORK_H__

#include "commonDef.h"
#include "networkDef.h"

/****************************************************************************/
/*********************  G L O B A L    C O N S T A N T S  *******************/
/****************************************************************************/
/*
 * PLMN network operator record index
 */
#define TEST1 0
#define SFR1  1
#define SFR2  2
#define SFR3  3
33
34
35
36
37
38
39
40
#define OAI_LTEBOX 4
#define TM1   5
#define FCT1  6
#define VDF1  7
#define VDF2  8
#define VDF3  9
#define VDF4  10
#define VDF5  11
gauthier's avatar
 
gauthier committed
41
42


43
#define SELECTED_PLMN OAI_LTEBOX //SFR1
gauthier's avatar
 
gauthier committed
44
45
46
47
48

#define TEST_PLMN {0,0,0x0f,1,1,0}  // 00101
#define SFR_PLMN_1  {0,2,0x0f,8,0,1}  // 20810
#define SFR_PLMN_2  {0,2,0x0f,8,1,1}  // 20811
#define SFR_PLMN_3  {0,2,0x0f,8,3,1}  // 20813
49
#define OAI_LTEBOX_PLMN  {0,2,0x0f,8,3,9}  //20893
gauthier's avatar
 
gauthier committed
50
51
52
53
54
55
56
57
#define TM_PLMN_1   {1,3,0,0,8,2}       // 310280
#define FCT_PLMN_1  {1,3,8,0,2,0}       // 310028
#define VDF_PLMN_1  {2,2,0x0f,2,0,1}  // 22210
#define VDF_PLMN_2  {1,2,0x0f,4,0x0f,1} // 2141
#define VDF_PLMN_3  {1,2,0x0f,4,0x0f,6} // 2146
#define VDF_PLMN_4  {6,2,0x0f,2,0x0f,2} // 2622
#define VDF_PLMN_5  {6,2,0x0f,2,0x0f,4} // 2624

58

gauthier's avatar
 
gauthier committed
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/****************************************************************************/
/************************  G L O B A L    T Y P E S  ************************/
/****************************************************************************/

/*
 * PLMN network operator record
 */
typedef struct {
  unsigned int num;
  plmn_t plmn;
  char fullname[NET_FORMAT_LONG_SIZE + 1];
  char shortname[NET_FORMAT_SHORT_SIZE + 1];
  tac_t tac_start;
  tac_t tac_end;
} network_record_t;


/****************************************************************************/
/********************  G L O B A L    V A R I A B L E S  ********************/
/****************************************************************************/

/*
 * The list of PLMN network operator records
 */
network_record_t network_records[] = {
  {00101, TEST_PLMN, "Test network",     "OAI4G",     0x0001, 0xfffd},
  {20810, SFR_PLMN_1, "SFR France",      "SFR",       0x0001, 0xfffd},
  {20811, SFR_PLMN_2, "SFR France",      "SFR",       0x0001, 0xfffd},
  {20813, SFR_PLMN_3, "SFR France",      "SFR",       0x0001, 0xfffd},
88
  {20893, OAI_LTEBOX_PLMN, "OAI LTEBOX",   "OAIALU",  0x0001, 0xfffd},
gauthier's avatar
 
gauthier committed
89
90
91
92
93
94
95
96
97
98
99
100
101
102
  {310280,TM_PLMN_1,  "T-Mobile USA",    "T-Mobile",  0x0001, 0xfffd},
  {310028,FCT_PLMN_1, "FICTITIOUS USA",  "FICTITIO",  0x0001, 0xfffd},
  {22210, VDF_PLMN_1, "Vodafone Italia", "VODAFONE",  0x0001, 0xfffd},
  {2141,  VDF_PLMN_2, "Vodafone Spain",  "VODAFONE",  0x0001, 0xfffd},
  {2146,  VDF_PLMN_3, "Vodafone Spain",  "VODAFONE",  0x0001, 0xfffd},
  {2622,  VDF_PLMN_4, "Vodafone Germ",   "VODAFONE",  0x0001, 0xfffd},
  {2624,  VDF_PLMN_5, "Vodafone Germ",   "VODAFONE",  0x0001, 0xfffd},
};

/****************************************************************************/
/******************  E X P O R T E D    F U N C T I O N S  ******************/
/****************************************************************************/

#endif /* __NETWORK_H__*/