diff options
Diffstat (limited to 'src/vpp-api/vom/prefix.hpp')
-rw-r--r-- | src/vpp-api/vom/prefix.hpp | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/vpp-api/vom/prefix.hpp b/src/vpp-api/vom/prefix.hpp index 3277929bcce..e395e1760ca 100644 --- a/src/vpp-api/vom/prefix.hpp +++ b/src/vpp-api/vom/prefix.hpp @@ -170,17 +170,17 @@ public: /** * Return a address representation of the mask, e.g. 255.255.0.0 */ - boost::asio::ip::address_v4 mask() const; + boost::asio::ip::address mask() const; /** * get the lowest address in the prefix */ - boost::asio::ip::address_v4 low() const; + prefix_t low() const; /** * Get the highest address in the prefix */ - boost::asio::ip::address_v4 high() const; + prefix_t high() const; /** * Get the L3 protocol @@ -208,6 +208,22 @@ boost::asio::ip::address_v4 operator&(const boost::asio::ip::address_v4& addr1, boost::asio::ip::address_v4 operator~(const boost::asio::ip::address_v4& addr1); +boost::asio::ip::address_v6 operator|(const boost::asio::ip::address_v6& addr1, + const boost::asio::ip::address_v6& addr2); + +boost::asio::ip::address_v6 operator&(const boost::asio::ip::address_v6& addr1, + const boost::asio::ip::address_v6& addr2); + +boost::asio::ip::address_v6 operator~(const boost::asio::ip::address_v6& addr1); + +boost::asio::ip::address operator|(const boost::asio::ip::address& addr1, + const boost::asio::ip::address& addr2); + +boost::asio::ip::address operator&(const boost::asio::ip::address& addr1, + const boost::asio::ip::address& addr2); + +boost::asio::ip::address operator~(const boost::asio::ip::address& addr1); + /** * Ostream printer for prefix_t */ |