Use IP address types on UDP encap API
[vpp.git] / src / vnet / fib / fib_types.h
index 7f186ac..805f8e1 100644 (file)
@@ -82,6 +82,16 @@ fib_ip_proto(bool is_ip6)
   return (is_ip6) ? FIB_PROTOCOL_IP6 : FIB_PROTOCOL_IP4;
 }
 
+/**
+ * @brief Convert from fib_protocol to ip46_type
+ */
+extern ip46_type_t fib_proto_to_ip46(fib_protocol_t fproto);
+
+/**
+ * @brief Convert from ip46_type to fib_protocol
+ */
+extern fib_protocol_t fib_proto_from_ip46(ip46_type_t iproto);
+
 /**
  * @brief Convert from a protocol to a link type
  */