aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom/prefix.hpp
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2017-12-07 08:48:02 -0800
committerNeale Ranns <nranns@cisco.com>2017-12-08 08:27:38 +0000
commitd3464b5b4aeea0804e6cc3e1b220673e98d9c4a5 (patch)
tree20a8a70ed8c5582d45f0bc59ad227144658ca249 /src/vpp-api/vom/prefix.hpp
parentacf33e49b99f8046ae42ed5fd8bff47be396dd7c (diff)
VOM: prefix bit fiddling
Change-Id: I4fbf4a574f455628d56e78cefc1a76adc06bc801 Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vpp-api/vom/prefix.hpp')
-rw-r--r--src/vpp-api/vom/prefix.hpp22
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
*/