20 #ifndef LB_PLUGIN_LB_UTIL_H_ 21 #define LB_PLUGIN_LB_UTIL_H_ 26 #define ip46_address_type(ip46) (ip46_address_is_ip4(ip46)?IP46_TYPE_IP4:IP46_TYPE_IP6) 27 #define ip46_prefix_is_ip4(ip46, len) ((len) >= 96 && ip46_address_is_ip4(ip46)) 28 #define ip46_prefix_type(ip46, len) (ip46_prefix_is_ip4(ip46, len)?IP46_TYPE_IP4:IP46_TYPE_IP6) 38 #define clib_u32_loop_gt(a, b) (((u32)(a)) - ((u32)(b)) < 0x7fffffff)
u8 * format_ip46_prefix(u8 *s, va_list *args)
void ip46_prefix_normalize(ip46_address_t *prefix, u8 plen)
uword unformat_ip46_prefix(unformat_input_t *input, va_list *args)