From b708cb36b667bf3cab03d991a08dc1c04a4d52ec Mon Sep 17 00:00:00 2001 From: Cedric Roux <cedric.roux@eurecom.fr> Date: Wed, 11 Dec 2013 15:36:43 +0000 Subject: [PATCH] - Fix 15 digits length IMSI git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4669 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair-cn/COMMON/s6a_messages_types.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openair-cn/COMMON/s6a_messages_types.h b/openair-cn/COMMON/s6a_messages_types.h index 2b59bb8664..b505f6374b 100644 --- a/openair-cn/COMMON/s6a_messages_types.h +++ b/openair-cn/COMMON/s6a_messages_types.h @@ -2,19 +2,19 @@ #define S6A_MESSAGES_TYPES_H_ typedef struct { -#define SKIP_SUBSRIBER_DATA (0x1) +#define SKIP_SUBSCRIBER_DATA (0x1) unsigned skip_subsriber_data:1; -#define INITIAL_ATTACH (0x1) +#define INITIAL_ATTACH (0x1) unsigned initial_attach:1; - char imsi[IMSI_DIGITS_MAX]; + char imsi[IMSI_DIGITS_MAX + 1]; uint8_t imsi_length; plmn_t visited_plmn; rat_type_t rat_type; } s6a_update_location_req_t; typedef struct { - char imsi[IMSI_DIGITS_MAX]; + char imsi[IMSI_DIGITS_MAX + 1]; uint8_t imsi_length; /* Result of the update location request procedure */ @@ -23,7 +23,7 @@ typedef struct { } s6a_update_location_ans_t; typedef struct { - char imsi[IMSI_DIGITS_MAX]; + char imsi[IMSI_DIGITS_MAX + 1]; uint8_t imsi_length; plmn_t visited_plmn; /* Number of vectors to retrieve from HSS, should be equal to one */ @@ -31,7 +31,7 @@ typedef struct { } s6a_auth_info_req_t; typedef struct { - char imsi[IMSI_DIGITS_MAX]; + char imsi[IMSI_DIGITS_MAX + 1]; uint8_t imsi_length; /* Result of the authentication information procedure */ -- GitLab