forked from SitrakaResearchAndPOC/oai_redirection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhisto-correc
75 lines (68 loc) · 3.26 KB
/
histo-correc
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
https://icepng.github.io/2020/09/23/RRCConnectionRelease/
1 setxkbmap fr
2 apt-get updae
3 apt-get update
4 ls
5 apt-get install linux-image-3.19.0-61-lowlatency linux-headers-3.19.0-61-lowlatency
6 uname -r
7 apt-get install linux-image-lowlatency linux-headers-lowlatency
8 reboot
9 uname -r
10 setxkbmap fr
11 apt-get install git
12 ls
13 cd Desktop/
14 mkdir myoai
15 git clone https://gitlab.eurecom.fr/oai/openairinterface5g.git
16 cd openairinterface5g/cmake_targets/build_oai
17 cd openairinterface5g/cmake_targets/
18 ls
19 ./build_oai -I --eNB -x --install-system-files -w USRP
20 ls
21 ./build_oai -I --eNB -x --install-system-files -w USRP
71 gedit 36331-860.txt
72 gedit EUTRA-RRC-Definitions-86.asn
74 gedit EUTRA-RRC-Definitions-20.asn
75 gedit EUTRA-RRC-Definitions-a20.asn
82 gedit asn1c/ASN1_files/EUTRA-RRC-Definitions-a20.asn
find -name asn1_msg.c
Change do_RRCConnectionRelease :
--- asn1_msg_redir.c 2023-05-21 12:10:58.000000000 -0700
+++ asn1_msg.c 2023-05-21 12:10:58.000000000 -0700
@@ -4395,11 +4395,8 @@
}
-/*Let's add some code by sitraka
-
-*/
-
-
+// Let's add some code by sitraka : all ASN CODE IS IN CMAKE
+// FOR TAU REJECT AND ATTACH REJECT , HAVE A LOOK ON 17146_FULLTEXT.pdf
uint8_t do_RRCConnectionRelease(uint8_t Mod_id,
uint8_t *buffer,
@@ -4412,12 +4409,24 @@
dl_dcch_msg.message.present = LTE_DL_DCCH_MessageType_PR_c1;
dl_dcch_msg.message.choice.c1.present = LTE_DL_DCCH_MessageType__c1_PR_rrcConnectionRelease;
rrcConnectionRelease = &dl_dcch_msg.message.choice.c1.choice.rrcConnectionRelease;
+
+//adding by sitraka
+LTE_RedirectedCarrierInfo_t rInfo;
+ // geran
+ rInfo.present = LTE_RedirectedCarrierInfo_PR_geran;
+ LTE_CarrierFreqsGERAN_t cfgt;
+ cfgt.startingARFCN = 636;
+ cfgt.bandIndicator = 0;
+ cfgt.followingARFCNs.present = LTE_CarrierFreqsGERAN__followingARFCNs_PR_equallySpacedARFCNs;
+ cfgt.followingARFCNs.choice.equallySpacedARFCNs.arfcn_Spacing = 1;
+ cfgt.followingARFCNs.choice.equallySpacedARFCNs.numberOfFollowingARFCNs = 0;
+ rInfo.choice.geran = cfgt;
// RRCConnectionRelease
rrcConnectionRelease->rrc_TransactionIdentifier = Transaction_id;
rrcConnectionRelease->criticalExtensions.present = LTE_RRCConnectionRelease__criticalExtensions_PR_c1;
rrcConnectionRelease->criticalExtensions.choice.c1.present =LTE_RRCConnectionRelease__criticalExtensions__c1_PR_rrcConnectionRelease_r8 ;
rrcConnectionRelease->criticalExtensions.choice.c1.choice.rrcConnectionRelease_r8.releaseCause = LTE_ReleaseCause_other;
- rrcConnectionRelease->criticalExtensions.choice.c1.choice.rrcConnectionRelease_r8.redirectedCarrierInfo = NULL;
+ rrcConnectionRelease->criticalExtensions.choice.c1.choice.rrcConnectionRelease_r8.redirectedCarrierInfo = &rInfo; //changing by Sitraka
rrcConnectionRelease->criticalExtensions.choice.c1.choice.rrcConnectionRelease_r8.idleModeMobilityControlInfo = NULL;
rrcConnectionRelease->criticalExtensions.choice.c1.choice.rrcConnectionRelease_r8.nonCriticalExtension=CALLOC(1,
sizeof(*rrcConnectionRelease->criticalExtensions.choice.c1.choice.rrcConnectionRelease_r8.nonCriticalExtension));