blob: 97c7665e3aa5f1d59b790f366250f86e28002d54 [file] [log] [blame]
Harald Welte52b1f982008-12-23 20:25:15 +00001#ifndef _GSM_SUBSCR_H
2#define _GSM_SUBSCR_H
3
4#include <sys/types.h>
5#include "gsm_data.h"
6
Jan Luebbefac25fc2008-12-27 18:04:34 +00007#define GSM_IMEI_LENGTH 17
Jan Luebbe5c15c852008-12-27 15:59:25 +00008#define GSM_IMSI_LENGTH 17
9#define GSM_TMSI_LENGTH 17
10#define GSM_NAME_LENGTH 128
Jan Luebbe391d86e2008-12-27 22:33:34 +000011#define GSM_EXTENSION_LENGTH 128
Jan Luebbe5c15c852008-12-27 15:59:25 +000012
Harald Welte52b1f982008-12-23 20:25:15 +000013struct gsm_subscriber {
Jan Luebbefac25fc2008-12-27 18:04:34 +000014 u_int64_t id;
Jan Luebbe5c15c852008-12-27 15:59:25 +000015 char imsi[GSM_IMSI_LENGTH];
16 char tmsi[GSM_TMSI_LENGTH];
17 u_int16_t lac;
18 char name[GSM_NAME_LENGTH];
Jan Luebbe391d86e2008-12-27 22:33:34 +000019 char extension[GSM_EXTENSION_LENGTH];
Jan Luebbe6e2e5452008-12-27 16:47:55 +000020 int authorized;
Harald Welte52b1f982008-12-23 20:25:15 +000021};
22
Jan Luebbe5c15c852008-12-27 15:59:25 +000023enum gsm_subscriber_field {
24 GSM_SUBSCRIBER_IMSI,
25 GSM_SUBSCRIBER_TMSI,
26};
Harald Welte52b1f982008-12-23 20:25:15 +000027
28#endif /* _GSM_SUBSCR_H */