summaryrefslogtreecommitdiffstats
path: root/extras/vom/vom/api_types.hpp
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-02-12 06:18:30 -0800
committerNeale Ranns <nranns@cisco.com>2019-02-13 09:06:44 +0000
commit6fef74ad3083f630648eae65545a0dd46af1102e (patch)
tree8b7ad67c063ae41ef7acfd15fa7f406198e6e7c7 /extras/vom/vom/api_types.hpp
parent22ad815d654294d77ccbb2b7286a73b544bf3f52 (diff)
VOM: neighbour API flags
Change-Id: Ia664cd4c77f1c5b4bc46c5e191bb57704b3ccc46 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'extras/vom/vom/api_types.hpp')
-rw-r--r--extras/vom/vom/api_types.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/vom/vom/api_types.hpp b/extras/vom/vom/api_types.hpp
index ac9a65e84af..789bbb19401 100644
--- a/extras/vom/vom/api_types.hpp
+++ b/extras/vom/vom/api_types.hpp
@@ -14,6 +14,7 @@
*/
#include <boost/asio/ip/address.hpp>
+#include <vom/neighbour.hpp>
#include <vom/prefix.hpp>
#include <vom/types.hpp>
@@ -23,6 +24,9 @@ namespace VOM {
typedef boost::asio::ip::address ip_address_t;
+vapi_enum_ip_neighbor_flags to_api(const neighbour::flags_t& f);
+const neighbour::flags_t from_api(vapi_enum_ip_neighbor_flags f);
+
void to_api(const ip_address_t& a, vapi_type_address& v);
void to_api(const boost::asio::ip::address_v4& a, vapi_type_ip4_address& v);
void to_api(const boost::asio::ip::address_v6& a, vapi_type_ip6_address& v);