blob: d2c0d4f71138320756be9709a30fe9de5bdb6ace [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 Luebbe5c15c852008-12-27 15:59:25 +00007#define GSM_IMSI_LENGTH 17
8#define GSM_TMSI_LENGTH 17
9#define GSM_NAME_LENGTH 128
10
Harald Welte52b1f982008-12-23 20:25:15 +000011struct gsm_subscriber {
Jan Luebbe5c15c852008-12-27 15:59:25 +000012 char imsi[GSM_IMSI_LENGTH];
13 char tmsi[GSM_TMSI_LENGTH];
14 u_int16_t lac;
15 char name[GSM_NAME_LENGTH];
Harald Welte52b1f982008-12-23 20:25:15 +000016};
17
Jan Luebbe5c15c852008-12-27 15:59:25 +000018enum gsm_subscriber_field {
19 GSM_SUBSCRIBER_IMSI,
20 GSM_SUBSCRIBER_TMSI,
21};
Harald Welte52b1f982008-12-23 20:25:15 +000022
23#endif /* _GSM_SUBSCR_H */