diff options
author | John Newbery <john@johnnewbery.com> | 2021-09-01 12:12:52 +0100 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2022-04-20 14:35:52 +0100 |
commit | 6b2268162e96bc4fe1a3ebad454996b1d3d4615c (patch) | |
tree | 15caa81795f3a8b503a36489da51c0f718dc62cc /src/netgroup.cpp | |
parent | 19431560e3e1124979c60f39eca9429c4a0df29f (diff) |
[netgroupman] Add GetMappedAS() and GetGroup()
These currently call through to the CNetAddr methods. The logic will be moved in a future commit.
Diffstat (limited to 'src/netgroup.cpp')
-rw-r--r-- | src/netgroup.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/netgroup.cpp b/src/netgroup.cpp index 17a48ad025..54c65d356c 100644 --- a/src/netgroup.cpp +++ b/src/netgroup.cpp @@ -3,3 +3,13 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <netgroup.h> + +std::vector<unsigned char> NetGroupManager::GetGroup(const CNetAddr& address) const +{ + return address.GetGroup(m_asmap); +} + +uint32_t NetGroupManager::GetMappedAS(const CNetAddr& address) const +{ + return address.GetMappedAS(m_asmap); +} |