|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
25 return (ip46_address->ip4.as_u32 == 0);
27 return (ip46_address->as_u64[0] == 0 && ip46_address->as_u64[1] == 0);
34 return (ip46_address->ip4.as_u8[0] == 127);
36 return (ip46_address->as_u64[0] == 0 &&
37 clib_net_to_host_u64 (ip46_address->as_u64[1]) == 1);
50 clib_net_to_host_u64 (
ip6_address->as_u64[1]) == 1);
88 dst->ip4.as_u32 =
src->ip4.as_u32;
104 sizeof (ip6_address_t));
109 [IP_FEATURE_INPUT] = {
119 [IP_FEATURE_OUTPUT] = {
129 [IP_FEATURE_LOCAL] = {
139 [IP_FEATURE_PUNT] = {
149 [IP_FEATURE_DROP] = {
166 const char *feature_name,
168 void *feature_config,
u32 n_feature_config_bytes)
170 if (IP_FEATURE_INPUT == loc)
176 enable, feature_config,
177 n_feature_config_bytes);
181 enable, feature_config,
182 n_feature_config_bytes);
187 enable, feature_config,
188 n_feature_config_bytes);
201 return VNET_API_ERROR_NO_SUCH_FIB;
222 return (
format (s,
"ip4"));
224 return (
format (s,
"ip6"));
227 return (
format (s,
"unknown"));
258 return (
format (s,
"unicast"));
260 return (
format (s,
"multicast"));
263 return (
format (s,
"unknown"));
293 return (format (s, "%s", #v));
298 return (
format (s,
"unknown"));
309 else if (unformat (input, #v)) \
328 return (format (s, "%s", #v));
333 return (
format (s,
"unknown"));
void ip_feature_enable_disable(ip_address_family_t af, ip_sub_address_family_t safi, ip_feature_location_t loc, const char *feature_name, u32 sw_if_index, int enable, void *feature_config, u32 n_feature_config_bytes)
static void ip46_address_mask_ip4(ip46_address_t *ip46)
void ip_set(ip46_address_t *dst, void *src, u8 is_ip4)
enum ip_dscp_t_ ip_dscp_t
uword unformat_ip_sub_address_family(unformat_input_t *input, va_list *args)
void fib_table_set_flow_hash_config(u32 fib_index, fib_protocol_t proto, flow_hash_config_t hash_config)
Set the flow hash configured used by the table.
uword unformat_ip_dscp(unformat_input_t *input, va_list *args)
uword unformat_ip_address_family(unformat_input_t *input, va_list *args)
fib_node_index_t fib_table_lookup(u32 fib_index, const fib_prefix_t *prefix)
Perfom a longest prefix match in the non-forwarding table.
u32 ip_flow_hash_router_id
u8 * format_ip_ecn(u8 *s, va_list *va)
static_always_inline void * clib_memcpy_fast(void *restrict dst, const void *restrict src, size_t n)
#define N_IP_FEATURE_LOCATIONS
enum fib_entry_flag_t_ fib_entry_flag_t
u8 * format_ip_address_family(u8 *s, va_list *args)
int ip_flow_hash_set(ip_address_family_t af, u32 table_id, u32 flow_hash_config)
u32 fib_node_index_t
A typedef of a node index.
u8 ip_is_local_host(ip46_address_t *ip46_address, u8 is_ip4)
enum fib_protocol_t_ fib_protocol_t
Protocol Type.
fib_protocol_t ip_address_family_to_fib_proto(ip_address_family_t af)
description fragment has unexpected format
u8 ip_is_local(u32 fib_index, ip46_address_t *ip46_address, u8 is_ip4)
Checks that an ip is local to the requested fib.
void ip_copy(ip46_address_t *dst, ip46_address_t *src, u8 is_ip4)
manual_print typedef u8 ip4_address[4]
u8 ip6_is_local_host(ip6_address_t *ip6_address)
manual_print typedef u8 ip6_address[16]
fib_entry_flag_t fib_entry_get_flags(fib_node_index_t fib_entry_index)
void ip_flow_hash_router_id_set(u32 router_id)
int vnet_feature_enable_disable(const char *arc_name, const char *node_name, u32 sw_if_index, int enable_disable, void *feature_config, u32 n_feature_config_bytes)
#define FOR_EACH_IP_ADDRESS_SUB_FAMILY(_safi)
enum ip_sub_address_family_t_ ip_sub_address_family_t
u8 ip4_is_local_host(ip4_address_t *ip4_address)
enum ip_feature_location_t_ ip_feature_location_t
u8 * format_ip_sub_address_family(u8 *s, va_list *args)
u32 fib_table_find(fib_protocol_t proto, u32 table_id)
Get the index of the FIB for a Table-ID.
vl_api_interface_index_t sw_if_index
u8 * format_ip_dscp(u8 *s, va_list *va)
Aggregate type for a prefix.
static const char * ip_arc_names[N_IP_FEATURE_LOCATIONS][N_AF][N_SAFI]
enum ip_address_family_t_ ip_address_family_t
u8 ip_is_zero(ip46_address_t *ip46_address, u8 is_ip4)
vl_api_wireguard_peer_flags_t flags