blob: 03333d4b164bbe2644e24bc943a52dfddb58fae0 [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];
Jan Luebbe6e2e5452008-12-27 16:47:55 +000016 int authorized;
Harald Welte52b1f982008-12-23 20:25:15 +000017};
18
Jan Luebbe5c15c852008-12-27 15:59:25 +000019enum gsm_subscriber_field {
20 GSM_SUBSCRIBER_IMSI,
21 GSM_SUBSCRIBER_TMSI,
22};
Harald Welte52b1f982008-12-23 20:25:15 +000023
24#endif /* _GSM_SUBSCR_H */