-
-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
39 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// This file is a part of UERANSIM open source project. | ||
// Copyright (c) 2021 ALİ GÜNGÖR. | ||
// | ||
// The software and all associated files are licensed under GPL-3.0 | ||
// and subject to the terms and conditions defined in LICENSE file. | ||
// | ||
|
||
#include "task.hpp" | ||
|
||
namespace nr::gnb | ||
{ | ||
|
||
NgapAmfContext *NgapTask::selectAmf(int ueId) | ||
{ | ||
// todo: | ||
for (auto &amf : m_amfCtx) | ||
return amf.second; // return the first one | ||
return nullptr; | ||
} | ||
|
||
NgapAmfContext *NgapTask::selectNewAmfForReAllocation(int ueId, int initiatedAmfId, int amfSetId) | ||
{ | ||
// TODO an arbitrary AMF is selected for now | ||
return findAmfContext(initiatedAmfId); | ||
} | ||
|
||
} // namespace nr::gnb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters