File size: 67,242 Bytes
258fb37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
/*
 * Copyright (C) 2019 by Sukchan Lee <acetcom@gmail.com>
 * Copyright (C) 2022 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
 * Copyright (C) 2023 by Sukchan Lee <acetcom@gmail.com>
 *
 * This file is part of Open5GS.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

/*******************************************************************************
 * This file had been created by gtp1-tlv.py script v0.1.0
 * Please do not modify this file but regenerate it via script.
 * Created on: 2023-12-11 17:21:37.064347 by pespin
 * from 29060-h40.docx
 ******************************************************************************/

#if !defined(OGS_GTP_INSIDE) && !defined(OGS_GTP_COMPILATION)
#error "This header cannot be included directly."
#endif

#ifndef OGS_GTP1_MESSAGE_H
#define OGS_GTP1_MESSAGE_H

#ifdef __cplusplus
extern "C" {
#endif

/* 5.1 General format */
#define OGS_GTPV1U_HEADER_LEN   8
#define OGS_GTPV1C_HEADER_LEN   12
#define OGS_GTP1_TEID_LEN        4
typedef struct ogs_gtp1_header_s {
    union {
        struct {
#define OGS_GTP1_VERSION_0 0
#define OGS_GTP1_VERSION_1 1
        ED6(uint8_t version:3;,
            uint8_t pt:1;,
            uint8_t spare1:1;,
            uint8_t e:1;,
            uint8_t s:1;,
            uint8_t pn:1;)
        };
/* GTU-U flags */
#define OGS_GTP1U_FLAGS_V                        0x20
#define OGS_GTP1U_FLAGS_PT                       0x10
#define OGS_GTP1U_FLAGS_E                        0x04
#define OGS_GTP1U_FLAGS_S                        0x02
#define OGS_GTP1U_FLAGS_PN                       0x01
        uint8_t flags;
    };
/* GTP-U message type, defined in 3GPP TS 29.281 Release 11 */
#define OGS_GTP1U_MSGTYPE_ECHO_REQ               1
#define OGS_GTP1U_MSGTYPE_ECHO_RSP               2
#define OGS_GTP1U_MSGTYPE_ERR_IND                26
#define OGS_GTP1U_MSGTYPE_SUPP_EXTHDR_NOTI       31
#define OGS_GTP1U_MSGTYPE_END_MARKER             254
#define OGS_GTP1U_MSGTYPE_GPDU                   255
    uint8_t type;
    uint16_t length;
    uint32_t teid;
    /* Optional based on flags: */
#define OGS_GTP1_XID_TO_SQN(__xid) htobe16((uint16_t)(__xid))
#define OGS_GTP1_SQN_TO_XID(__sqn) be16toh((uint16_t)__sqn)
    uint16_t sqn;
    uint8_t npdu;
    uint8_t ext_hdr_type;
} __attribute__ ((packed)) ogs_gtp1_header_t;

/* GTPv1-C message type */
#define OGS_GTP1_ECHO_REQUEST_TYPE 1
#define OGS_GTP1_ECHO_RESPONSE_TYPE 2
#define OGS_GTP1_VERSION_NOT_SUPPORTED_TYPE 3
#define OGS_GTP1_NODE_ALIVE_REQUEST_TYPE 4
#define OGS_GTP1_NODE_ALIVE_RESPONSE_TYPE 5
#define OGS_GTP1_REDIRECTION_REQUEST_TYPE 6
#define OGS_GTP1_REDIRECTION_RESPONSE_TYPE 7
#define OGS_GTP1_CREATE_PDP_CONTEXT_REQUEST_TYPE 16
#define OGS_GTP1_CREATE_PDP_CONTEXT_RESPONSE_TYPE 17
#define OGS_GTP1_UPDATE_PDP_CONTEXT_REQUEST_TYPE 18
#define OGS_GTP1_UPDATE_PDP_CONTEXT_RESPONSE_TYPE 19
#define OGS_GTP1_DELETE_PDP_CONTEXT_REQUEST_TYPE 20
#define OGS_GTP1_DELETE_PDP_CONTEXT_RESPONSE_TYPE 21
#define OGS_GTP1_INITIATE_PDP_CONTEXT_ACTIVATION_REQUEST_TYPE 22
#define OGS_GTP1_INITIATE_PDP_CONTEXT_ACTIVATION_RESPONSE_TYPE 23
#define OGS_GTP1_ERROR_INDICATION_TYPE 26
#define OGS_GTP1_PDU_NOTIFICATION_REQUEST_TYPE 27
#define OGS_GTP1_PDU_NOTIFICATION_RESPONSE_TYPE 28
#define OGS_GTP1_PDU_NOTIFICATION_REJECT_REQUEST_TYPE 29
#define OGS_GTP1_PDU_NOTIFICATION_REJECT_RESPONSE_TYPE 30
#define OGS_GTP1_SUPPORTED_EXTENSION_HEADERS_NOTIFICATION_TYPE 31
#define OGS_GTP1_SEND_ROUTEING_INFORMATION_FOR_GPRS_REQUEST_TYPE 32
#define OGS_GTP1_SEND_ROUTEING_INFORMATION_FOR_GPRS_RESPONSE_TYPE 33
#define OGS_GTP1_FAILURE_REPORT_REQUEST_TYPE 34
#define OGS_GTP1_FAILURE_REPORT_RESPONSE_TYPE 35
#define OGS_GTP1_NOTE_MS_GPRS_PRESENT_REQUEST_TYPE 36
#define OGS_GTP1_NOTE_MS_GPRS_PRESENT_RESPONSE_TYPE 37
#define OGS_GTP1_IDENTIFICATION_REQUEST_TYPE 48
#define OGS_GTP1_IDENTIFICATION_RESPONSE_TYPE 49
#define OGS_GTP1_SGSN_CONTEXT_REQUEST_TYPE 50
#define OGS_GTP1_SGSN_CONTEXT_RESPONSE_TYPE 51
#define OGS_GTP1_SGSN_CONTEXT_ACKNOWLEDGE_TYPE 52
#define OGS_GTP1_FORWARD_RELOCATION_REQUEST_TYPE 53
#define OGS_GTP1_FORWARD_RELOCATION_RESPONSE_TYPE 54
#define OGS_GTP1_FORWARD_RELOCATION_COMPLETE_TYPE 55
#define OGS_GTP1_RELOCATION_CANCEL_REQUEST_TYPE 56
#define OGS_GTP1_RELOCATION_CANCEL_RESPONSE_TYPE 57
#define OGS_GTP1_FORWARD_SRNS_CONTEXT_TYPE 58
#define OGS_GTP1_FORWARD_RELOCATION_COMPLETE_ACKNOWLEDGE_TYPE 59
#define OGS_GTP1_FORWARD_SRNS_CONTEXT_ACKNOWLEDGE_TYPE 60
#define OGS_GTP1_UE_REGISTRATION_QUERY_REQUEST_TYPE 61
#define OGS_GTP1_UE_REGISTRATION_QUERY_RESPONSE_TYPE 62
#define OGS_GTP1_RAN_INFORMATION_RELAY_TYPE 70
#define OGS_GTP1_MBMS_NOTIFICATION_REQUEST_TYPE 96
#define OGS_GTP1_MBMS_NOTIFICATION_RESPONSE_TYPE 97
#define OGS_GTP1_MBMS_NOTIFICATION_REJECT_REQUEST_TYPE 98
#define OGS_GTP1_MBMS_NOTIFICATION_REJECT_RESPONSE_TYPE 99
#define OGS_GTP1_CREATE_MBMS_CONTEXT_REQUEST_TYPE 100
#define OGS_GTP1_CREATE_MBMS_CONTEXT_RESPONSE_TYPE 101
#define OGS_GTP1_UPDATE_MBMS_CONTEXT_REQUEST_TYPE 102
#define OGS_GTP1_UPDATE_MBMS_CONTEXT_RESPONSE_TYPE 103
#define OGS_GTP1_DELETE_MBMS_CONTEXT_REQUEST_TYPE 104
#define OGS_GTP1_DELETE_MBMS_CONTEXT_RESPONSE_TYPE 105
#define OGS_GTP1_MBMS_REGISTRATION_REQUEST_TYPE 112
#define OGS_GTP1_MBMS_REGISTRATION_RESPONSE_TYPE 113
#define OGS_GTP1_MBMS_DE_REGISTRATION_REQUEST_TYPE 114
#define OGS_GTP1_MBMS_DE_REGISTRATION_RESPONSE_TYPE 115
#define OGS_GTP1_MBMS_SESSION_START_REQUEST_TYPE 116
#define OGS_GTP1_MBMS_SESSION_START_RESPONSE_TYPE 117
#define OGS_GTP1_MBMS_SESSION_STOP_REQUEST_TYPE 118
#define OGS_GTP1_MBMS_SESSION_STOP_RESPONSE_TYPE 119
#define OGS_GTP1_MBMS_SESSION_UPDATE_REQUEST_TYPE 120
#define OGS_GTP1_MBMS_SESSION_UPDATE_RESPONSE_TYPE 121

#define OGS_GTP1_CAUSE_TYPE 1
#define OGS_GTP1_IMSI_TYPE 2
#define OGS_GTP1_RAI_TYPE 3
#define OGS_GTP1_TLLI_TYPE 4
#define OGS_GTP1_P_TMSI_TYPE 5
#define OGS_GTP1_REORDERING_REQUIRED_TYPE 8
#define OGS_GTP1_AUTHENTICATION_TRIPLET_TYPE 9
#define OGS_GTP1_MAP_CAUSE_TYPE 11
#define OGS_GTP1_P_TMSI_SIGNATURE_TYPE 12
#define OGS_GTP1_MS_VALIDATED_TYPE 13
#define OGS_GTP1_RECOVERY_TYPE 14
#define OGS_GTP1_SELECTION_MODE_TYPE 15
#define OGS_GTP1_TUNNEL_ENDPOINT_IDENTIFIER_DATA_I_TYPE 16
#define OGS_GTP1_TUNNEL_ENDPOINT_IDENTIFIER_CONTROL_PLANE_TYPE 17
#define OGS_GTP1_TUNNEL_ENDPOINT_IDENTIFIER_DATA_II_TYPE 18
#define OGS_GTP1_TEARDOWN_IND_TYPE 19
#define OGS_GTP1_NSAPI_TYPE 20
#define OGS_GTP1_RANAP_CAUSE_TYPE 21
#define OGS_GTP1_RAB_CONTEXT_TYPE 22
#define OGS_GTP1_RADIO_PRIORITY_SMS_TYPE 23
#define OGS_GTP1_RADIO_PRIORITY_TYPE 24
#define OGS_GTP1_PACKET_FLOW_ID_TYPE 25
#define OGS_GTP1_CHARGING_CHARACTERISTICS_TYPE 26
#define OGS_GTP1_TRACE_REFERENCE_TYPE 27
#define OGS_GTP1_TRACE_TYPE_TYPE 28
#define OGS_GTP1_MS_NOT_REACHABLE_REASON_TYPE 29
#define OGS_GTP1_CHARGING_ID_TYPE 127
#define OGS_GTP1_END_USER_ADDRESS_TYPE 128
#define OGS_GTP1_MM_CONTEXT_TYPE 129
#define OGS_GTP1_PDP_CONTEXT_TYPE 130
#define OGS_GTP1_ACCESS_POINT_NAME_TYPE 131
#define OGS_GTP1_PROTOCOL_CONFIGURATION_OPTIONS_TYPE 132
#define OGS_GTP1_GSN_ADDRESS_TYPE 133
#define OGS_GTP1_MSISDN_TYPE 134
#define OGS_GTP1_QUALITY_OF_SERVICE_PROFILE_TYPE 135
#define OGS_GTP1_AUTHENTICATION_QUINTUPLET_TYPE 136
#define OGS_GTP1_TRAFFIC_FLOW_TEMPLATE_TYPE 137
#define OGS_GTP1_TARGET_IDENTIFICATION_TYPE 138
#define OGS_GTP1_UTRAN_TRANSPARENT_CONTAINER_TYPE 139
#define OGS_GTP1_RAB_SETUP_INFORMATION_TYPE 140
#define OGS_GTP1_EXTENSION_HEADER_TYPE_LIST_TYPE 141
#define OGS_GTP1_TRIGGER_ID_TYPE 142
#define OGS_GTP1_OMC_IDENTITY_TYPE 143
#define OGS_GTP1_RAN_TRANSPARENT_CONTAINER_TYPE 144
#define OGS_GTP1_PDP_CONTEXT_PRIORITIZATION_TYPE 145
#define OGS_GTP1_ADDITIONAL_RAB_SETUP_INFORMATION_TYPE 146
#define OGS_GTP1_SGSN_NUMBER_TYPE 147
#define OGS_GTP1_COMMON_FLAGS_TYPE 148
#define OGS_GTP1_APN_RESTRICTION_TYPE 149
#define OGS_GTP1_RADIO_PRIORITY_LCS_TYPE 150
#define OGS_GTP1_RAT_TYPE_TYPE 151
#define OGS_GTP1_USER_LOCATION_INFORMATION_TYPE 152
#define OGS_GTP1_MS_TIME_ZONE_TYPE 153
#define OGS_GTP1_SV_TYPE 154
#define OGS_GTP1_CAMEL_CHARGING_INFORMATION_CONTAINER_TYPE 155
#define OGS_GTP1_MBMS_UE_CONTEXT_TYPE 156
#define OGS_GTP1_TMGI_TYPE 157
#define OGS_GTP1_RIM_ROUTING_ADDRESS_TYPE 158
#define OGS_GTP1_MBMS_PROTOCOL_CONFIGURATION_OPTIONS_TYPE 159
#define OGS_GTP1_MBMS_SERVICE_AREA_TYPE 160
#define OGS_GTP1_SOURCE_RNC_PDCP_CONTEXT_INFO_TYPE 161
#define OGS_GTP1_ADDITIONAL_TRACE_INFO_TYPE 162
#define OGS_GTP1_HOP_COUNTER_TYPE 163
#define OGS_GTP1_SELECTED_PLMN_ID_TYPE 164
#define OGS_GTP1_MBMS_SESSION_IDENTIFIER_TYPE 165
#define OGS_GTP1_MBMS_2G_3G_INDICATOR_TYPE 166
#define OGS_GTP1_ENHANCED_NSAPI_TYPE 167
#define OGS_GTP1_MBMS_SESSION_DURATION_TYPE 168
#define OGS_GTP1_ADDITIONAL_MBMS_TRACE_INFO_TYPE 169
#define OGS_GTP1_MBMS_SESSION_REPETITION_NUMBER_TYPE 170
#define OGS_GTP1_MBMS_TIME_TO_DATA_TRANSFER_TYPE 171
#define OGS_GTP1_BSS_CONTAINER_TYPE 173
#define OGS_GTP1_CELL_IDENTIFICATION_TYPE 174
#define OGS_GTP1_PDU_NUMBERS_TYPE 175
#define OGS_GTP1_BSSGP_CAUSE_TYPE 176
#define OGS_GTP1_REQUIRED_MBMS_BEARER_CAPABILITIES_TYPE 177
#define OGS_GTP1_RIM_ROUTING_ADDRESS_DISCRIMINATOR_TYPE 178
#define OGS_GTP1_LIST_OF_SET_UP_PFCS_TYPE 179
#define OGS_GTP1_PS_HANDOVER_XID_PARAMETERS_TYPE 180
#define OGS_GTP1_MS_INFO_CHANGE_REPORTING_ACTION_TYPE 181
#define OGS_GTP1_DIRECT_TUNNEL_FLAGS_TYPE 182
#define OGS_GTP1_CORRELATION_ID_TYPE 183
#define OGS_GTP1_BEARER_CONTROL_MODE_TYPE 184
#define OGS_GTP1_MBMS_FLOW_IDENTIFIER_TYPE 185
#define OGS_GTP1_MBMS_IP_MULTICAST_DISTRIBUTION_TYPE 186
#define OGS_GTP1_MBMS_DISTRIBUTION_ACKNOWLEDGEMENT_TYPE 187
#define OGS_GTP1_RELIABLE_INTER_RAT_HANDOVER_INFO_TYPE 188
#define OGS_GTP1_RFSP_INDEX_TYPE 189
#define OGS_GTP1_FQDN_TYPE 190
#define OGS_GTP1_EVOLVED_ALLOCATION_RETENTION_PRIORITY_I_TYPE 191
#define OGS_GTP1_EVOLVED_ALLOCATION_RETENTION_PRIORITY_II_TYPE 192
#define OGS_GTP1_EXTENDED_COMMON_FLAGS_TYPE 193
#define OGS_GTP1_UCI_TYPE 194
#define OGS_GTP1_CSG_INFORMATION_REPORTING_ACTION_TYPE 195
#define OGS_GTP1_CSG_ID_TYPE 196
#define OGS_GTP1_CMI_TYPE 197
#define OGS_GTP1_AMBR_TYPE 198
#define OGS_GTP1_UE_NETWORK_CAPABILITY_TYPE 199
#define OGS_GTP1_UE_AMBR_TYPE 200
#define OGS_GTP1_APN_AMBR_WITH_NSAPI_TYPE 201
#define OGS_GTP1_GGSN_BACK_OFF_TIME_TYPE 202
#define OGS_GTP1_SIGNALLING_PRIORITY_INDICATION_TYPE 203
#define OGS_GTP1_SIGNALLING_PRIORITY_INDICATION_WITH_NSAPI_TYPE 204
#define OGS_GTP1_HIGHER_BITRATES_THAN_16_MBPS_FLAG_TYPE 205
#define OGS_GTP1_ADDITIONAL_MM_CONTEXT_FOR_SRVCC_TYPE 207
#define OGS_GTP1_ADDITIONAL_FLAGS_FOR_SRVCC_TYPE 208
#define OGS_GTP1_STN_SR_TYPE 209
#define OGS_GTP1_C_MSISDN_TYPE 210
#define OGS_GTP1_EXTENDED_RANAP_CAUSE_TYPE 211
#define OGS_GTP1_ENODEB_ID_TYPE 212
#define OGS_GTP1_SELECTION_MODE_WITH_NSAPI_TYPE 213
#define OGS_GTP1_ULI_TIMESTAMP_TYPE 214
#define OGS_GTP1_LHN_ID_WITH_NSAPI_TYPE 215
#define OGS_GTP1_CN_OPERATOR_SELECTION_ENTITY_TYPE 216
#define OGS_GTP1_UE_USAGE_TYPE_TYPE 217
#define OGS_GTP1_EXTENDED_COMMON_FLAGS_II_TYPE 218
#define OGS_GTP1_NODE_IDENTIFIER_TYPE 219
#define OGS_GTP1_CIOT_OPTIMIZATIONS_SUPPORT_INDICATION_TYPE 220
#define OGS_GTP1_SCEF_PDN_CONNECTION_TYPE 221
#define OGS_GTP1_IOV_UPDATES_COUNTER_TYPE 222
#define OGS_GTP1_MAPPED_UE_USAGE_TYPE_TYPE 223
#define OGS_GTP1_UP_FUNCTION_SELECTION_INDICATION_FLAGS_TYPE 224
#define OGS_GTP1_SPECIAL_IE_TYPE_FOR_IE_TYPE_EXTENSION_TYPE 238
#define OGS_GTP1_CHARGING_GATEWAY_ADDRESS_TYPE 251

/* Information Element TLV Descriptor */
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_cause;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_imsi;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_rai;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_tlli;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_p_tmsi;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_reordering_required;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_authentication_triplet;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_map_cause;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_p_tmsi_signature;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_ms_validated;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_recovery;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_selection_mode;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_tunnel_endpoint_identifier_data_i;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_tunnel_endpoint_identifier_control_plane;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_tunnel_endpoint_identifier_data_ii;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_teardown_ind;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_nsapi;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_ranap_cause;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_rab_context;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_radio_priority_sms;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_radio_priority;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_packet_flow_id;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_charging_characteristics;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_trace_reference;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_trace_type;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_ms_not_reachable_reason;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_charging_id;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_end_user_address;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mm_context;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_pdp_context;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_access_point_name;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_protocol_configuration_options;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_gsn_address;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_msisdn;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_quality_of_service_profile;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_authentication_quintuplet;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_traffic_flow_template;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_target_identification;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_utran_transparent_container;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_rab_setup_information;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_extension_header_type_list;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_trigger_id;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_omc_identity;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_ran_transparent_container;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_pdp_context_prioritization;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_additional_rab_setup_information;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_sgsn_number;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_common_flags;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_apn_restriction;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_radio_priority_lcs;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_rat_type;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_user_location_information;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_ms_time_zone;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_sv;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_camel_charging_information_container;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_ue_context;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_tmgi;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_rim_routing_address;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_protocol_configuration_options;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_service_area;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_source_rnc_pdcp_context_info;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_additional_trace_info;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_hop_counter;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_selected_plmn_id;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_session_identifier;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_2g_3g_indicator;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_enhanced_nsapi;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_session_duration;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_additional_mbms_trace_info;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_session_repetition_number;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_time_to_data_transfer;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_bss_container;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_cell_identification;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_pdu_numbers;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_bssgp_cause;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_required_mbms_bearer_capabilities;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_rim_routing_address_discriminator;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_list_of_set_up_pfcs;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_ps_handover_xid_parameters;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_ms_info_change_reporting_action;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_direct_tunnel_flags;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_correlation_id;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_bearer_control_mode;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_flow_identifier;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_ip_multicast_distribution;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_distribution_acknowledgement;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_reliable_inter_rat_handover_info;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_rfsp_index;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_fqdn;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_evolved_allocation_retention_priority_i;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_evolved_allocation_retention_priority_ii;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_extended_common_flags;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_uci;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_csg_information_reporting_action;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_csg_id;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_cmi;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_ambr;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_ue_network_capability;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_ue_ambr;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_apn_ambr_with_nsapi;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_ggsn_back_off_time;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_signalling_priority_indication;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_signalling_priority_indication_with_nsapi;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_higher_bitrates_than_16_mbps_flag;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_additional_mm_context_for_srvcc;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_additional_flags_for_srvcc;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_stn_sr;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_c_msisdn;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_extended_ranap_cause;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_enodeb_id;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_selection_mode_with_nsapi;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_uli_timestamp;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_lhn_id_with_nsapi;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_cn_operator_selection_entity;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_ue_usage_type;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_extended_common_flags_ii;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_node_identifier;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_ciot_optimizations_support_indication;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_scef_pdn_connection;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_iov_updates_counter;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mapped_ue_usage_type;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_up_function_selection_indication_flags;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_special_ie_type_for_ie_type_extension;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_charging_gateway_address;

/* Message Descriptor */
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_echo_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_echo_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_version_not_supported;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_node_alive_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_node_alive_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_redirection_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_redirection_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_create_pdp_context_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_create_pdp_context_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_update_pdp_context_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_update_pdp_context_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_delete_pdp_context_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_delete_pdp_context_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_initiate_pdp_context_activation_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_initiate_pdp_context_activation_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_error_indication;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_pdu_notification_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_pdu_notification_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_pdu_notification_reject_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_pdu_notification_reject_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_supported_extension_headers_notification;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_send_routeing_information_for_gprs_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_send_routeing_information_for_gprs_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_failure_report_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_failure_report_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_note_ms_gprs_present_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_note_ms_gprs_present_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_identification_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_identification_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_sgsn_context_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_sgsn_context_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_sgsn_context_acknowledge;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_forward_relocation_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_forward_relocation_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_forward_relocation_complete;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_relocation_cancel_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_relocation_cancel_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_forward_srns_context;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_forward_relocation_complete_acknowledge;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_forward_srns_context_acknowledge;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_ue_registration_query_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_ue_registration_query_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_ran_information_relay;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_notification_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_notification_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_notification_reject_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_notification_reject_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_create_mbms_context_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_create_mbms_context_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_update_mbms_context_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_update_mbms_context_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_delete_mbms_context_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_delete_mbms_context_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_registration_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_registration_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_de_registration_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_de_registration_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_session_start_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_session_start_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_session_stop_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_session_stop_response;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_session_update_request;
extern ogs_tlv_desc_t ogs_gtp1_tlv_desc_mbms_session_update_response;

/* Structure for Information Element */
typedef ogs_tlv_uint8_t ogs_gtp1_tlv_cause_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_imsi_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_rai_t;
typedef ogs_tlv_uint32_t ogs_gtp1_tlv_tlli_t;
typedef ogs_tlv_uint32_t ogs_gtp1_tlv_p_tmsi_t;
typedef ogs_tlv_uint8_t ogs_gtp1_tlv_reordering_required_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_authentication_triplet_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_map_cause_t;
typedef ogs_tlv_uint24_t ogs_gtp1_tlv_p_tmsi_signature_t;
typedef ogs_tlv_uint8_t ogs_gtp1_tlv_ms_validated_t;
typedef ogs_tlv_uint8_t ogs_gtp1_tlv_recovery_t;
typedef ogs_tlv_uint8_t ogs_gtp1_tlv_selection_mode_t;
typedef ogs_tlv_uint32_t ogs_gtp1_tlv_tunnel_endpoint_identifier_data_i_t;
typedef ogs_tlv_uint32_t ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_tunnel_endpoint_identifier_data_ii_t;
typedef ogs_tlv_uint8_t ogs_gtp1_tlv_teardown_ind_t;
typedef ogs_tlv_uint8_t ogs_gtp1_tlv_nsapi_t;
typedef ogs_tlv_uint8_t ogs_gtp1_tlv_ranap_cause_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_rab_context_t;
typedef ogs_tlv_uint8_t ogs_gtp1_tlv_radio_priority_sms_t;
typedef ogs_tlv_uint8_t ogs_gtp1_tlv_radio_priority_t;
typedef ogs_tlv_uint16_t ogs_gtp1_tlv_packet_flow_id_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_charging_characteristics_t;
typedef ogs_tlv_uint16_t ogs_gtp1_tlv_trace_reference_t;
typedef ogs_tlv_uint16_t ogs_gtp1_tlv_trace_type_t;
typedef ogs_tlv_uint8_t ogs_gtp1_tlv_ms_not_reachable_reason_t;
typedef ogs_tlv_uint32_t ogs_gtp1_tlv_charging_id_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_end_user_address_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_mm_context_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_pdp_context_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_access_point_name_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_protocol_configuration_options_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_gsn_address_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_msisdn_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_quality_of_service_profile_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_authentication_quintuplet_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_traffic_flow_template_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_target_identification_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_utran_transparent_container_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_rab_setup_information_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_extension_header_type_list_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_trigger_id_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_omc_identity_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_ran_transparent_container_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_pdp_context_prioritization_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_additional_rab_setup_information_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_sgsn_number_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_common_flags_t;
typedef ogs_tlv_uint8_t ogs_gtp1_tlv_apn_restriction_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_radio_priority_lcs_t;
typedef ogs_tlv_uint8_t ogs_gtp1_tlv_rat_type_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_user_location_information_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_ms_time_zone_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_sv_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_camel_charging_information_container_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_mbms_ue_context_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_tmgi_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_rim_routing_address_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_mbms_protocol_configuration_options_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_mbms_service_area_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_source_rnc_pdcp_context_info_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_additional_trace_info_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_hop_counter_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_selected_plmn_id_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_mbms_session_identifier_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_mbms_2g_3g_indicator_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_enhanced_nsapi_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_mbms_session_duration_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_additional_mbms_trace_info_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_mbms_session_repetition_number_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_mbms_time_to_data_transfer_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_bss_container_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_cell_identification_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_pdu_numbers_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_bssgp_cause_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_required_mbms_bearer_capabilities_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_rim_routing_address_discriminator_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_list_of_set_up_pfcs_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_ps_handover_xid_parameters_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_ms_info_change_reporting_action_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_direct_tunnel_flags_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_correlation_id_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_bearer_control_mode_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_mbms_flow_identifier_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_mbms_ip_multicast_distribution_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_mbms_distribution_acknowledgement_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_reliable_inter_rat_handover_info_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_rfsp_index_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_fqdn_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_evolved_allocation_retention_priority_i_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_evolved_allocation_retention_priority_ii_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_extended_common_flags_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_uci_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_csg_information_reporting_action_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_csg_id_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_cmi_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_ambr_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_ue_network_capability_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_ue_ambr_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_apn_ambr_with_nsapi_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_ggsn_back_off_time_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_signalling_priority_indication_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_signalling_priority_indication_with_nsapi_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_higher_bitrates_than_16_mbps_flag_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_additional_mm_context_for_srvcc_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_additional_flags_for_srvcc_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_stn_sr_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_c_msisdn_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_extended_ranap_cause_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_enodeb_id_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_selection_mode_with_nsapi_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_uli_timestamp_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_lhn_id_with_nsapi_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_cn_operator_selection_entity_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_ue_usage_type_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_extended_common_flags_ii_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_node_identifier_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_ciot_optimizations_support_indication_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_scef_pdn_connection_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_iov_updates_counter_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_mapped_ue_usage_type_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_up_function_selection_indication_flags_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_special_ie_type_for_ie_type_extension_t;
typedef ogs_tlv_octet_t ogs_gtp1_tlv_charging_gateway_address_t;

/* Structure for Message */
typedef struct ogs_gtp1_echo_request_s {
} ogs_gtp1_echo_request_t;

typedef struct ogs_gtp1_echo_response_s {
    ogs_gtp1_tlv_recovery_t recovery;
} ogs_gtp1_echo_response_t;

typedef struct ogs_gtp1_create_pdp_context_request_s {
    ogs_gtp1_tlv_imsi_t imsi;
    ogs_gtp1_tlv_rai_t routeing_area_identity;
    ogs_gtp1_tlv_recovery_t recovery;
    ogs_gtp1_tlv_selection_mode_t selection_mode;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_data_i_t tunnel_endpoint_identifier_data_i;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_nsapi_t nsapi;
    ogs_gtp1_tlv_nsapi_t linked_nsapi;
    ogs_gtp1_tlv_charging_characteristics_t charging_characteristics;
    ogs_gtp1_tlv_trace_reference_t trace_reference;
    ogs_gtp1_tlv_trace_type_t trace_type;
    ogs_gtp1_tlv_end_user_address_t end_user_address;
    ogs_gtp1_tlv_access_point_name_t access_point_name;
    ogs_gtp1_tlv_protocol_configuration_options_t protocol_configuration_options;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_signalling;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_user_traffic;
    ogs_gtp1_tlv_msisdn_t msisdn;
    ogs_gtp1_tlv_quality_of_service_profile_t quality_of_service_profile;
    ogs_gtp1_tlv_traffic_flow_template_t tft;
    ogs_gtp1_tlv_trigger_id_t trigger_id;
    ogs_gtp1_tlv_omc_identity_t omc_identity;
    ogs_gtp1_tlv_common_flags_t common_flags;
    ogs_gtp1_tlv_apn_restriction_t apn_restriction;
    ogs_gtp1_tlv_rat_type_t rat_type;
    ogs_gtp1_tlv_user_location_information_t user_location_information;
    ogs_gtp1_tlv_ms_time_zone_t ms_time_zone;
    ogs_gtp1_tlv_sv_t imei;
    ogs_gtp1_tlv_camel_charging_information_container_t camel_charging_information_container;
    ogs_gtp1_tlv_additional_trace_info_t additional_trace_info;
    ogs_gtp1_tlv_correlation_id_t correlation_id;
    ogs_gtp1_tlv_evolved_allocation_retention_priority_i_t evolved_allocation_retention_priority_i;
    ogs_gtp1_tlv_extended_common_flags_t extended_common_flags;
    ogs_gtp1_tlv_uci_t user_csg_information;
    ogs_gtp1_tlv_ambr_t apn_ambr;
    ogs_gtp1_tlv_signalling_priority_indication_t signalling_priority_indication;
    ogs_gtp1_tlv_cn_operator_selection_entity_t cn_operator_selection_entity;
    ogs_gtp1_tlv_mapped_ue_usage_type_t mapped_ue_usage_type;
    ogs_gtp1_tlv_up_function_selection_indication_flags_t up_function_selection_indication_flags;
} ogs_gtp1_create_pdp_context_request_t;

typedef struct ogs_gtp1_create_pdp_context_response_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_reordering_required_t reordering_required;
    ogs_gtp1_tlv_recovery_t recovery;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_data_i_t tunnel_endpoint_identifier_data_i;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_nsapi_t nsapi;
    ogs_gtp1_tlv_charging_id_t charging_id;
    ogs_gtp1_tlv_end_user_address_t end_user_address;
    ogs_gtp1_tlv_protocol_configuration_options_t protocol_configuration_options;
    ogs_gtp1_tlv_gsn_address_t ggsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t ggsn_address_for_user_traffic;
    ogs_gtp1_tlv_gsn_address_t alternative_ggsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t alternative_ggsn_address_for_user_traffic;
    ogs_gtp1_tlv_quality_of_service_profile_t quality_of_service_profile;
    ogs_gtp1_tlv_charging_gateway_address_t charging_gateway_address;
    ogs_gtp1_tlv_charging_gateway_address_t alternative_charging_gateway_address;
    ogs_gtp1_tlv_common_flags_t common_flags;
    ogs_gtp1_tlv_apn_restriction_t apn_restriction;
    ogs_gtp1_tlv_ms_info_change_reporting_action_t ms_info_change_reporting_action;
    ogs_gtp1_tlv_bearer_control_mode_t bearer_control_mode;
    ogs_gtp1_tlv_evolved_allocation_retention_priority_i_t evolved_allocation_retention_priority_i;
    ogs_gtp1_tlv_extended_common_flags_t extended_common_flag;
    ogs_gtp1_tlv_csg_information_reporting_action_t csg_information_reporting_action;
    ogs_gtp1_tlv_ambr_t apn_ambr;
    ogs_gtp1_tlv_ggsn_back_off_time_t ggsn_back_off_time;
    ogs_gtp1_tlv_extended_common_flags_ii_t extended_common_flags_ii;
} ogs_gtp1_create_pdp_context_response_t;

typedef struct ogs_gtp1_update_pdp_context_request_s {
    ogs_gtp1_tlv_imsi_t imsi;
    ogs_gtp1_tlv_rai_t routeing_area_identity;
    ogs_gtp1_tlv_recovery_t recovery;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_data_i_t tunnel_endpoint_identifier_data_i;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_nsapi_t nsapi;
    ogs_gtp1_tlv_trace_reference_t trace_reference;
    ogs_gtp1_tlv_trace_type_t trace_type;
    ogs_gtp1_tlv_protocol_configuration_options_t protocol_configuration_options;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_user_traffic;
    ogs_gtp1_tlv_gsn_address_t alternative_sgsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t alternative_sgsn_address_for_user_traffic;
    ogs_gtp1_tlv_quality_of_service_profile_t quality_of_service_profile;
    ogs_gtp1_tlv_traffic_flow_template_t tft;
    ogs_gtp1_tlv_trigger_id_t trigger_id;
    ogs_gtp1_tlv_omc_identity_t omc_identity;
    ogs_gtp1_tlv_common_flags_t common_flags;
    ogs_gtp1_tlv_rat_type_t rat_type;
    ogs_gtp1_tlv_user_location_information_t user_location_information;
    ogs_gtp1_tlv_ms_time_zone_t ms_time_zone;
    ogs_gtp1_tlv_additional_trace_info_t additonal_trace_info;
    ogs_gtp1_tlv_direct_tunnel_flags_t direct_tunnel_flags;
    ogs_gtp1_tlv_evolved_allocation_retention_priority_i_t evolved_allocation_retention_priority_i;
    ogs_gtp1_tlv_extended_common_flags_t extended_common_flags;
    ogs_gtp1_tlv_uci_t user_csg_information;
    ogs_gtp1_tlv_ambr_t apn_ambr;
    ogs_gtp1_tlv_signalling_priority_indication_t signalling_priority_indication;
    ogs_gtp1_tlv_cn_operator_selection_entity_t cn_operator_selection_entity;
    ogs_gtp1_tlv_sv_t imei;
} ogs_gtp1_update_pdp_context_request_t;

typedef struct ogs_gtp1_update_pdp_context_response_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_recovery_t recovery;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_data_i_t tunnel_endpoint_identifier_data_i;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_charging_id_t charging_id;
    ogs_gtp1_tlv_protocol_configuration_options_t protocol_configuration_options;
    ogs_gtp1_tlv_gsn_address_t ggsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t ggsn_address_for_user_traffic;
    ogs_gtp1_tlv_gsn_address_t alternative_ggsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t alternative_ggsn_address_for_user_traffic;
    ogs_gtp1_tlv_quality_of_service_profile_t quality_of_service_profile;
    ogs_gtp1_tlv_charging_gateway_address_t charging_gateway_address;
    ogs_gtp1_tlv_charging_gateway_address_t alternative_charging_gateway_address;
    ogs_gtp1_tlv_common_flags_t common_flags;
    ogs_gtp1_tlv_apn_restriction_t apn_restriction;
    ogs_gtp1_tlv_bearer_control_mode_t bearer_control_mode;
    ogs_gtp1_tlv_ms_info_change_reporting_action_t ms_info_change_reporting_action;
    ogs_gtp1_tlv_evolved_allocation_retention_priority_i_t evolved_allocation_retention_priority_i;
    ogs_gtp1_tlv_csg_information_reporting_action_t csg_information_reporting_action;
    ogs_gtp1_tlv_ambr_t apn_ambr;
} ogs_gtp1_update_pdp_context_response_t;

typedef struct ogs_gtp1_delete_pdp_context_request_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_teardown_ind_t teardown_ind;
    ogs_gtp1_tlv_nsapi_t nsapi;
    ogs_gtp1_tlv_protocol_configuration_options_t protocol_configuration_options;
    ogs_gtp1_tlv_user_location_information_t user_location_information;
    ogs_gtp1_tlv_ms_time_zone_t ms_time_zone;
    ogs_gtp1_tlv_extended_common_flags_t extended_common_flags;
    ogs_gtp1_tlv_uli_timestamp_t uli_timestamp;
} ogs_gtp1_delete_pdp_context_request_t;

typedef struct ogs_gtp1_delete_pdp_context_response_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_protocol_configuration_options_t protocol_configuration_options;
    ogs_gtp1_tlv_user_location_information_t user_location_information;
    ogs_gtp1_tlv_ms_time_zone_t ms_time_zone;
    ogs_gtp1_tlv_uli_timestamp_t uli_timestamp;
} ogs_gtp1_delete_pdp_context_response_t;

typedef struct ogs_gtp1_initiate_pdp_context_activation_request_s {
    ogs_gtp1_tlv_nsapi_t linked_nsapi;
    ogs_gtp1_tlv_protocol_configuration_options_t protocol_configuration_options;
    ogs_gtp1_tlv_quality_of_service_profile_t quality_of_service_profile;
    ogs_gtp1_tlv_traffic_flow_template_t tft;
    ogs_gtp1_tlv_correlation_id_t correlation_id;
    ogs_gtp1_tlv_evolved_allocation_retention_priority_i_t evolved_allocation_retention_priority_i;
} ogs_gtp1_initiate_pdp_context_activation_request_t;

typedef struct ogs_gtp1_initiate_pdp_context_activation_response_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_protocol_configuration_options_t protocol_configuration_options;
} ogs_gtp1_initiate_pdp_context_activation_response_t;

typedef struct ogs_gtp1_pdu_notification_request_s {
    ogs_gtp1_tlv_imsi_t imsi;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_end_user_address_t end_user_address;
    ogs_gtp1_tlv_access_point_name_t access_point_name;
    ogs_gtp1_tlv_protocol_configuration_options_t protocol_configuration_options;
    ogs_gtp1_tlv_gsn_address_t ggsn_address_for_control_plane;
} ogs_gtp1_pdu_notification_request_t;

typedef struct ogs_gtp1_pdu_notification_response_s {
    ogs_gtp1_tlv_cause_t cause;
} ogs_gtp1_pdu_notification_response_t;

typedef struct ogs_gtp1_pdu_notification_reject_request_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_end_user_address_t end_user_address;
    ogs_gtp1_tlv_access_point_name_t access_point_name;
    ogs_gtp1_tlv_protocol_configuration_options_t protocol_configuration_options;
} ogs_gtp1_pdu_notification_reject_request_t;

typedef struct ogs_gtp1_pdu_notification_reject_response_s {
    ogs_gtp1_tlv_cause_t cause;
} ogs_gtp1_pdu_notification_reject_response_t;

typedef struct ogs_gtp1_supported_extension_headers_notification_s {
    ogs_gtp1_tlv_extension_header_type_list_t extension_header_type_list;
} ogs_gtp1_supported_extension_headers_notification_t;

typedef struct ogs_gtp1_send_routeing_information_for_gprs_request_s {
    ogs_gtp1_tlv_imsi_t imsi;
} ogs_gtp1_send_routeing_information_for_gprs_request_t;

typedef struct ogs_gtp1_send_routeing_information_for_gprs_response_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_imsi_t imsi;
    ogs_gtp1_tlv_map_cause_t map_cause;
    ogs_gtp1_tlv_ms_not_reachable_reason_t ms_not_reachable_reason;
    ogs_gtp1_tlv_gsn_address_t gsn_address;
} ogs_gtp1_send_routeing_information_for_gprs_response_t;

typedef struct ogs_gtp1_failure_report_request_s {
    ogs_gtp1_tlv_imsi_t imsi;
} ogs_gtp1_failure_report_request_t;

typedef struct ogs_gtp1_failure_report_response_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_map_cause_t map_cause;
} ogs_gtp1_failure_report_response_t;

typedef struct ogs_gtp1_note_ms_gprs_present_request_s {
    ogs_gtp1_tlv_imsi_t imsi;
    ogs_gtp1_tlv_gsn_address_t gsn_address;
} ogs_gtp1_note_ms_gprs_present_request_t;

typedef struct ogs_gtp1_note_ms_gprs_present_response_s {
    ogs_gtp1_tlv_cause_t cause;
} ogs_gtp1_note_ms_gprs_present_response_t;

typedef struct ogs_gtp1_identification_request_s {
    ogs_gtp1_tlv_rai_t routeing_area_identity;
    ogs_gtp1_tlv_p_tmsi_t packet_tmsi;
    ogs_gtp1_tlv_p_tmsi_signature_t p_tmsi_signature;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_control_plane;
    ogs_gtp1_tlv_hop_counter_t hop_counter;
} ogs_gtp1_identification_request_t;

typedef struct ogs_gtp1_identification_response_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_imsi_t imsi;
    ogs_gtp1_tlv_authentication_triplet_t authentication_triplet;
    ogs_gtp1_tlv_authentication_quintuplet_t authentication_quintuplet;
    ogs_gtp1_tlv_ue_usage_type_t ue_usage_type;
    ogs_gtp1_tlv_iov_updates_counter_t iov_updates_counter;
} ogs_gtp1_identification_response_t;

typedef struct ogs_gtp1_sgsn_context_request_s {
    ogs_gtp1_tlv_imsi_t imsi;
    ogs_gtp1_tlv_rai_t routeing_area_identity;
    ogs_gtp1_tlv_tlli_t temporary_logical_link_identifier;
    ogs_gtp1_tlv_p_tmsi_t packet_tmsi;
    ogs_gtp1_tlv_p_tmsi_signature_t p_tmsi_signature;
    ogs_gtp1_tlv_ms_validated_t ms_validated;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t alternative_sgsn_address_for_control_plane;
    ogs_gtp1_tlv_sgsn_number_t sgsn_number;
    ogs_gtp1_tlv_rat_type_t rat_type;
    ogs_gtp1_tlv_hop_counter_t hop_counter;
} ogs_gtp1_sgsn_context_request_t;

typedef struct ogs_gtp1_sgsn_context_response_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_imsi_t imsi;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_rab_context_t rab_context;
    ogs_gtp1_tlv_radio_priority_sms_t radio_priority_sms;
    ogs_gtp1_tlv_radio_priority_t radio_priority;
    ogs_gtp1_tlv_packet_flow_id_t packet_flow_id;
    ogs_gtp1_tlv_charging_characteristics_t charging_characteristics;
    ogs_gtp1_tlv_radio_priority_lcs_t radio_priority_lcs;
    ogs_gtp1_tlv_mm_context_t mm_context;
    ogs_gtp1_tlv_pdp_context_t pdp_context;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t alternative_ggsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t alternative_ggsn_address_for_user_traffic;
    ogs_gtp1_tlv_pdp_context_prioritization_t pdp_context_prioritization;
    ogs_gtp1_tlv_mbms_ue_context_t mbms_ue_context;
    ogs_gtp1_tlv_rfsp_index_t subscribed_rfsp_index;
    ogs_gtp1_tlv_rfsp_index_t rfsp_index_in_use;
    ogs_gtp1_tlv_fqdn_t co_located_ggsn_pgw_fqdn;
    ogs_gtp1_tlv_evolved_allocation_retention_priority_ii_t evolved_allocation_retention_priority_ii;
    ogs_gtp1_tlv_extended_common_flags_t extended_common_flags;
    ogs_gtp1_tlv_ue_network_capability_t ue_network_capability;
    ogs_gtp1_tlv_ue_ambr_t ue_ambr;
    ogs_gtp1_tlv_apn_ambr_with_nsapi_t apn_ambr_with_nsapi;
    ogs_gtp1_tlv_signalling_priority_indication_with_nsapi_t signalling_priority_indication_with_nsapi;
    ogs_gtp1_tlv_higher_bitrates_than_16_mbps_flag_t higher_bitrates_than_16_mbps_flag;
    ogs_gtp1_tlv_selection_mode_with_nsapi_t selection_mode_with_nsapi;
    ogs_gtp1_tlv_lhn_id_with_nsapi_t local_home_network_id_with_nsapi;
    ogs_gtp1_tlv_ue_usage_type_t ue_usage_type;
    ogs_gtp1_tlv_extended_common_flags_ii_t extended_common_flags_ii;
    ogs_gtp1_tlv_scef_pdn_connection_t ue_scef_pdn_connection;
    ogs_gtp1_tlv_iov_updates_counter_t iov_updates_counter;
} ogs_gtp1_sgsn_context_response_t;

typedef struct ogs_gtp1_sgsn_context_acknowledge_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_data_ii_t tunnel_endpoint_identifier_data_ii;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_user_traffic;
    ogs_gtp1_tlv_sgsn_number_t sgsn_number;
    ogs_gtp1_tlv_node_identifier_t node_identifier;
} ogs_gtp1_sgsn_context_acknowledge_t;

typedef struct ogs_gtp1_forward_relocation_request_s {
    ogs_gtp1_tlv_imsi_t imsi;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_ranap_cause_t ranap_cause;
    ogs_gtp1_tlv_packet_flow_id_t packet_flow_id;
    ogs_gtp1_tlv_charging_characteristics_t charging_characteristics;
    ogs_gtp1_tlv_mm_context_t mm_context;
    ogs_gtp1_tlv_pdp_context_t pdp_context;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t alternative_ggsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t alternative_ggsn_address_for_user_traffic;
    ogs_gtp1_tlv_target_identification_t target_identification;
    ogs_gtp1_tlv_utran_transparent_container_t utran_transparent_container;
    ogs_gtp1_tlv_pdp_context_prioritization_t pdp_context_prioritization;
    ogs_gtp1_tlv_mbms_ue_context_t mbms_ue_context;
    ogs_gtp1_tlv_selected_plmn_id_t selected_plmn_id;
    ogs_gtp1_tlv_bss_container_t bss_container;
    ogs_gtp1_tlv_cell_identification_t cell_identification;
    ogs_gtp1_tlv_bssgp_cause_t bssgp_cause;
    ogs_gtp1_tlv_ps_handover_xid_parameters_t ps_handover_xid_parameters;
    ogs_gtp1_tlv_direct_tunnel_flags_t direct_tunnel_flags;
    ogs_gtp1_tlv_reliable_inter_rat_handover_info_t reliable_inter_rat_handover_info;
    ogs_gtp1_tlv_rfsp_index_t subscribed_rfsp_index;
    ogs_gtp1_tlv_rfsp_index_t rfsp_index_in_use;
    ogs_gtp1_tlv_fqdn_t co_located_ggsn_pgw_fqdn;
    ogs_gtp1_tlv_evolved_allocation_retention_priority_ii_t evolved_allocation_retention_priority_ii;
    ogs_gtp1_tlv_extended_common_flags_t extended_common_flags;
    ogs_gtp1_tlv_csg_id_t csg_id;
    ogs_gtp1_tlv_cmi_t csg_membership_indication;
    ogs_gtp1_tlv_ue_network_capability_t ue_network_capability;
    ogs_gtp1_tlv_ue_ambr_t ue_ambr;
    ogs_gtp1_tlv_apn_ambr_with_nsapi_t apn_ambr_with_nsapi;
    ogs_gtp1_tlv_signalling_priority_indication_with_nsapi_t signalling_priority_indication_with_nsapi;
    ogs_gtp1_tlv_higher_bitrates_than_16_mbps_flag_t higher_bitrates_than_16_mbps_flag;
    ogs_gtp1_tlv_additional_mm_context_for_srvcc_t additional_mm_context_for_srvcc;
    ogs_gtp1_tlv_additional_flags_for_srvcc_t additional_flags_for_srvcc;
    ogs_gtp1_tlv_stn_sr_t stn_sr;
    ogs_gtp1_tlv_c_msisdn_t c_msisdn;
    ogs_gtp1_tlv_extended_ranap_cause_t extended_ranap_cause;
    ogs_gtp1_tlv_enodeb_id_t enodeb_id;
    ogs_gtp1_tlv_selection_mode_with_nsapi_t selection_mode_with_nsapi;
    ogs_gtp1_tlv_ue_usage_type_t ue_usage_type;
    ogs_gtp1_tlv_extended_common_flags_ii_t extended_common_flags_ii;
    ogs_gtp1_tlv_scef_pdn_connection_t ue_scef_pdn_connection;
} ogs_gtp1_forward_relocation_request_t;

typedef struct ogs_gtp1_forward_relocation_response_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_data_ii_t tunnel_endpoint_identifier_data_ii;
    ogs_gtp1_tlv_ranap_cause_t ranap_cause;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_user_traffic;
    ogs_gtp1_tlv_utran_transparent_container_t utran_transparent_container;
    ogs_gtp1_tlv_rab_setup_information_t rab_setup_information;
    ogs_gtp1_tlv_additional_rab_setup_information_t additional_rab_setup_information;
    ogs_gtp1_tlv_sgsn_number_t sgsn_number;
    ogs_gtp1_tlv_bss_container_t bss_container;
    ogs_gtp1_tlv_bssgp_cause_t bssgp_cause;
    ogs_gtp1_tlv_list_of_set_up_pfcs_t list_of_set_up_pfcs;
    ogs_gtp1_tlv_extended_ranap_cause_t extended_ranap_cause;
    ogs_gtp1_tlv_node_identifier_t node_identfiier;
} ogs_gtp1_forward_relocation_response_t;

typedef struct ogs_gtp1_forward_relocation_complete_s {
} ogs_gtp1_forward_relocation_complete_t;

typedef struct ogs_gtp1_relocation_cancel_request_s {
    ogs_gtp1_tlv_imsi_t imsi;
    ogs_gtp1_tlv_sv_t imei;
    ogs_gtp1_tlv_extended_common_flags_t extended_common_flags;
    ogs_gtp1_tlv_extended_ranap_cause_t extended_ranap_cause;
} ogs_gtp1_relocation_cancel_request_t;

typedef struct ogs_gtp1_relocation_cancel_response_s {
    ogs_gtp1_tlv_cause_t cause;
} ogs_gtp1_relocation_cancel_response_t;

typedef struct ogs_gtp1_forward_srns_context_s {
    ogs_gtp1_tlv_rab_context_t rab_context;
    ogs_gtp1_tlv_source_rnc_pdcp_context_info_t source_rnc_pdcp_context_info;
    ogs_gtp1_tlv_pdu_numbers_t pdu_numbers;
} ogs_gtp1_forward_srns_context_t;

typedef struct ogs_gtp1_forward_relocation_complete_acknowledge_s {
    ogs_gtp1_tlv_cause_t cause;
} ogs_gtp1_forward_relocation_complete_acknowledge_t;

typedef struct ogs_gtp1_forward_srns_context_acknowledge_s {
    ogs_gtp1_tlv_cause_t cause;
} ogs_gtp1_forward_srns_context_acknowledge_t;

typedef struct ogs_gtp1_ue_registration_query_request_s {
    ogs_gtp1_tlv_imsi_t imsi;
} ogs_gtp1_ue_registration_query_request_t;

typedef struct ogs_gtp1_ue_registration_query_response_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_imsi_t imsi;
    ogs_gtp1_tlv_selected_plmn_id_t selected_plmn_id;
} ogs_gtp1_ue_registration_query_response_t;

typedef struct ogs_gtp1_ran_information_relay_s {
    ogs_gtp1_tlv_ran_transparent_container_t ran_transparent_container;
    ogs_gtp1_tlv_rim_routing_address_t rim_routing_address;
    ogs_gtp1_tlv_rim_routing_address_discriminator_t rim_routing_address_discriminator;
} ogs_gtp1_ran_information_relay_t;

typedef struct ogs_gtp1_mbms_notification_request_s {
    ogs_gtp1_tlv_imsi_t imsi;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_nsapi_t nsapi;
    ogs_gtp1_tlv_end_user_address_t end_user_address;
    ogs_gtp1_tlv_access_point_name_t access_point_name;
    ogs_gtp1_tlv_gsn_address_t ggsn_address_for_control_plane;
    ogs_gtp1_tlv_mbms_protocol_configuration_options_t mbms_protocol_configuration_options;
} ogs_gtp1_mbms_notification_request_t;

typedef struct ogs_gtp1_mbms_notification_response_s {
    ogs_gtp1_tlv_cause_t cause;
} ogs_gtp1_mbms_notification_response_t;

typedef struct ogs_gtp1_mbms_notification_reject_request_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_nsapi_t nsapi;
    ogs_gtp1_tlv_end_user_address_t end_user_address;
    ogs_gtp1_tlv_access_point_name_t access_point_name;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_control_plane;
} ogs_gtp1_mbms_notification_reject_request_t;

typedef struct ogs_gtp1_mbms_notification_reject_response_s {
    ogs_gtp1_tlv_cause_t cause;
} ogs_gtp1_mbms_notification_reject_response_t;

typedef struct ogs_gtp1_create_mbms_context_request_s {
    ogs_gtp1_tlv_imsi_t imsi;
    ogs_gtp1_tlv_rai_t routeing_area_identity;
    ogs_gtp1_tlv_recovery_t recovery;
    ogs_gtp1_tlv_selection_mode_t selection_mode;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_trace_reference_t trace_reference;
    ogs_gtp1_tlv_trace_type_t trace_type;
    ogs_gtp1_tlv_end_user_address_t end_user_address;
    ogs_gtp1_tlv_access_point_name_t access_point_name;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_signalling;
    ogs_gtp1_tlv_msisdn_t msisdn;
    ogs_gtp1_tlv_trigger_id_t trigger_id;
    ogs_gtp1_tlv_omc_identity_t omc_identity;
    ogs_gtp1_tlv_rat_type_t rat_type;
    ogs_gtp1_tlv_user_location_information_t user_location_information;
    ogs_gtp1_tlv_ms_time_zone_t ms_time_zone;
    ogs_gtp1_tlv_sv_t imei;
    ogs_gtp1_tlv_mbms_protocol_configuration_options_t mbms_protocol_configuration_options;
    ogs_gtp1_tlv_additional_trace_info_t additonal_trace_info;
    ogs_gtp1_tlv_enhanced_nsapi_t enhanced_nsapi;
    ogs_gtp1_tlv_additional_mbms_trace_info_t additional_mbms_trace_info;
} ogs_gtp1_create_mbms_context_request_t;

typedef struct ogs_gtp1_create_mbms_context_response_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_recovery_t recovery;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_charging_id_t charging_id;
    ogs_gtp1_tlv_gsn_address_t ggsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t alternative_ggsn_address_for_control_plane;
    ogs_gtp1_tlv_charging_gateway_address_t charging_gateway_address;
    ogs_gtp1_tlv_charging_gateway_address_t alternative_charging_gateway_address;
    ogs_gtp1_tlv_mbms_protocol_configuration_options_t mbms_protocol_configuration_options;
} ogs_gtp1_create_mbms_context_response_t;

typedef struct ogs_gtp1_update_mbms_context_request_s {
    ogs_gtp1_tlv_rai_t routeing_area_identity;
    ogs_gtp1_tlv_recovery_t recovery;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_trace_reference_t trace_reference;
    ogs_gtp1_tlv_trace_type_t trace_type;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t alternative_sgsn_address_for_control_plane;
    ogs_gtp1_tlv_trigger_id_t trigger_id;
    ogs_gtp1_tlv_omc_identity_t omc_identity;
    ogs_gtp1_tlv_rat_type_t rat_type;
    ogs_gtp1_tlv_user_location_information_t user_location_information;
    ogs_gtp1_tlv_ms_time_zone_t ms_time_zone;
    ogs_gtp1_tlv_additional_trace_info_t additional_trace_info;
    ogs_gtp1_tlv_enhanced_nsapi_t enhanced_nsapi;
    ogs_gtp1_tlv_additional_mbms_trace_info_t additional_mbms_trace_info;
} ogs_gtp1_update_mbms_context_request_t;

typedef struct ogs_gtp1_update_mbms_context_response_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_recovery_t recovery;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_charging_id_t charging_id;
    ogs_gtp1_tlv_gsn_address_t ggsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t alternative_ggsn_address_for_control_plane;
    ogs_gtp1_tlv_charging_gateway_address_t charging_gateway_address;
    ogs_gtp1_tlv_charging_gateway_address_t alternative_charging_gateway_address;
} ogs_gtp1_update_mbms_context_response_t;

typedef struct ogs_gtp1_delete_mbms_context_request_s {
    ogs_gtp1_tlv_imsi_t imsi;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_end_user_address_t end_user_address;
    ogs_gtp1_tlv_access_point_name_t access_point_name;
    ogs_gtp1_tlv_mbms_protocol_configuration_options_t mbms_protocol_configuration_options;
    ogs_gtp1_tlv_enhanced_nsapi_t enhanced_nsapi;
} ogs_gtp1_delete_mbms_context_request_t;

typedef struct ogs_gtp1_delete_mbms_context_response_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_mbms_protocol_configuration_options_t mbms_protocol_configuration_options;
} ogs_gtp1_delete_mbms_context_response_t;

typedef struct ogs_gtp1_mbms_registration_request_s {
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_end_user_address_t end_user_address;
    ogs_gtp1_tlv_access_point_name_t access_point_name;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t alternative_sgsn_address_for_control_plane;
} ogs_gtp1_mbms_registration_request_t;

typedef struct ogs_gtp1_mbms_registration_response_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_gsn_address_t ggsn_address_for_control_plane;
    ogs_gtp1_tlv_tmgi_t temporary_mobile_group_identity;
    ogs_gtp1_tlv_required_mbms_bearer_capabilities_t required_mbms_bearer_capabilities;
} ogs_gtp1_mbms_registration_response_t;

typedef struct ogs_gtp1_mbms_de_registration_request_s {
    ogs_gtp1_tlv_end_user_address_t end_user_address;
    ogs_gtp1_tlv_access_point_name_t access_point_name;
} ogs_gtp1_mbms_de_registration_request_t;

typedef struct ogs_gtp1_mbms_de_registration_response_s {
    ogs_gtp1_tlv_cause_t cause;
} ogs_gtp1_mbms_de_registration_response_t;

typedef struct ogs_gtp1_mbms_session_start_request_s {
    ogs_gtp1_tlv_recovery_t recovery;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_end_user_address_t end_user_address;
    ogs_gtp1_tlv_access_point_name_t access_point_name;
    ogs_gtp1_tlv_gsn_address_t ggsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t alternative_ggsn_address_for_control_plane;
    ogs_gtp1_tlv_quality_of_service_profile_t quality_of_service_profile;
    ogs_gtp1_tlv_common_flags_t common_flags;
    ogs_gtp1_tlv_tmgi_t temporary_mobile_group_identity;
    ogs_gtp1_tlv_mbms_service_area_t mbms_service_area;
    ogs_gtp1_tlv_mbms_session_identifier_t mbms_session_identifier;
    ogs_gtp1_tlv_mbms_2g_3g_indicator_t mbms_2g_3g_indicator;
    ogs_gtp1_tlv_mbms_session_duration_t mbms_session_duration;
    ogs_gtp1_tlv_mbms_session_repetition_number_t mbms_session_repetition_number;
    ogs_gtp1_tlv_mbms_time_to_data_transfer_t mbms_time_to_data_transfer;
    ogs_gtp1_tlv_mbms_flow_identifier_t mbms_flow_identifier;
    ogs_gtp1_tlv_mbms_ip_multicast_distribution_t mbms_ip_multicast_distribution;
} ogs_gtp1_mbms_session_start_request_t;

typedef struct ogs_gtp1_mbms_session_start_response_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_recovery_t recovery;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_data_i_t tunnel_endpoint_identifier_data_i;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_control_plane;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_user_traffic;
    ogs_gtp1_tlv_gsn_address_t alternative_sgsn_address_for_user_traffic;
    ogs_gtp1_tlv_mbms_distribution_acknowledgement_t mbms_distribution_acknowledgement;
} ogs_gtp1_mbms_session_start_response_t;

typedef struct ogs_gtp1_mbms_session_stop_request_s {
    ogs_gtp1_tlv_end_user_address_t end_user_address;
    ogs_gtp1_tlv_access_point_name_t access_point_name;
    ogs_gtp1_tlv_mbms_flow_identifier_t mbms_flow_identifier;
} ogs_gtp1_mbms_session_stop_request_t;

typedef struct ogs_gtp1_mbms_session_stop_response_s {
    ogs_gtp1_tlv_cause_t cause;
} ogs_gtp1_mbms_session_stop_response_t;

typedef struct ogs_gtp1_mbms_session_update_request_s {
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_end_user_address_t end_user_address;
    ogs_gtp1_tlv_access_point_name_t access_point_name;
    ogs_gtp1_tlv_gsn_address_t ggsn_address_for_control_plane;
    ogs_gtp1_tlv_tmgi_t temporary_mobile_group_identity;
    ogs_gtp1_tlv_mbms_session_duration_t mbms_session_duration;
    ogs_gtp1_tlv_mbms_service_area_t mbms_service_area;
    ogs_gtp1_tlv_mbms_session_identifier_t mbms_session_identifier;
    ogs_gtp1_tlv_mbms_session_repetition_number_t mbms_session_repetition_number;
    ogs_gtp1_tlv_mbms_flow_identifier_t mbms_flow_identifier;
} ogs_gtp1_mbms_session_update_request_t;

typedef struct ogs_gtp1_mbms_session_update_response_s {
    ogs_gtp1_tlv_cause_t cause;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_data_i_t tunnel_endpoint_identifier_data_i;
    ogs_gtp1_tlv_tunnel_endpoint_identifier_control_plane_t tunnel_endpoint_identifier_control_plane;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_data_i;
    ogs_gtp1_tlv_gsn_address_t sgsn_address_for_control_plane;
} ogs_gtp1_mbms_session_update_response_t;

typedef struct ogs_gtp1_message_s {
   ogs_gtp1_header_t h;
   union {
        ogs_gtp1_echo_request_t echo_request;
        ogs_gtp1_echo_response_t echo_response;
        ogs_gtp1_create_pdp_context_request_t create_pdp_context_request;
        ogs_gtp1_create_pdp_context_response_t create_pdp_context_response;
        ogs_gtp1_update_pdp_context_request_t update_pdp_context_request;
        ogs_gtp1_update_pdp_context_response_t update_pdp_context_response;
        ogs_gtp1_delete_pdp_context_request_t delete_pdp_context_request;
        ogs_gtp1_delete_pdp_context_response_t delete_pdp_context_response;
        ogs_gtp1_initiate_pdp_context_activation_request_t initiate_pdp_context_activation_request;
        ogs_gtp1_initiate_pdp_context_activation_response_t initiate_pdp_context_activation_response;
        ogs_gtp1_pdu_notification_request_t pdu_notification_request;
        ogs_gtp1_pdu_notification_response_t pdu_notification_response;
        ogs_gtp1_pdu_notification_reject_request_t pdu_notification_reject_request;
        ogs_gtp1_pdu_notification_reject_response_t pdu_notification_reject_response;
        ogs_gtp1_supported_extension_headers_notification_t supported_extension_headers_notification;
        ogs_gtp1_send_routeing_information_for_gprs_request_t send_routeing_information_for_gprs_request;
        ogs_gtp1_send_routeing_information_for_gprs_response_t send_routeing_information_for_gprs_response;
        ogs_gtp1_failure_report_request_t failure_report_request;
        ogs_gtp1_failure_report_response_t failure_report_response;
        ogs_gtp1_note_ms_gprs_present_request_t note_ms_gprs_present_request;
        ogs_gtp1_note_ms_gprs_present_response_t note_ms_gprs_present_response;
        ogs_gtp1_identification_request_t identification_request;
        ogs_gtp1_identification_response_t identification_response;
        ogs_gtp1_sgsn_context_request_t sgsn_context_request;
        ogs_gtp1_sgsn_context_response_t sgsn_context_response;
        ogs_gtp1_sgsn_context_acknowledge_t sgsn_context_acknowledge;
        ogs_gtp1_forward_relocation_request_t forward_relocation_request;
        ogs_gtp1_forward_relocation_response_t forward_relocation_response;
        ogs_gtp1_forward_relocation_complete_t forward_relocation_complete;
        ogs_gtp1_relocation_cancel_request_t relocation_cancel_request;
        ogs_gtp1_relocation_cancel_response_t relocation_cancel_response;
        ogs_gtp1_forward_srns_context_t forward_srns_context;
        ogs_gtp1_forward_relocation_complete_acknowledge_t forward_relocation_complete_acknowledge;
        ogs_gtp1_forward_srns_context_acknowledge_t forward_srns_context_acknowledge;
        ogs_gtp1_ue_registration_query_request_t ue_registration_query_request;
        ogs_gtp1_ue_registration_query_response_t ue_registration_query_response;
        ogs_gtp1_ran_information_relay_t ran_information_relay;
        ogs_gtp1_mbms_notification_request_t mbms_notification_request;
        ogs_gtp1_mbms_notification_response_t mbms_notification_response;
        ogs_gtp1_mbms_notification_reject_request_t mbms_notification_reject_request;
        ogs_gtp1_mbms_notification_reject_response_t mbms_notification_reject_response;
        ogs_gtp1_create_mbms_context_request_t create_mbms_context_request;
        ogs_gtp1_create_mbms_context_response_t create_mbms_context_response;
        ogs_gtp1_update_mbms_context_request_t update_mbms_context_request;
        ogs_gtp1_update_mbms_context_response_t update_mbms_context_response;
        ogs_gtp1_delete_mbms_context_request_t delete_mbms_context_request;
        ogs_gtp1_delete_mbms_context_response_t delete_mbms_context_response;
        ogs_gtp1_mbms_registration_request_t mbms_registration_request;
        ogs_gtp1_mbms_registration_response_t mbms_registration_response;
        ogs_gtp1_mbms_de_registration_request_t mbms_de_registration_request;
        ogs_gtp1_mbms_de_registration_response_t mbms_de_registration_response;
        ogs_gtp1_mbms_session_start_request_t mbms_session_start_request;
        ogs_gtp1_mbms_session_start_response_t mbms_session_start_response;
        ogs_gtp1_mbms_session_stop_request_t mbms_session_stop_request;
        ogs_gtp1_mbms_session_stop_response_t mbms_session_stop_response;
        ogs_gtp1_mbms_session_update_request_t mbms_session_update_request;
        ogs_gtp1_mbms_session_update_response_t mbms_session_update_response;
   };
} ogs_gtp1_message_t;

int ogs_gtp1_parse_msg(ogs_gtp1_message_t *gtp1_message, ogs_pkbuf_t *pkbuf);
ogs_pkbuf_t *ogs_gtp1_build_msg(ogs_gtp1_message_t *gtp1_message);

#ifdef __cplusplus
}
#endif

#endif /* OGS_GTP1_MESSAGE_H */