Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Black
OpenXG UE
Commits
0d8b1cb5
Commit
0d8b1cb5
authored
Jul 01, 2016
by
Imad ALAWE
Committed by
Frédéric Leroy
Jan 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUGFIX(GTP-U): Add missing ip rules in order to have point to point connection
parent
9bcd12b1
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
16 deletions
+19
-16
cmake_targets/tools/run_enb_ue_virt_s1
cmake_targets/tools/run_enb_ue_virt_s1
+0
-6
openair3/NAS/UE/ESM/DedicatedEpsBearerContextActivation.c
openair3/NAS/UE/ESM/DedicatedEpsBearerContextActivation.c
+1
-1
openair3/NAS/UE/ESM/DefaultEpsBearerContextActivation.c
openair3/NAS/UE/ESM/DefaultEpsBearerContextActivation.c
+1
-1
openair3/NAS/UE/ESM/esm_ebr_context.c
openair3/NAS/UE/ESM/esm_ebr_context.c
+13
-7
openair3/NAS/UE/ESM/esm_ebr_context.h
openair3/NAS/UE/ESM/esm_ebr_context.h
+1
-1
targets/SIMU/USER/oaisim.c
targets/SIMU/USER/oaisim.c
+3
-0
No files found.
cmake_targets/tools/run_enb_ue_virt_s1
View file @
0d8b1cb5
...
...
@@ -247,12 +247,6 @@ function main()
if
[
$?
-ne
0
]
;
then
echo
"200 lte "
>>
/etc/iproute2/rt_tables
fi
ip rule add fwmark 1 table lte
ifconfig oip1 up
ip route add default dev oip1 table lte
# the actual IP address depends on the EPC/MME config file for address pool
ip route add from 192.188.0.0/24 table lte
ip route add to 192.188.0.0/24 table lte
exe_arguments
=
"
$exe_arguments
-s15 -AAWGN -y1 -b1 -u1 -Q0"
...
...
openair3/NAS/UE/ESM/DedicatedEpsBearerContextActivation.c
View file @
0d8b1cb5
...
...
@@ -165,7 +165,7 @@ int esm_proc_dedicated_eps_bearer_context_request(nas_user_t *user, int ebi, int
*
esm_cause
=
ESM_CAUSE_SYNTACTICAL_ERROR_IN_PACKET_FILTER
;
}
else
{
/* Create new dedicated EPS bearer context */
default_ebi
=
esm_ebr_context_create
(
esm_data
,
pid
,
ebi
,
FALSE
,
qos
,
tft
);
default_ebi
=
esm_ebr_context_create
(
esm_data
,
user
->
ueid
,
pid
,
ebi
,
FALSE
,
qos
,
tft
);
if
(
default_ebi
!=
ESM_EBI_UNASSIGNED
)
{
/* Dedicated EPS bearer contextx successfully created */
...
...
openair3/NAS/UE/ESM/DefaultEpsBearerContextActivation.c
View file @
0d8b1cb5
...
...
@@ -127,7 +127,7 @@ int esm_proc_default_eps_bearer_context_request(nas_user_t *user, int pid, int e
if
(
ebi
!=
ESM_EBI_UNASSIGNED
)
{
/* Create new default EPS bearer context */
ebi
=
esm_ebr_context_create
(
esm_data
,
pid
,
ebi
,
TRUE
,
qos
,
NULL
);
ebi
=
esm_ebr_context_create
(
esm_data
,
user
->
ueid
,
pid
,
ebi
,
TRUE
,
qos
,
NULL
);
if
(
ebi
!=
ESM_EBI_UNASSIGNED
)
{
/* Default EPS bearer contextx successfully created */
...
...
openair3/NAS/UE/ESM/esm_ebr_context.c
View file @
0d8b1cb5
...
...
@@ -98,7 +98,7 @@ static int _esm_ebr_context_check_precedence(const network_tft_t *,
** **
***************************************************************************/
int
esm_ebr_context_create
(
esm_data_t
*
esm_data
,
esm_data_t
*
esm_data
,
int
ueid
,
int
pid
,
int
ebi
,
int
is_default
,
const
network_qos_t
*
qos
,
const
network_tft_t
*
tft
)
{
...
...
@@ -206,7 +206,7 @@ int esm_ebr_context_create(
char
*
netmask
=
NULL
;
char
broadcast
[
INET_ADDRSTRLEN
];
struct
in_addr
in_addr
;
char
command_line
[
128
];
char
command_line
[
500
];
int
res
;
switch
(
pdn
->
type
)
{
...
...
@@ -272,11 +272,17 @@ int esm_ebr_context_create(
}
res
=
sprintf
(
command_line
,
"ifconfig oip1 %s netmask %s broadcast %s"
,
ipv4_addr
,
netmask
,
broadcast
);
(
void
)
res
;
/* avoid gcc warning "set but not used" */
// AssertFatal((res > 0) && (res < 128),
// "error in system command line");
"ifconfig oip%d %s netmask %s broadcast %s up && "
"ip rule add from %s/32 table %d && "
"ip rule add to %s/32 table %d && "
"ip route add default dev oip%d table %d"
,
ueid
+
1
,
ipv4_addr
,
netmask
,
broadcast
,
ipv4_addr
,
ueid
+
201
,
ipv4_addr
,
ueid
+
201
,
ueid
+
1
,
ueid
+
201
);
if
(
res
<
0
)
{
LOG_TRACE
(
WARNING
,
"ESM-PROC - Failed to system command string"
);
}
LOG_TRACE
(
INFO
,
"ESM-PROC - executing %s "
,
command_line
);
...
...
openair3/NAS/UE/ESM/esm_ebr_context.h
View file @
0d8b1cb5
...
...
@@ -66,7 +66,7 @@ typedef enum {
/****************** E X P O R T E D F U N C T I O N S ******************/
/****************************************************************************/
int
esm_ebr_context_create
(
esm_data_t
*
esm_data
,
int
pid
,
int
ebi
,
int
is_default
,
int
esm_ebr_context_create
(
esm_data_t
*
esm_data
,
int
ueid
,
int
pid
,
int
ebi
,
int
is_default
,
const
network_qos_t
*
qos
,
const
network_tft_t
*
tft
);
int
esm_ebr_context_release
(
nas_user_t
*
user
,
int
ebi
,
int
*
pid
,
int
*
bid
);
...
...
targets/SIMU/USER/oaisim.c
View file @
0d8b1cb5
...
...
@@ -1886,6 +1886,9 @@ oai_shutdown (void)
for
(
int
i
=
0
;
i
<
NUMBER_OF_eNB_MAX
+
NUMBER_OF_UE_MAX
;
i
++
)
if
(
oai_emulation
.
info
.
oai_ifup
[
i
]
==
1
)
{
char
interfaceName
[
8
];
char
command_line
[
100
];
sprintf
(
command_line
,
"while ip rule del table %d; do true; done"
,
i
+
201
);
system
(
command_line
);
snprintf
(
interfaceName
,
sizeof
(
interfaceName
),
"oai%d"
,
i
);
bringInterfaceUp
(
interfaceName
,
0
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment