FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
lookup.h File Reference
+ Include dependency graph for lookup.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ip_interface_prefix_key_t
 
struct  ip_interface_prefix_t
 
struct  ip_interface_address_t
 
struct  ip_lookup_main_t
 

Typedefs

typedef enum ip_interface_address_flags_t_ ip_interface_address_flags_t
 
typedef struct ip_lookup_main_t ip_lookup_main_t
 

Enumerations

enum  ip_interface_address_flags_t_ { IP_INTERFACE_ADDRESS_FLAG_STALE = (1 << 0) }
 
enum  ip_local_next_t {
  IP_LOCAL_NEXT_DROP, IP_LOCAL_NEXT_PUNT, IP_LOCAL_NEXT_UDP_LOOKUP, IP_LOCAL_NEXT_ICMP,
  IP_LOCAL_NEXT_REASSEMBLY, IP_LOCAL_N_NEXT
}
 

Functions

u8format_ip_flow_hash_config (u8 *s, va_list *args)
 
static void ip_lookup_set_buffer_fib_index (u32 *fib_index_by_sw_if_index, vlib_buffer_t *b)
 
void ip_lookup_init (ip_lookup_main_t *lm, u32 ip_lookup_node_index)
 

Variables

const ip46_address_t zero_addr
 #include <vnet/feature/feature.h> More...
 

Detailed Description

Definitions for all things IP (v4|v6) unicast and multicast lookup related.

  • Adjacency definitions and registration.
  • Callbacks on route add.
  • Callbacks on interface address change.

Definition in file lookup.h.

Typedef Documentation

◆ ip_interface_address_flags_t

◆ ip_lookup_main_t

Enumeration Type Documentation

◆ ip_interface_address_flags_t_

Enumerator
IP_INTERFACE_ADDRESS_FLAG_STALE 

Definition at line 65 of file lookup.h.

◆ ip_local_next_t

Enumerator
IP_LOCAL_NEXT_DROP 
IP_LOCAL_NEXT_PUNT 
IP_LOCAL_NEXT_UDP_LOOKUP 
IP_LOCAL_NEXT_ICMP 
IP_LOCAL_NEXT_REASSEMBLY 
IP_LOCAL_N_NEXT 

Definition at line 109 of file lookup.h.

Function Documentation

◆ format_ip_flow_hash_config()

u8* format_ip_flow_hash_config ( u8 s,
va_list *  args 
)

Definition at line 118 of file lookup.c.

+ Here is the caller graph for this function:

◆ ip_lookup_init()

void ip_lookup_init ( ip_lookup_main_t lm,
u32  ip_lookup_node_index 
)

Definition at line 75 of file lookup.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ip_lookup_set_buffer_fib_index()

static void ip_lookup_set_buffer_fib_index ( u32 fib_index_by_sw_if_index,
vlib_buffer_t b 
)
inlinestatic

Definition at line 168 of file lookup.h.

+ Here is the caller graph for this function:

Variable Documentation

◆ zero_addr

const ip46_address_t zero_addr

#include <vnet/feature/feature.h>

Definition at line 182 of file lookup.c.