-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathran_ngap_message_handlers.c
1420 lines (1242 loc) · 63.9 KB
/
ran_ngap_message_handlers.c
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
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <semaphore.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdarg.h>
#include <unistd.h>
#include <signal.h>
#include <limits.h>
#include <poll.h>
#include <sys/epoll.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <error.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <resolv.h>
#include "sicore.h"
#include "libAMFAsn.h"
#include "libNasPdu.h"
#include "ngap.h"
void com_ngap_log_hex( u_char * buffer, uint32_t len, char * key, int line)
{
int i = 0;
int iIndex = 0;
int iDumpSize = len * 7;
char sDump[iDumpSize];
memset( sDump, 0, sizeof(sDump));
for( i = 0; i < len; i++)
{
sprintf( &sDump[iIndex], "0x%02X,", buffer[i]);
iIndex += 5;
}
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "%s LEN=%u DATA=[%s] <%d>", key, len, sDump, line);
}
void com_ngap_log_FGSMCause( NASPdu_FGSMCause * mFGSMCause)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "FGSMCause isset=%u CauseValue=%u <%s|%s|%d>", mFGSMCause->isset,
mFGSMCause->CauseValue, __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_FGMMCause( NASPdu_FGMMCause * mFGMMCause)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "FGMMCause isset=%u CauseValue=%u <%s|%s|%d>", mFGMMCause->isset,
mFGMMCause->CauseValue, __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_NASPdu_FGSMobileIdentity( NASPdu_FGSMobileIdentity * mFGSMobileIdentity)
{
if( mFGSMobileIdentity->isset == 1)
{
com_ngap_log_hex( mFGSMobileIdentity->data, mFGSMobileIdentity->Length, "FGSMobileIdentity", __LINE__);
}
else
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "FGSMobileIdentity UnSet <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
}
void com_ngap_log_NASPdu_FGSRegistrationResult( NASPdu_FGSRegistrationResult * oFGSRegistrationResult)
{
if( oFGSRegistrationResult->isset == 1)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "FGSRegistrationResult Length=%u SMSAllowed=%u ResultValue=%u Spare=%u <%s|%s|%d>",
oFGSRegistrationResult->Length, oFGSRegistrationResult->b1.SMSAllowed,
oFGSRegistrationResult->b1.FGSRegistrationResultValue,
oFGSRegistrationResult->b1.Spare,
__FILE__, __FUNCTION__, __LINE__);
}
else
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "FGSRegistrationResult UnSet <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
}
void com_ngap_log_NASPdu_PayloadContainer( NASPdu_PayloadContainer * oPayloadContainer)
{
if( oPayloadContainer->isset == 1)
{
com_ngap_log_hex( oPayloadContainer->data, oPayloadContainer->Length, "PayloadContainer", __LINE__);
}
else
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "PayloadContainer UnSet <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
}
void com_ngap_log_NASPdu_FGMM_UESecurityCapability( NASPdu_FGMM_UESecurityCapability * oUESecurityCapability)
{
if( oUESecurityCapability->isset == 1)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "UESecurityCapability Length=%u %02X %02X %02X %02X <%s|%s|%d>",
oUESecurityCapability->Length, *( uint8_t *) &oUESecurityCapability->b1, *( uint8_t *) &oUESecurityCapability->b2,
*( uint8_t *) &oUESecurityCapability->b3, *( uint8_t *) &oUESecurityCapability->b4,
__FILE__, __FUNCTION__, __LINE__);
}
else
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "UESecurityCapability UnSet <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
}
void com_ngap_log_NASPdu_AuthenticationFailureParameter( NASPdu_AuthenticationFailureParameter * oAuthenticationFailureParameter)
{
if( oAuthenticationFailureParameter->isset == 1)
{
com_ngap_log_hex( oAuthenticationFailureParameter->data, oAuthenticationFailureParameter->Length, "AuthenticationFailureParameter", __LINE__);
}
else
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "AuthenticationFailureParameter UnSet <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
}
void com_ngap_log_NASPdu_FGMMABBA( NASPdu_FGMMABBA * oFGMMABBA)
{
if( oFGMMABBA->isset == 1)
{
com_ngap_log_hex( oFGMMABBA->data, oFGMMABBA->Length, "FGMMABBA", __LINE__);
}
else
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "FGMMABBA UnSet <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
}
void com_ngap_log_NASPdu_AuthenticationResponseParameter( NASPdu_AuthenticationResponseParameter * oAuthenticationResponseParameter)
{
if( oAuthenticationResponseParameter->isset == 1)
{
com_ngap_log_hex( oAuthenticationResponseParameter->data, oAuthenticationResponseParameter->Length, "AuthenticationResponseParameter", __LINE__);
}
else
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "AuthenticationResponseParameter UnSet <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
}
void com_ngap_log_NASPdu_AuthenticationParameterRAND( NASPdu_AuthenticationParameterRAND * oAuthenticationParameterRAND)
{
if( oAuthenticationParameterRAND->isset == 1)
{
com_ngap_log_hex( oAuthenticationParameterRAND->data, 16, "AuthenticationParameterRAND", __LINE__);
}
else
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "AuthenticationParameterRAND UnSet <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
}
void com_ngap_log_NASPdu_AuthenticationParameterAUTN( NASPdu_AuthenticationParameterAUTN * oAuthenticationParameterAUTN)
{
if( oAuthenticationParameterAUTN->isset == 1)
{
com_ngap_log_hex( oAuthenticationParameterAUTN->data, 16, "AuthenticationParameterAUTN", __LINE__);
}
else
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "AuthenticationParameterAUTN UnSet <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
}
void com_ngap_log_NASPdu_EAPMessage( NASPdu_EAPMessage * oEAPMessage)
{
if( oEAPMessage->isset == 1)
{
com_ngap_log_hex( oEAPMessage->data, oEAPMessage->Length, "EAPMessage", __LINE__);
}
else
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "EAPMessage UnSet <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
}
void com_ngap_log_NASPduFGSM_Status( NASPduFGSM_Status * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "SM_Status <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
com_ngap_log_FGSMCause( &objRequest->mFGSMCause);
}
void com_ngap_log_NASPduFGMM_RegistrationRequest( NASPduFGMM_RegistrationRequest * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "RegistrationRequest TSC=%u ngKSI=%u FOR=%u FGSRegistrationType=%u <%s|%s|%d>",
objRequest->b1.TSC,
objRequest->b1.ngKSI, objRequest->b1.FOR, objRequest->b1.FGSRegistrationType,
__FILE__, __FUNCTION__, __LINE__);
com_ngap_log_NASPdu_FGSMobileIdentity( &objRequest->mFGSMobileIdentity);
}
void com_ngap_log_NASPduFGMM_RegistrationAccept( NASPduFGMM_RegistrationAccept * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "RegistrationRequest <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
com_ngap_log_NASPdu_FGSRegistrationResult( &objRequest->mFGSRegistrationResult);
}
void com_ngap_log_NASPduFGMM_RegistrationComplete( NASPduFGMM_RegistrationComplete * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "RegistrationComplete <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_NASPduFGMM_RegistrationReject( NASPduFGMM_RegistrationReject * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "RegistrationReject <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
com_ngap_log_FGMMCause( &objRequest->mFGMMCause);
}
void com_ngap_log_NASPduFGMM_ULNASTransport( NASPduFGMM_ULNASTransport * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "ULNASTransport PayloadContainerType=%u <%s|%s|%d>",
objRequest->b1.PayloadContainerType, __FILE__, __FUNCTION__, __LINE__);
com_ngap_log_NASPdu_PayloadContainer( &objRequest->mPayloadContainer);
}
void com_ngap_log_NASPduFGMM_DLNASTransport( NASPduFGMM_DLNASTransport * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "DLNASTransport PayloadContainerType=%u <%s|%s|%d>",
objRequest->b1.PayloadContainerType, __FILE__, __FUNCTION__, __LINE__);
com_ngap_log_NASPdu_PayloadContainer( &objRequest->mPayloadContainer);
}
void com_ngap_log_NASPduFGMM_DeregistrationRequestUEI( NASPduFGMM_DeregistrationRequestUEI * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "DeregistrationRequestUEI DeRegistrationType=%u ngKSI=%u TSC=%u <%s|%s|%d>",
objRequest->b1.DeRegistrationType, objRequest->b1.ngKSI, objRequest->b1.TSC, __FILE__, __FUNCTION__, __LINE__);
com_ngap_log_NASPdu_FGSMobileIdentity( &objRequest->mFGSMobileIdentity);
}
void com_ngap_log_NASPduFGMM_DeregistrationAcceptUEI( NASPduFGMM_DeregistrationAcceptUEI * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "DeregistrationAcceptUEI <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_NASPduFGMM_DeregistrationRequestUET( NASPduFGMM_DeregistrationRequestUET * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "DeregistrationRequestUET AccessType=%u SwitchOff=%u <%s|%s|%d>",
objRequest->b1.DeRegistrationType_AccessType, objRequest->b1.DeRegistrationType_SwitchOff, __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_NASPduFGMM_DeregistrationAcceptUET( NASPduFGMM_DeregistrationAcceptUET * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "DeregistrationAcceptUET <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_NASPduFGMM_ServiceRequest( NASPduFGMM_ServiceRequest * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "ServiceRequest TSC=%u ngKSI=%u ServiceType=%u <%s|%s|%d>",
objRequest->b1.TSC, objRequest->b1.ngKSI, objRequest->b1.ServiceType,
__FILE__, __FUNCTION__, __LINE__);
com_ngap_log_NASPdu_FGSMobileIdentity( &objRequest->m5GSTMSI);
}
void com_ngap_log_NASPduFGMM_ServiceAccept( NASPduFGMM_ServiceAccept * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "ServiceAccept <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_NASPduFGMM_ServiceReject( NASPduFGMM_ServiceReject * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "ServiceReject <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
com_ngap_log_FGMMCause( &objRequest->mFGMMCause);
}
void com_ngap_log_NASPduFGMM_ConfigurationUpdateCommand( NASPduFGMM_ConfigurationUpdateCommand * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "ConfigurationUpdateCommand <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_NASPduFGMM_ConfigurationUpdateComplete( NASPduFGMM_ConfigurationUpdateComplete * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "ConfigurationUpdateComplete <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_NASPduFGMM_AuthenticationRequest( NASPduFGMM_AuthenticationRequest * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "AuthenticationRequest ngKSI=%u <%s|%s|%d>", objRequest->b1.ngKSI, __FILE__, __FUNCTION__, __LINE__);
com_ngap_log_NASPdu_FGMMABBA( &objRequest->mABBA);
com_ngap_log_NASPdu_AuthenticationParameterRAND( &objRequest->mAuthenticationParameterRAND);
com_ngap_log_NASPdu_AuthenticationParameterAUTN( &objRequest->mAuthenticationParameterAUTN);
com_ngap_log_NASPdu_EAPMessage( &objRequest->mEAPMessage);
}
void com_ngap_log_NASPduFGMM_AuthenticationResponse( NASPduFGMM_AuthenticationResponse * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "AuthenticationResponse <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
com_ngap_log_NASPdu_AuthenticationResponseParameter( &objRequest->mAuthenticationResponseParameter);
com_ngap_log_NASPdu_EAPMessage( &objRequest->mEAPMessage);
}
void com_ngap_log_NASPduFGMM_AuthenticationResult( NASPduFGMM_AuthenticationResult * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "AuthenticationResult ngKSI=%u <%s|%s|%d>", objRequest->b1.ngKSI, __FILE__, __FUNCTION__, __LINE__);
com_ngap_log_NASPdu_FGMMABBA( &objRequest->mABBA);
com_ngap_log_NASPdu_EAPMessage( &objRequest->mEAPMessage);
}
void com_ngap_log_NASPduFGMM_AuthenticationFailure( NASPduFGMM_AuthenticationFailure * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "AuthenticationFailure <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
com_ngap_log_FGMMCause( &objRequest->mFGMMCause);
com_ngap_log_NASPdu_AuthenticationFailureParameter( &objRequest->mAuthenticationFailureParameter);
}
void com_ngap_log_NASPduFGMM_AuthenticationReject( NASPduFGMM_AuthenticationReject * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "AuthenticationReject <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
com_ngap_log_NASPdu_EAPMessage( &objRequest->mEAPMessage);
}
void com_ngap_log_NASPduFGMM_IdentityRequest( NASPduFGMM_IdentityRequest * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "IdentityRequest FGSIdentityType=%u <%s|%s|%d>", objRequest->b1.FGSIdentityType, __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_NASPduFGMM_IdentityResponse( NASPduFGMM_IdentityResponse * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "IdentityResponse <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
com_ngap_log_NASPdu_FGSMobileIdentity( &objRequest->mMobileIdentity);
}
void com_ngap_log_NASPduFGMM_Notification( NASPduFGMM_Notification * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "Notification AccessType=%u <%s|%s|%d>", objRequest->b1.AccessType, __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_NASPduFGMM_NotificationResponse( NASPduFGMM_NotificationResponse * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "NotificationResponse <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_NASPduFGMM_SecurityModeCommand( NASPduFGMM_SecurityModeCommand * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "SecurityModeCommand TypeOfCipheringAlgorithm=%u TSC=%u ngKSI=%u <%s|%s|%d>",
objRequest->mNASSecurityAlgorithms.b1.TypeOfCipheringAlgorithm, objRequest->b1.TSC, objRequest->b1.ngKSI,
__FILE__, __FUNCTION__, __LINE__);
com_ngap_log_NASPdu_FGMM_UESecurityCapability( &objRequest->mUESecurityCapability);
}
void com_ngap_log_NASPduFGMM_SecurityModeComplete( NASPduFGMM_SecurityModeComplete * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "SecurityModeComplete <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_NASPduFGMM_SecurityModeReject( NASPduFGMM_SecurityModeReject * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "SecurityModeReject <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
com_ngap_log_FGMMCause( &objRequest->mFGMMCause);
}
void com_ngap_log_NASPduFGMM_5GMMStatus( NASPduFGMM_5GMMStatus * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "5GMMStatus <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
com_ngap_log_FGMMCause( &objRequest->mFGMMCause);
}
void com_ngap_log_mm_nas_message( SI_NASPduDecode * decodePdu)
{
switch( decodePdu->MessageType)
{
case SI_5GS_MM_REGISTRATION_REQUEST:
com_ngap_log_NASPduFGMM_RegistrationRequest( (NASPduFGMM_RegistrationRequest *)decodePdu->messageObj);
break;
case SI_5GS_MM_REGISTRATION_ACCEPT:
com_ngap_log_NASPduFGMM_RegistrationAccept( (NASPduFGMM_RegistrationAccept *)decodePdu->messageObj);
break;
case SI_5GS_MM_REGISTRATION_COMPLETE:
com_ngap_log_NASPduFGMM_RegistrationComplete( (NASPduFGMM_RegistrationComplete *)decodePdu->messageObj);
break;
case SI_5GS_MM_REGISTRATION_REJECT:
com_ngap_log_NASPduFGMM_RegistrationReject( (NASPduFGMM_RegistrationReject *)decodePdu->messageObj);
break;
case SI_5GS_MM_UE_ORGIN_DE_REGISTRATION_REQUEST:
com_ngap_log_NASPduFGMM_DeregistrationRequestUEI( (NASPduFGMM_DeregistrationRequestUEI *)decodePdu->messageObj);
break;
case SI_5GS_MM_UE_ORGIN_DE_REGISTRATION_ACCEPT:
com_ngap_log_NASPduFGMM_DeregistrationAcceptUEI( (NASPduFGMM_DeregistrationAcceptUEI *)decodePdu->messageObj);
break;
case SI_5GS_MM_UE_TERMI_DE_REGISTRATION_REQUEST:
com_ngap_log_NASPduFGMM_DeregistrationRequestUET( (NASPduFGMM_DeregistrationRequestUET *)decodePdu->messageObj);
break;
case SI_5GS_MM_UE_TERMI_DE_REGISTRATION_ACCEPT:
com_ngap_log_NASPduFGMM_DeregistrationAcceptUET( (NASPduFGMM_DeregistrationAcceptUET *)decodePdu->messageObj);
break;
case SI_5GS_MM_SERVICE_REQUEST:
com_ngap_log_NASPduFGMM_ServiceRequest( (NASPduFGMM_ServiceRequest *)decodePdu->messageObj);
break;
case SI_5GS_MM_SERVICE_REJECT:
com_ngap_log_NASPduFGMM_ServiceReject( (NASPduFGMM_ServiceReject *)decodePdu->messageObj);
break;
case SI_5GS_MM_SERVICE_ACCEPT:
com_ngap_log_NASPduFGMM_ServiceAccept( (NASPduFGMM_ServiceAccept *)decodePdu->messageObj);
break;
case SI_5GS_MM_CONFIGURATION_UPDATE_COMMAND:
com_ngap_log_NASPduFGMM_ConfigurationUpdateCommand( (NASPduFGMM_ConfigurationUpdateCommand *)decodePdu->messageObj);
break;
case SI_5GS_MM_CONFIGURATION_UPDATE_COMPLETE:
com_ngap_log_NASPduFGMM_ConfigurationUpdateComplete( (NASPduFGMM_ConfigurationUpdateComplete *)decodePdu->messageObj);
break;
case SI_5GS_MM_AUTHENTICATION_REQUEST:
com_ngap_log_NASPduFGMM_AuthenticationRequest( (NASPduFGMM_AuthenticationRequest *)decodePdu->messageObj);
break;
case SI_5GS_MM_AUTHENTICATION_RESPONSE:
com_ngap_log_NASPduFGMM_AuthenticationResponse( (NASPduFGMM_AuthenticationResponse *)decodePdu->messageObj);
break;
case SI_5GS_MM_AUTHENTICATION_REJECT:
com_ngap_log_NASPduFGMM_AuthenticationReject( (NASPduFGMM_AuthenticationReject *)decodePdu->messageObj);
break;
case SI_5GS_MM_AUTHENTICATION_FAILURE:
com_ngap_log_NASPduFGMM_AuthenticationFailure( (NASPduFGMM_AuthenticationFailure *)decodePdu->messageObj);
break;
case SI_5GS_MM_AUTHENTICATION_RESULT:
com_ngap_log_NASPduFGMM_AuthenticationResult( (NASPduFGMM_AuthenticationResult *)decodePdu->messageObj);
break;
case SI_5GS_MM_IDENTITY_REQUEST:
com_ngap_log_NASPduFGMM_IdentityRequest( (NASPduFGMM_IdentityRequest *)decodePdu->messageObj);
break;
case SI_5GS_MM_IDENTITY_RESPONSE:
com_ngap_log_NASPduFGMM_IdentityResponse( (NASPduFGMM_IdentityResponse *)decodePdu->messageObj);
break;
case SI_5GS_MM_SECURITY_MODE_COMMAND:
com_ngap_log_NASPduFGMM_SecurityModeCommand( (NASPduFGMM_SecurityModeCommand *)decodePdu->messageObj);
break;
case SI_5GS_MM_SECURITY_MODE_COMPLETE:
com_ngap_log_NASPduFGMM_SecurityModeComplete( (NASPduFGMM_SecurityModeComplete *)decodePdu->messageObj);
break;
case SI_5GS_MM_SECURITY_MODE_REJECT:
com_ngap_log_NASPduFGMM_SecurityModeReject( (NASPduFGMM_SecurityModeReject *)decodePdu->messageObj);
break;
case SI_5GS_MM_STATUS:
com_ngap_log_NASPduFGMM_5GMMStatus( (NASPduFGMM_5GMMStatus *)decodePdu->messageObj);
break;
case SI_5GS_MM_NOTIFICATION:
com_ngap_log_NASPduFGMM_Notification( (NASPduFGMM_Notification *)decodePdu->messageObj);
break;
case SI_5GS_MM_NOTIFICATION_RESPONSE:
com_ngap_log_NASPduFGMM_NotificationResponse( (NASPduFGMM_NotificationResponse *)decodePdu->messageObj);
break;
case SI_5GS_MM_UL_NAS_TRANSPORT:
com_ngap_log_NASPduFGMM_ULNASTransport( (NASPduFGMM_ULNASTransport *)decodePdu->messageObj);
break;
case SI_5GS_MM_DL_NAS_TRANSPORT:
com_ngap_log_NASPduFGMM_DLNASTransport( (NASPduFGMM_DLNASTransport *)decodePdu->messageObj);
break;
default:
__si_log( SI_STK_LOG, 0, SI_LOG_CRITICAL, "received invalid mt=%u <%s|%s|%d>", decodePdu->MessageType, __FILE__, __FUNCTION__, __LINE__);
break;
}
}
void com_ngap_log_NASPdu_IntegrityProtectionMaximumDataRate( NASPdu_IntegrityProtectionMaximumDataRate * oIntegrityProtectionMaximumDataRate)
{
if( oIntegrityProtectionMaximumDataRate->isset == 1)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "5GMMStatus Uplink=%u Downlink=%u <%s|%s|%d>",
oIntegrityProtectionMaximumDataRate->MaximumDataRatePerUEForUserPlaneIntegrityProtection_Uplink,
oIntegrityProtectionMaximumDataRate->MaximumDataRatePerUEForUserPlaneIntegrityProtection_Downlink,
__FILE__, __FUNCTION__, __LINE__);
}
else
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "IntegrityProtectionMaximumDataRate UnSet <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
}
void com_ngap_log_NASPdu_QosRules( NASPdu_QosRules * oQosRules)
{
if( oQosRules->isset == 1)
{
com_ngap_log_hex( oQosRules->data, oQosRules->Length, "QosRules", __LINE__);
}
else
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "QosRules UnSet <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
}
void com_ngap_log_NASPdu_SessionAMBR( NASPdu_SessionAMBR * oSessionAMBR)
{
if( oSessionAMBR->isset == 1)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "Length=%u UnitDownlink=%u Downlink=%u UnitUplink=%u Uplink=%u <%s|%s|%d>",
oSessionAMBR->Length, oSessionAMBR->UnitForSessionAMBRForDownlink, oSessionAMBR->SessionAMBRForDownlink,
oSessionAMBR->UnitForSessionAMBRForUplink, oSessionAMBR->SessionAMBRForUplink,
__FILE__, __FUNCTION__, __LINE__);
}
else
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "SessionAMBR UnSet <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
}
void com_ngap_log_NASPduFGSM_PDUSessionEstablishmentRequest( NASPduFGSM_PDUSessionEstablishmentRequest * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "PDUSessionEstablishmentRequest PDUSessionId=%u ProcedureTransactionIdentity=%u <%s|%s|%d>",
objRequest->pHeader.PDUSessionId, objRequest->pHeader.ProcedureTransactionIdentity,
__FILE__, __FUNCTION__, __LINE__);
com_ngap_log_NASPdu_IntegrityProtectionMaximumDataRate( &objRequest->mIntegrityProtectionMaximumDataRate);
}
void com_ngap_log_NASPduFGSM_PDUSessionEstablishmentAccept( NASPduFGSM_PDUSessionEstablishmentAccept * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "PDUSessionEstablishmentAccept PDUSessionId=%u ProcedureTransactionIdentity=%u PDUSessionType=%u SSCMode=%u <%s|%s|%d>",
objRequest->pHeader.PDUSessionId, objRequest->pHeader.ProcedureTransactionIdentity, objRequest->b1.PDUSessionType, objRequest->b1.SSCMode,
__FILE__, __FUNCTION__, __LINE__);
com_ngap_log_NASPdu_QosRules( &objRequest->mAuthorizedQoSRules);
com_ngap_log_NASPdu_SessionAMBR( &objRequest->mSessionAMBR);
}
void com_ngap_log_NASPduFGSM_PDUSessionEstablishmentReject( NASPduFGSM_PDUSessionEstablishmentReject * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "PDUSessionEstablishmentReject PDUSessionId=%u ProcedureTransactionIdentity=%u <%s|%s|%d>",
objRequest->pHeader.PDUSessionId, objRequest->pHeader.ProcedureTransactionIdentity,
__FILE__, __FUNCTION__, __LINE__);
com_ngap_log_FGSMCause( &objRequest->mFGSMCause);
}
void com_ngap_log_NASPduFGSM_PDUSessionAuthenticationCommand( NASPduFGSM_PDUSessionAuthenticationCommand * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "PDUSessionAuthenticationCommand PDUSessionId=%u ProcedureTransactionIdentity=%u <%s|%s|%d>",
objRequest->pHeader.PDUSessionId, objRequest->pHeader.ProcedureTransactionIdentity,
__FILE__, __FUNCTION__, __LINE__);
com_ngap_log_NASPdu_EAPMessage( &objRequest->mEAPMessage);
}
void com_ngap_log_NASPduFGSM_PDUSessionAuthenticationComplete( NASPduFGSM_PDUSessionAuthenticationComplete * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "PDUSessionAuthenticationComplete PDUSessionId=%u ProcedureTransactionIdentity=%u <%s|%s|%d>",
objRequest->pHeader.PDUSessionId, objRequest->pHeader.ProcedureTransactionIdentity,
__FILE__, __FUNCTION__, __LINE__);
com_ngap_log_NASPdu_EAPMessage( &objRequest->mEAPMessage);
}
void com_ngap_log_NASPduFGSM_PDUSessionAuthenticationResult( NASPduFGSM_PDUSessionAuthenticationResult * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "PDUSessionAuthenticationResult PDUSessionId=%u ProcedureTransactionIdentity=%u <%s|%s|%d>",
objRequest->pHeader.PDUSessionId, objRequest->pHeader.ProcedureTransactionIdentity,
__FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_NASPduFGSM_PDUSessionModificationRequest( NASPduFGSM_PDUSessionModificationRequest * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "PDUSessionModificationRequest PDUSessionId=%u ProcedureTransactionIdentity=%u <%s|%s|%d>",
objRequest->pHeader.PDUSessionId, objRequest->pHeader.ProcedureTransactionIdentity,
__FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_NASPduFGSM_PDUSessionModificationReject( NASPduFGSM_PDUSessionModificationReject * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "PDUSessionModificationReject PDUSessionId=%u ProcedureTransactionIdentity=%u <%s|%s|%d>",
objRequest->pHeader.PDUSessionId, objRequest->pHeader.ProcedureTransactionIdentity,
__FILE__, __FUNCTION__, __LINE__);
com_ngap_log_FGSMCause( &objRequest->mFGSMCause);
}
void com_ngap_log_NASPduFGSM_PDUSessionModificationCommand( NASPduFGSM_PDUSessionModificationCommand * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "PDUSessionModificationCommand PDUSessionId=%u ProcedureTransactionIdentity=%u <%s|%s|%d>",
objRequest->pHeader.PDUSessionId, objRequest->pHeader.ProcedureTransactionIdentity,
__FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_NASPduFGSM_PDUSessionModificationComplete( NASPduFGSM_PDUSessionModificationComplete * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "PDUSessionModificationComplete PDUSessionId=%u ProcedureTransactionIdentity=%u <%s|%s|%d>",
objRequest->pHeader.PDUSessionId, objRequest->pHeader.ProcedureTransactionIdentity,
__FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_NASPduFGSM_PDUSessionModificationCommandReject( NASPduFGSM_PDUSessionModificationCommandReject * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "PDUSessionModificationCommandReject PDUSessionId=%u ProcedureTransactionIdentity=%u <%s|%s|%d>",
objRequest->pHeader.PDUSessionId, objRequest->pHeader.ProcedureTransactionIdentity,
__FILE__, __FUNCTION__, __LINE__);
com_ngap_log_FGSMCause( &objRequest->mFGSMCause);
}
void com_ngap_log_NASPduFGSM_PDUSessionReleaseRequest( NASPduFGSM_PDUSessionReleaseRequest * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "PDUSessionReleaseRequest PDUSessionId=%u ProcedureTransactionIdentity=%u <%s|%s|%d>",
objRequest->pHeader.PDUSessionId, objRequest->pHeader.ProcedureTransactionIdentity,
__FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_log_NASPduFGSM_PDUSessionReleaseReject( NASPduFGSM_PDUSessionReleaseReject * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "PDUSessionReleaseReject PDUSessionId=%u ProcedureTransactionIdentity=%u <%s|%s|%d>",
objRequest->pHeader.PDUSessionId, objRequest->pHeader.ProcedureTransactionIdentity,
__FILE__, __FUNCTION__, __LINE__);
com_ngap_log_FGSMCause( &objRequest->mFGSMCause);
}
void com_ngap_log_NASPduFGSM_PDUSessionReleaseCommand( NASPduFGSM_PDUSessionReleaseCommand * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "PDUSessionReleaseCommand PDUSessionId=%u ProcedureTransactionIdentity=%u <%s|%s|%d>",
objRequest->pHeader.PDUSessionId, objRequest->pHeader.ProcedureTransactionIdentity,
__FILE__, __FUNCTION__, __LINE__);
com_ngap_log_FGSMCause( &objRequest->mFGSMCause);
}
void com_ngap_log_NASPduFGSM_PDUSessionReleaseComplete( NASPduFGSM_PDUSessionReleaseComplete * objRequest)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "PDUSessionReleaseComplete PDUSessionId=%u ProcedureTransactionIdentity=%u <%s|%s|%d>",
objRequest->pHeader.PDUSessionId, objRequest->pHeader.ProcedureTransactionIdentity,
__FILE__, __FUNCTION__, __LINE__);
}
// __si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "5GMMStatus <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
void com_ngap_log_sm_nas_message( SI_NASPduDecode * decodePdu)
{
switch( decodePdu->MessageType)
{
case SI_5GS_SM_PDU_SESSION_ESTABLISHMENT_REQUEST:
com_ngap_log_NASPduFGSM_PDUSessionEstablishmentRequest( (NASPduFGSM_PDUSessionEstablishmentRequest *)decodePdu->messageObj);
break;
case SI_5GS_SM_PDU_SESSION_ESTABLISHMENT_ACCEPT:
com_ngap_log_NASPduFGSM_PDUSessionEstablishmentAccept( (NASPduFGSM_PDUSessionEstablishmentAccept *)decodePdu->messageObj);
break;
case SI_5GS_SM_PDU_SESSION_ESTABLISHMENT_REJECT:
com_ngap_log_NASPduFGSM_PDUSessionEstablishmentReject( (NASPduFGSM_PDUSessionEstablishmentReject *)decodePdu->messageObj);
break;
case SI_5GS_SM_PDU_SESSION_AUTHENTICATION_COMMAND:
com_ngap_log_NASPduFGSM_PDUSessionAuthenticationCommand( (NASPduFGSM_PDUSessionAuthenticationCommand *)decodePdu->messageObj);
break;
case SI_5GS_SM_PDU_SESSION_AUTHENTICATION_COMPLETE:
com_ngap_log_NASPduFGSM_PDUSessionAuthenticationComplete( (NASPduFGSM_PDUSessionAuthenticationComplete *)decodePdu->messageObj);
break;
case SI_5GS_SM_PDU_SESSION_AUTHENTICATION_RESULT:
com_ngap_log_NASPduFGSM_PDUSessionAuthenticationResult( (NASPduFGSM_PDUSessionAuthenticationResult *)decodePdu->messageObj);
break;
case SI_5GS_SM_PDU_SESSION_MODIFICATION_REQUEST:
com_ngap_log_NASPduFGSM_PDUSessionModificationRequest( (NASPduFGSM_PDUSessionModificationRequest *)decodePdu->messageObj);
break;
case SI_5GS_SM_PDU_SESSION_MODIFICATION_REJECT:
com_ngap_log_NASPduFGSM_PDUSessionModificationReject( (NASPduFGSM_PDUSessionModificationReject *)decodePdu->messageObj);
break;
case SI_5GS_SM_PDU_SESSION_MODIFICATION_COMMAND:
com_ngap_log_NASPduFGSM_PDUSessionModificationCommand( (NASPduFGSM_PDUSessionModificationCommand *)decodePdu->messageObj);
break;
case SI_5GS_SM_PDU_SESSION_MODIFICATION_COMPLETE:
com_ngap_log_NASPduFGSM_PDUSessionModificationComplete( (NASPduFGSM_PDUSessionModificationComplete *)decodePdu->messageObj);
break;
case SI_5GS_SM_PDU_SESSION_MODIFICATION_COMMAND_REJECT:
com_ngap_log_NASPduFGSM_PDUSessionModificationCommandReject( (NASPduFGSM_PDUSessionModificationCommandReject *)decodePdu->messageObj);
break;
case SI_5GS_SM_PDU_SESSION_RELEASE_REQUEST:
com_ngap_log_NASPduFGSM_PDUSessionReleaseRequest( (NASPduFGSM_PDUSessionReleaseRequest *)decodePdu->messageObj);
break;
case SI_5GS_SM_PDU_SESSION_RELEASE_REJECT:
com_ngap_log_NASPduFGSM_PDUSessionReleaseReject( (NASPduFGSM_PDUSessionReleaseReject *)decodePdu->messageObj);
break;
case SI_5GS_SM_PDU_SESSION_RELEASE_COMMAND:
com_ngap_log_NASPduFGSM_PDUSessionReleaseCommand( (NASPduFGSM_PDUSessionReleaseCommand *)decodePdu->messageObj);
break;
case SI_5GS_SM_PDU_SESSION_RELEASE_COMPLETE:
com_ngap_log_NASPduFGSM_PDUSessionReleaseComplete( (NASPduFGSM_PDUSessionReleaseComplete *)decodePdu->messageObj);
break;
case SI_5GS_SM_STATUS:
com_ngap_log_NASPduFGSM_Status( (NASPduFGSM_Status *)decodePdu->messageObj);
break;
default:
__si_log( SI_STK_LOG, 0, SI_LOG_CRITICAL, "received invalid mt=%u <%s|%s|%d>", decodePdu->MessageType, __FILE__, __FUNCTION__, __LINE__);
break;
}
}
void com_ngap_log_nas_message( SI_NASPduDecode * decodePdu)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "epd=%u mt=%u sts=%u pos=%u len=%u man-decoded=%u uns-eid=%u <%s|%s|%d>",
decodePdu->ProtocolDiscriminator, decodePdu->MessageType,
decodePdu->iStatus, decodePdu->pos, decodePdu->length, decodePdu->iMandatoryDecoded, decodePdu->iUnSuccessfulElementId, __FILE__, __FUNCTION__, __LINE__);
if( decodePdu->ProtocolDiscriminator == SI_5GS_SM_EPD)
{
com_ngap_log_sm_nas_message( decodePdu);
}
else if( decodePdu->ProtocolDiscriminator == SI_5GS_MM_EPD)
{
com_ngap_log_mm_nas_message( decodePdu);
}
else
{
__si_log( SI_STK_LOG, 0, SI_LOG_CRITICAL, "received invalid epd=%u <%s|%s|%d>", decodePdu->ProtocolDiscriminator, __FILE__, __FUNCTION__, __LINE__);
}
}
void com_ngap_handler_AMFConfigurationUpdate( SI_AMF_DT_PDU_AMFConfigurationUpdate * objAMFConfigurationUpdate, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received AMFConfigurationUpdate message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_AMFConfigurationUpdateAcknowledge( SI_AMF_DT_PDU_AMFConfigurationUpdateAcknowledge * objAMFConfigurationUpdateAcknowledge, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received AMFConfigurationUpdateAcknowledge message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_AMFConfigurationUpdateFailure( SI_AMF_DT_PDU_AMFConfigurationUpdateFailure * objAMFConfigurationUpdateFailure, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received AMFConfigurationUpdateFailure message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_AMFStatusIndication( SI_AMF_DT_PDU_AMFStatusIndication * objAMFStatusIndication, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received AMFStatusIndication message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_CellTrafficTrace( SI_AMF_DT_PDU_CellTrafficTrace * objCellTrafficTrace, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received CellTrafficTrace message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_DeactivateTrace( SI_AMF_DT_PDU_DeactivateTrace * objDeactivateTrace, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received DeactivateTrace message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_DownlinkNASTransport( SI_AMF_DT_PDU_DownlinkNASTransport * objDownlinkNASTransport, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received DownlinkNASTransport message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_DownlinkNonUEAssociatedNRPPaTransport( SI_AMF_DT_PDU_DownlinkNonUEAssociatedNRPPaTransport * objDownlinkNonUEAssociatedNRPPaTransport, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received DownlinkNonUEAssociatedNRPPaTransport message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_DownlinkRANConfigurationTransfer( SI_AMF_DT_PDU_DownlinkRANConfigurationTransfer * objDownlinkRANConfigurationTransfer, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received DownlinkRANConfigurationTransfer message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_DownlinkRANStatusTransfer( SI_AMF_DT_PDU_DownlinkRANStatusTransfer * objDownlinkRANStatusTransfer, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received DownlinkRANStatusTransfer message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_DownlinkUEAssociatedNRPPaTransport( SI_AMF_DT_PDU_DownlinkUEAssociatedNRPPaTransport * objDownlinkUEAssociatedNRPPaTransport, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received DownlinkUEAssociatedNRPPaTransport message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_ErrorIndication( SI_AMF_DT_PDU_ErrorIndication * objErrorIndication, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received ErrorIndication message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_HandoverCancel( SI_AMF_DT_PDU_HandoverCancel * objHandoverCancel, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received HandoverCancel message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_HandoverCancelAcknowledge( SI_AMF_DT_PDU_HandoverCancelAcknowledge * objHandoverCancelAcknowledge, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received HandoverCancelAcknowledge message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_HandoverNotify( SI_AMF_DT_PDU_HandoverNotify * objHandoverNotify, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received HandoverNotify message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_HandoverRequired( SI_AMF_DT_PDU_HandoverRequired * objHandoverRequired, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received HandoverRequired message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_HandoverCommand( SI_AMF_DT_PDU_HandoverCommand * objHandoverCommand, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received HandoverCommand message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_HandoverPreparationFailure( SI_AMF_DT_PDU_HandoverPreparationFailure * objHandoverPreparationFailure, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received HandoverPreparationFailure message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_HandoverRequest( SI_AMF_DT_PDU_HandoverRequest * objHandoverRequest, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received HandoverRequest message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_HandoverRequestAcknowledge( SI_AMF_DT_PDU_HandoverRequestAcknowledge * objHandoverRequestAcknowledge, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received HandoverRequestAcknowledge message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_HandoverFailure( SI_AMF_DT_PDU_HandoverFailure * objHandoverFailure, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received HandoverFailure message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_InitialContextSetupRequest( SI_AMF_DT_PDU_InitialContextSetupRequest * objInitialContextSetupRequest, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received InitialContextSetupRequest message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_InitialContextSetupResponse( SI_AMF_DT_PDU_InitialContextSetupResponse * objInitialContextSetupResponse, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received InitialContextSetupResponse message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_InitialContextSetupFailure( SI_AMF_DT_PDU_InitialContextSetupFailure * objInitialContextSetupFailure, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received InitialContextSetupFailure message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_InitialUEMessage( SI_AMF_DT_PDU_InitialUEMessage * objInitialUEMessage, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received InitialUEMessage message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "nASPDU_isset=%d len=%d", objInitialUEMessage->nASPDU_isset, objInitialUEMessage->nASPDU->length);
if( objInitialUEMessage->nASPDU_isset == 1)
{
SI_NASPduDecode decodePdu;
__si_naspdu_DecodeFGMessage( &decodePdu, objInitialUEMessage->nASPDU->data, objInitialUEMessage->nASPDU->length);
com_ngap_log_nas_message( &decodePdu);
}
}
void com_ngap_handler_LocationReport( SI_AMF_DT_PDU_LocationReport * objLocationReport, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received LocationReport message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_LocationReportingControl( SI_AMF_DT_PDU_LocationReportingControl * objLocationReportingControl, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received LocationReportingControl message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_LocationReportingFailureIndication( SI_AMF_DT_PDU_LocationReportingFailureIndication * objLocationReportingFailureIndication, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received LocationReportingFailureIndication message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_NASNonDeliveryIndication( SI_AMF_DT_PDU_NASNonDeliveryIndication * objNASNonDeliveryIndication, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received NASNonDeliveryIndication message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_NGReset( SI_AMF_DT_PDU_NGReset * objNGReset, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received NGReset message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_NGResetAcknowledge( SI_AMF_DT_PDU_NGResetAcknowledge * objNGResetAcknowledge, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received NGResetAcknowledge message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_NGSetupRequest( SI_AMF_DT_PDU_NGSetupRequest * objNGSetupRequest, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received NGSetupRequest message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_NGSetupResponse( SI_AMF_DT_PDU_NGSetupResponse * objNGSetupResponse, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received NGSetupResponse message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_NGSetupFailure( SI_AMF_DT_PDU_NGSetupFailure * objNGSetupFailure, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received NGSetupFailure message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_OverloadStart( SI_AMF_DT_PDU_OverloadStart * objOverloadStart, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received OverloadStart message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_OverloadStop( SI_AMF_DT_PDU_OverloadStop * objOverloadStop, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received OverloadStop message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_Paging( SI_AMF_DT_PDU_Paging * objPaging, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received Paging message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_PathSwitchRequest( SI_AMF_DT_PDU_PathSwitchRequest * objPathSwitchRequest, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received PathSwitchRequest message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_PathSwitchRequestAcknowledge( SI_AMF_DT_PDU_PathSwitchRequestAcknowledge * objPathSwitchRequestAcknowledge, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received PathSwitchRequestAcknowledge message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_PathSwitchRequestFailure( SI_AMF_DT_PDU_PathSwitchRequestFailure * objPathSwitchRequestFailure, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received PathSwitchRequestFailure message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_PDUSessionResourceModifyRequest( SI_AMF_DT_PDU_PDUSessionResourceModifyRequest * objPDUSessionResourceModifyRequest, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received PDUSessionResourceModifyRequest message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_PDUSessionResourceModifyResponse( SI_AMF_DT_PDU_PDUSessionResourceModifyResponse * objPDUSessionResourceModifyResponse, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received PDUSessionResourceModifyResponse message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_PDUSessionResourceModifyIndication( SI_AMF_DT_PDU_PDUSessionResourceModifyIndication * objPDUSessionResourceModifyIndication, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received PDUSessionResourceModifyIndication message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_PDUSessionResourceModifyConfirm( SI_AMF_DT_PDU_PDUSessionResourceModifyConfirm * objPDUSessionResourceModifyConfirm, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received PDUSessionResourceModifyConfirm message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_PDUSessionResourceNotify( SI_AMF_DT_PDU_PDUSessionResourceNotify * objPDUSessionResourceNotify, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received PDUSessionResourceNotify message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_PDUSessionResourceReleaseCommand( SI_AMF_DT_PDU_PDUSessionResourceReleaseCommand * objPDUSessionResourceReleaseCommand, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received PDUSessionResourceReleaseCommand message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_PDUSessionResourceReleaseResponse( SI_AMF_DT_PDU_PDUSessionResourceReleaseResponse * objPDUSessionResourceReleaseResponse, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received PDUSessionResourceReleaseResponse message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_PDUSessionResourceSetupRequest( SI_AMF_DT_PDU_PDUSessionResourceSetupRequest * objPDUSessionResourceSetupRequest, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received PDUSessionResourceSetupRequest message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
printf("aMFUENGAPID_isset=%u AMF-UE-NGAP-ID=%llu\n", objPDUSessionResourceSetupRequest->aMFUENGAPID_isset, objPDUSessionResourceSetupRequest->aMFUENGAPID);
if( objPDUSessionResourceSetupRequest->aMFUENGAPID_isset == 1)
{
printf("AMF-UE-NGAP-ID=%llu\n", objPDUSessionResourceSetupRequest->aMFUENGAPID);
}
if( objPDUSessionResourceSetupRequest->rANUENGAPID_isset == 1)
{
printf("RAN-UE-NGAP-ID=%llu\n", objPDUSessionResourceSetupRequest->rANUENGAPID);
}
}
void com_ngap_handler_PDUSessionResourceSetupResponse( SI_AMF_DT_PDU_PDUSessionResourceSetupResponse * objPDUSessionResourceSetupResponse, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received PDUSessionResourceSetupResponse message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_PrivateMessage( SI_AMF_DT_PDU_PrivateMessage * objPrivateMessage, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received PrivateMessage message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_PWSCancelRequest( SI_AMF_DT_PDU_PWSCancelRequest * objPWSCancelRequest, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received PWSCancelRequest message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_PWSCancelResponse( SI_AMF_DT_PDU_PWSCancelResponse * objPWSCancelResponse, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received PWSCancelResponse message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}
void com_ngap_handler_PWSFailureIndication( SI_AMF_DT_PDU_PWSFailureIndication * objPWSFailureIndication, SI_NGAPNode * ngNode)
{
__si_log( SI_STK_LOG, 0, SI_LOG_DEBUG, "received PWSFailureIndication message <%s|%s|%d>", __FILE__, __FUNCTION__, __LINE__);
}