Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
UERANSIM
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
Libraries
UERANSIM
Commits
28510561
Commit
28510561
authored
Feb 28, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Registration updating improvement
parent
2ab93e5b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
src/ue/mm/mm.hpp
src/ue/mm/mm.hpp
+3
-3
src/ue/mm/register.cpp
src/ue/mm/register.cpp
+5
-5
src/ue/mm/timer.cpp
src/ue/mm/timer.cpp
+1
-1
No files found.
src/ue/mm/mm.hpp
View file @
28510561
...
@@ -88,13 +88,13 @@ class NasMm
...
@@ -88,13 +88,13 @@ class NasMm
private:
/* Registration */
private:
/* Registration */
void
sendInitialRegistration
(
bool
isEmergencyReg
,
bool
dueToDereg
);
void
sendInitialRegistration
(
bool
isEmergencyReg
,
bool
dueToDereg
);
void
send
Updating
Registration
(
ERegUpdateCause
updateCause
);
void
send
Mobility
Registration
(
ERegUpdateCause
updateCause
);
void
receiveRegistrationAccept
(
const
nas
::
RegistrationAccept
&
msg
);
void
receiveRegistrationAccept
(
const
nas
::
RegistrationAccept
&
msg
);
void
receiveInitialRegistrationAccept
(
const
nas
::
RegistrationAccept
&
msg
);
void
receiveInitialRegistrationAccept
(
const
nas
::
RegistrationAccept
&
msg
);
void
receive
Updating
RegistrationAccept
(
const
nas
::
RegistrationAccept
&
msg
);
void
receive
Mobility
RegistrationAccept
(
const
nas
::
RegistrationAccept
&
msg
);
void
receiveRegistrationReject
(
const
nas
::
RegistrationReject
&
msg
);
void
receiveRegistrationReject
(
const
nas
::
RegistrationReject
&
msg
);
void
receiveInitialRegistrationReject
(
const
nas
::
RegistrationReject
&
msg
);
void
receiveInitialRegistrationReject
(
const
nas
::
RegistrationReject
&
msg
);
void
receive
Updating
RegistrationReject
(
const
nas
::
RegistrationReject
&
msg
);
void
receive
Mobility
RegistrationReject
(
const
nas
::
RegistrationReject
&
msg
);
void
handleCommonAbnormalRegFailure
(
nas
::
ERegistrationType
regType
);
void
handleCommonAbnormalRegFailure
(
nas
::
ERegistrationType
regType
);
private:
/* Authentication */
private:
/* Authentication */
...
...
src/ue/mm/register.cpp
View file @
28510561
...
@@ -101,7 +101,7 @@ void NasMm::sendInitialRegistration(bool isEmergencyReg, bool dueToDereg)
...
@@ -101,7 +101,7 @@ void NasMm::sendInitialRegistration(bool isEmergencyReg, bool dueToDereg)
m_timers
->
t3511
.
stop
();
m_timers
->
t3511
.
stop
();
}
}
void
NasMm
::
send
Updating
Registration
(
ERegUpdateCause
updateCause
)
void
NasMm
::
send
Mobility
Registration
(
ERegUpdateCause
updateCause
)
{
{
if
(
m_rmState
==
ERmState
::
RM_DEREGISTERED
)
if
(
m_rmState
==
ERmState
::
RM_DEREGISTERED
)
{
{
...
@@ -192,7 +192,7 @@ void NasMm::receiveRegistrationAccept(const nas::RegistrationAccept &msg)
...
@@ -192,7 +192,7 @@ void NasMm::receiveRegistrationAccept(const nas::RegistrationAccept &msg)
regType
==
nas
::
ERegistrationType
::
EMERGENCY_REGISTRATION
)
regType
==
nas
::
ERegistrationType
::
EMERGENCY_REGISTRATION
)
receiveInitialRegistrationAccept
(
msg
);
receiveInitialRegistrationAccept
(
msg
);
else
else
receive
Updating
RegistrationAccept
(
msg
);
receive
Mobility
RegistrationAccept
(
msg
);
}
}
void
NasMm
::
receiveInitialRegistrationAccept
(
const
nas
::
RegistrationAccept
&
msg
)
void
NasMm
::
receiveInitialRegistrationAccept
(
const
nas
::
RegistrationAccept
&
msg
)
...
@@ -302,7 +302,7 @@ void NasMm::receiveInitialRegistrationAccept(const nas::RegistrationAccept &msg)
...
@@ -302,7 +302,7 @@ void NasMm::receiveInitialRegistrationAccept(const nas::RegistrationAccept &msg)
m_logger
->
info
(
"%s is successful"
,
nas
::
utils
::
EnumToString
(
regType
));
m_logger
->
info
(
"%s is successful"
,
nas
::
utils
::
EnumToString
(
regType
));
}
}
void
NasMm
::
receive
Updating
RegistrationAccept
(
const
nas
::
RegistrationAccept
&
msg
)
void
NasMm
::
receive
Mobility
RegistrationAccept
(
const
nas
::
RegistrationAccept
&
msg
)
{
{
// "The UE, upon receiving a REGISTRATION ACCEPT message, shall delete its old TAI list and store the received TAI
// "The UE, upon receiving a REGISTRATION ACCEPT message, shall delete its old TAI list and store the received TAI
// list. If there is no TAI list received, the UE shall consider the old TAI list as valid."
// list. If there is no TAI list received, the UE shall consider the old TAI list as valid."
...
@@ -421,7 +421,7 @@ void NasMm::receiveRegistrationReject(const nas::RegistrationReject &msg)
...
@@ -421,7 +421,7 @@ void NasMm::receiveRegistrationReject(const nas::RegistrationReject &msg)
regType
==
nas
::
ERegistrationType
::
EMERGENCY_REGISTRATION
)
regType
==
nas
::
ERegistrationType
::
EMERGENCY_REGISTRATION
)
receiveInitialRegistrationReject
(
msg
);
receiveInitialRegistrationReject
(
msg
);
else
else
receive
Updating
RegistrationReject
(
msg
);
receive
Mobility
RegistrationReject
(
msg
);
}
}
void
NasMm
::
receiveInitialRegistrationReject
(
const
nas
::
RegistrationReject
&
msg
)
void
NasMm
::
receiveInitialRegistrationReject
(
const
nas
::
RegistrationReject
&
msg
)
...
@@ -575,7 +575,7 @@ void NasMm::receiveInitialRegistrationReject(const nas::RegistrationReject &msg)
...
@@ -575,7 +575,7 @@ void NasMm::receiveInitialRegistrationReject(const nas::RegistrationReject &msg)
}
}
}
}
void
NasMm
::
receive
Updating
RegistrationReject
(
const
nas
::
RegistrationReject
&
msg
)
void
NasMm
::
receive
Mobility
RegistrationReject
(
const
nas
::
RegistrationReject
&
msg
)
{
{
// TODO:
// TODO:
...
...
src/ue/mm/timer.cpp
View file @
28510561
...
@@ -59,7 +59,7 @@ void NasMm::onTimerExpire(nas::NasTimer &timer)
...
@@ -59,7 +59,7 @@ void NasMm::onTimerExpire(nas::NasTimer &timer)
if
(
m_mmState
==
EMmState
::
MM_REGISTERED
&&
m_cmState
==
ECmState
::
CM_CONNECTED
)
if
(
m_mmState
==
EMmState
::
MM_REGISTERED
&&
m_cmState
==
ECmState
::
CM_CONNECTED
)
{
{
logExpired
();
logExpired
();
send
Updating
Registration
(
ERegUpdateCause
::
PERIODIC_REGISTRATION
);
send
Mobility
Registration
(
ERegUpdateCause
::
PERIODIC_REGISTRATION
);
}
}
break
;
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