X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fip%2Fip.h;h=3b3a465d0429fe8a292d280e8840b5bc2b2f82d3;hb=2096063b0856808326cbd2c1c8a3a786c98ea896;hp=70b4ccd8dd732537115c3cffd0713adc83837e73;hpb=68b0fb0c620c7451ef1a6380c43c39de6614db51;p=vpp.git diff --git a/src/vnet/ip/ip.h b/src/vnet/ip/ip.h index 70b4ccd8dd7..3b3a465d042 100644 --- a/src/vnet/ip/ip.h +++ b/src/vnet/ip/ip.h @@ -184,6 +184,21 @@ void ip_del_all_interface_addresses (vlib_main_t * vm, u32 sw_if_index); extern vlib_node_registration_t ip4_inacl_node; extern vlib_node_registration_t ip6_inacl_node; +void ip_table_create (fib_protocol_t fproto, u32 table_id, u8 is_api, + const u8 * name); + +void ip_table_delete (fib_protocol_t fproto, u32 table_id, u8 is_api); + +int ip_table_bind (fib_protocol_t fproto, u32 sw_if_index, + u32 table_id, u8 is_api); + +u8 ip_is_zero (ip46_address_t * ip46_address, u8 is_ip4); +u8 ip_is_local_host (ip46_address_t * ip46_address, u8 is_ip4); +u8 ip_is_local (u32 fib_index, ip46_address_t * ip46_address, u8 is_ip4); +u8 ip_interface_has_address (u32 sw_if_index, ip46_address_t * ip, u8 is_ip4); +void ip_copy (ip46_address_t * dst, ip46_address_t * src, u8 is_ip4); +void ip_set (ip46_address_t * dst, void *src, u8 is_ip4); + #endif /* included_ip_main_h */ /*