Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
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
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-SMF
Commits
238ffe40
Commit
238ffe40
authored
Apr 29, 2019
by
gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PGW-C: Static IP address allocation
parent
92741a25
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
src/pgwc/pgw_context.cpp
src/pgwc/pgw_context.cpp
+9
-0
No files found.
src/pgwc/pgw_context.cpp
View file @
238ffe40
...
...
@@ -542,9 +542,13 @@ void pgw_context::handle_itti_msg (std::shared_ptr<itti_s5s8_create_session_requ
cause
.
cause_value
=
ALL_DYNAMIC_ADDRESSES_ARE_OCCUPIED
;
cause
.
pce
=
1
;
}
// Static IP address allocation
}
else
if
((
paa_res
)
&&
(
paa
.
is_ip_assigned
()))
{
set_paa
=
true
;
}
}
else
{
// TODO allocation via DHCP
Logger
::
pgwc_app
().
info
(
"TODO PAA via DHCP"
);
}
}
break
;
...
...
@@ -559,6 +563,9 @@ void pgw_context::handle_itti_msg (std::shared_ptr<itti_s5s8_create_session_requ
cause
.
cause_value
=
ALL_DYNAMIC_ADDRESSES_ARE_OCCUPIED
;
cause
.
pce
=
1
;
}
// Static IP address allocation
}
else
if
((
paa_res
)
&&
(
paa
.
is_ip_assigned
()))
{
set_paa
=
true
;
}
}
break
;
...
...
@@ -573,6 +580,8 @@ void pgw_context::handle_itti_msg (std::shared_ptr<itti_s5s8_create_session_requ
cause
.
cause_value
=
ALL_DYNAMIC_ADDRESSES_ARE_OCCUPIED
;
cause
.
pce
=
1
;
}
}
else
if
((
paa_res
)
&&
(
paa
.
is_ip_assigned
()))
{
set_paa
=
true
;
}
}
break
;
...
...
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