aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-10-14 06:16:36 +0000
committerGerrit Code Review <gerrit@2a01:4f8:191:444b:0:0:2:12>2017-10-14 06:16:36 +0000
commitd36901325026b69de750e4df7aaa140c95de32f0 (patch)
tree4d9e85169edaba7a1b0838db43e6e09f7a6a703f
parent8afec5f86df8d97a5dd7193b3cce87dba9e95e14 (diff)
parentf6c5f9524f38aa192e02f71f988d0bf467727475 (diff)
Merge "gtpie_{encaps,encaps2}(): RAI is a fixe 6-byte length field, not 8 bytes"
-rw-r--r--gtp/gtpie.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtp/gtpie.c b/gtp/gtpie.c
index c4eabf8..fa21ab2 100644
--- a/gtp/gtpie.c
+++ b/gtp/gtpie.c
@@ -652,11 +652,13 @@ int gtpie_encaps(union gtpie_member *ie[], void *pack, unsigned *len)
case GTPIE_TEI_DII: /* TV GTPIE types with value length 5 */
iesize = 6;
break;
+ case GTPIE_RAI: /* TV GTPIE types with value length 6 */
+ iesize = 7;
+ break;
case GTPIE_RAB_CONTEXT: /* TV GTPIE types with value length 7 */
iesize = 8;
break;
case GTPIE_IMSI: /* TV GTPIE types with value length 8 */
- case GTPIE_RAI:
iesize = 9;
break;
case GTPIE_AUTH_TRIPLET: /* TV GTPIE types with value length 28 */
@@ -827,11 +829,13 @@ int gtpie_encaps2(union gtpie_member ie[], unsigned int size,
case GTPIE_TEI_DII: /* TV GTPIE types with value length 5 */
iesize = 6;
break;
+ case GTPIE_RAI: /* TV GTPIE types with value length 6 */
+ iesize = 7;
+ break;
case GTPIE_RAB_CONTEXT: /* TV GTPIE types with value length 7 */
iesize = 8;
break;
case GTPIE_IMSI: /* TV GTPIE types with value length 8 */
- case GTPIE_RAI:
iesize = 9;
break;
case GTPIE_AUTH_TRIPLET: /* TV GTPIE types with value length 28 */