forked from magma/magma
-
Notifications
You must be signed in to change notification settings - Fork 2
fix(agw): Modified code to port s_plus_p_gw_eps_bearer_context_information_t to protobuf structure in spgw task #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rsarwad
wants to merge
26
commits into
master
Choose a base branch
from
11191_spgw_teid_ctxt_changes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 18 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
6076675
Modified code to port s_plus_p_gw_eps_bearer_context_information_t to…
rsarwad 504e00d
Merge remote-tracking branch 'upstream/master' into 11191_spgw_teid_c…
rsarwad b146a62
Modified code to port s_plus_p_gw_eps_bearer_context_information_t to…
rsarwad aca564e
Merge remote-tracking branch 'upstream/master' into 11191_spgw_teid_c…
rsarwad cae3d2b
Cleaned up the code
rsarwad 78e007b
Checking in the updated spgw_state.proto/pb.go file
rsarwad 0d9d9ec
Merge remote-tracking branch 'upstream/master' into 11191_spgw_teid_c…
rsarwad 8cd5237
Fixed the issue found during s1ap integ_tests
rsarwad 986ebca
Merge remote-tracking branch 'upstream/master' into 11191_spgw_teid_c…
rsarwad 2cf7c66
Removed the file, test_spgw_state_converter.cpp
rsarwad 492cdd0
Addressed self comments
rsarwad bc721b4
Merge remote-tracking branch 'upstream/master' into 11191_spgw_teid_c…
rsarwad 2b5e6c7
Addressed self review comments
rsarwad b58948f
Addressed review comment
rsarwad cf5ec0b
Addressed review comment
rsarwad d1cd375
Fixed cpp lint errors
rsarwad 73d84cb
Merge branch '11191_spgw_teid_ctxt_changes' of https://github.com/rsa…
rsarwad 9b90fdc
Merge remote-tracking branch 'upstream/master' into 11191_spgw_teid_c…
rsarwad d127f5c
Addressed review comment
rsarwad 30593e8
Merge remote-tracking branch 'upstream/master' into 11191_spgw_teid_c…
rsarwad d7256a0
Addressed review comment
rsarwad 293a884
Merge remote-tracking branch 'upstream/master' into 11191_spgw_teid_c…
rsarwad 0e1e596
Merge remote-tracking branch 'upstream/master' into 11191_spgw_teid_c…
rsarwad f34345e
Merge remote-tracking branch 'upstream/master' into 11191_spgw_teid_c…
rsarwad 348dd09
Merge remote-tracking branch 'upstream/master' into 11191_spgw_teid_c…
rsarwad 4f0a450
Merge remote-tracking branch 'upstream/master' into 11191_spgw_teid_c…
rsarwad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -15,10 +15,11 @@ | |
| * [email protected] | ||
| */ | ||
|
|
||
| #ifndef RPC_CLIENT_H | ||
| #define RPC_CLIENT_H | ||
| #pragma once | ||
|
|
||
| #include "stdint.h" | ||
| #include <stdint.h> | ||
|
|
||
| #include <string> | ||
|
|
||
| #ifdef __cplusplus | ||
| extern "C" { | ||
|
|
@@ -31,7 +32,6 @@ extern "C" { | |
| #endif | ||
|
|
||
| #include "lte/gateway/c/core/common/dynamic_memory_check.h" | ||
| #include "lte/gateway/c/core/oai/include/spgw_state.hpp" | ||
|
|
||
| // Status codes from gRPC | ||
| #define RPC_STATUS_OK 0 | ||
|
|
@@ -75,9 +75,10 @@ int get_assigned_ipv4_block(int index, struct in_addr* netaddr, | |
| * @param pdn_type str for PDN type (ipv4, ipv6...) | ||
| * @return status of gRPC call | ||
| */ | ||
| int pgw_handle_allocate_ipv4_address(const char* subscriber_id, const char* apn, | ||
| const char* pdn_type, teid_t context_teid, | ||
| ebi_t eps_bearer_id); | ||
| int pgw_handle_allocate_ipv4_address(const std::string subscriber_id, | ||
| const std::string apn, | ||
| const std::string pdn_type, | ||
| teid_t context_teid, ebi_t eps_bearer_id); | ||
|
|
||
| /** | ||
| * Allocate IP address from MobilityServiceClient over gRPC (non-blocking), | ||
|
|
@@ -89,9 +90,10 @@ int pgw_handle_allocate_ipv4_address(const char* subscriber_id, const char* apn, | |
| * @return status of gRPC call | ||
| */ | ||
|
|
||
| int pgw_handle_allocate_ipv6_address(const char* subscriber_id, const char* apn, | ||
| const char* pdn_type, teid_t context_teid, | ||
| ebi_t eps_bearer_id); | ||
| int pgw_handle_allocate_ipv6_address(const std::string subscriber_id, | ||
| const std::string apn, | ||
| const std::string pdn_type, | ||
| teid_t context_teid, ebi_t eps_bearer_id); | ||
|
|
||
| /* | ||
| * Release an allocated IP address. | ||
|
|
@@ -102,8 +104,8 @@ int pgw_handle_allocate_ipv6_address(const char* subscriber_id, const char* apn, | |
| * @param subscriber_id: subscriber id string, i.e. IMSI | ||
| * @param addr: IP address to release | ||
| */ | ||
| void release_ipv4_address(const char* subscriber_id, const char* apn, | ||
| const struct in_addr* addr); | ||
| void release_ipv4_address(const std::string subscriber_id, | ||
| const std::string apn, const struct in_addr* addr); | ||
|
|
||
| /* | ||
| * Release an allocated IP address. | ||
|
|
@@ -115,8 +117,8 @@ void release_ipv4_address(const char* subscriber_id, const char* apn, | |
| * @param apn: access point name string, e.g., "ims", "internet", etc. | ||
| * @param addr: IPv6 address to release in "host byte order | ||
| */ | ||
| void release_ipv6_address(const char* subscriber_id, const char* apn, | ||
| const struct in6_addr* addr); | ||
| void release_ipv6_address(const std::string subscriber_id, | ||
| const std::string apn, const struct in6_addr* addr); | ||
|
|
||
| /* | ||
| * Release an allocated IP address. | ||
|
|
@@ -129,7 +131,8 @@ void release_ipv6_address(const char* subscriber_id, const char* apn, | |
| * @param ipv4_addr: IPv4 address to release in "host byte order | ||
| * @param ipv6_addr: IPv6 address to release in "host byte order | ||
| */ | ||
| void release_ipv4v6_address(const char* subscriber_id, const char* apn, | ||
| void release_ipv4v6_address(const std::string subscriber_id, | ||
| const std::string apn, | ||
| const struct in_addr* ipv4_addr, | ||
| const struct in6_addr* ipv6_addr); | ||
|
|
||
|
|
@@ -168,9 +171,8 @@ int get_subscriber_id_from_ipv4(const struct in_addr* addr, | |
| * @return status of gRPC call | ||
| */ | ||
|
|
||
| int pgw_handle_allocate_ipv4v6_address(const char* subscriber_id, | ||
| const char* apn, const char* pdn_type, | ||
| int pgw_handle_allocate_ipv4v6_address(const std::string subscriber_id_str, | ||
| const std::string apn_str, | ||
| const std::string pdn_type_str, | ||
| teid_t context_teid, | ||
| ebi_t eps_bearer_id); | ||
|
|
||
| #endif // RPC_CLIENT_H | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[cpplint] reported by reviewdog 🐶
Found C++ system header after other header. Should be: MobilityClientAPI.h, c system, c++ system, other. [build/include_order] [4]