FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
ip.c File Reference
+ Include dependency graph for ip.c:

Go to the source code of this file.

Functions

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 ip4_is_local_host (ip4_address_t *ip4_address)
 
u8 ip6_is_local_host (ip6_address_t *ip6_address)
 
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. More...
 
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)
 
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)
 
int ip_flow_hash_set (ip_address_family_t af, u32 table_id, u32 flow_hash_config)
 
void ip_flow_hash_router_id_set (u32 router_id)
 
u8format_ip_address_family (u8 *s, va_list *args)
 
uword unformat_ip_address_family (unformat_input_t *input, va_list *args)
 
u8format_ip_sub_address_family (u8 *s, va_list *args)
 
uword unformat_ip_sub_address_family (unformat_input_t *input, va_list *args)
 
u8format_ip_dscp (u8 *s, va_list *va)
 
uword unformat_ip_dscp (unformat_input_t *input, va_list *args)
 
u8format_ip_ecn (u8 *s, va_list *va)
 

Variables

u32 ip_flow_hash_router_id
 
static const char * ip_arc_names [N_IP_FEATURE_LOCATIONS][N_AF][N_SAFI]
 

Function Documentation

◆ format_ip_address_family()

u8* format_ip_address_family ( u8 s,
va_list *  args 
)

Definition at line 215 of file ip.c.

+ Here is the caller graph for this function:

◆ format_ip_dscp()

u8* format_ip_dscp ( u8 s,
va_list *  va 
)

Definition at line 285 of file ip.c.

+ Here is the caller graph for this function:

◆ format_ip_ecn()

u8* format_ip_ecn ( u8 s,
va_list *  va 
)

Definition at line 320 of file ip.c.

+ Here is the caller graph for this function:

◆ format_ip_sub_address_family()

u8* format_ip_sub_address_family ( u8 s,
va_list *  args 
)

Definition at line 251 of file ip.c.

◆ ip4_is_local_host()

u8 ip4_is_local_host ( ip4_address_t ip4_address)

Definition at line 41 of file ip.c.

+ Here is the caller graph for this function:

◆ ip6_is_local_host()

u8 ip6_is_local_host ( ip6_address_t *  ip6_address)

Definition at line 47 of file ip.c.

+ Here is the caller graph for this function:

◆ ip_copy()

void ip_copy ( ip46_address_t *  dst,
ip46_address_t *  src,
u8  is_ip4 
)

Definition at line 83 of file ip.c.

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

◆ ip_feature_enable_disable()

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 
)

Definition at line 163 of file ip.c.

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

◆ ip_flow_hash_router_id_set()

void ip_flow_hash_router_id_set ( u32  router_id)

Definition at line 209 of file ip.c.

+ Here is the caller graph for this function:

◆ ip_flow_hash_set()

int ip_flow_hash_set ( ip_address_family_t  af,
u32  table_id,
u32  flow_hash_config 
)

Definition at line 192 of file ip.c.

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

◆ ip_is_local()

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.

Definition at line 57 of file ip.c.

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

◆ ip_is_local_host()

u8 ip_is_local_host ( ip46_address_t *  ip46_address,
u8  is_ip4 
)

Definition at line 31 of file ip.c.

+ Here is the caller graph for this function:

◆ ip_is_zero()

u8 ip_is_zero ( ip46_address_t *  ip46_address,
u8  is_ip4 
)

Definition at line 22 of file ip.c.

+ Here is the caller graph for this function:

◆ ip_set()

void ip_set ( ip46_address_t *  dst,
void *  src,
u8  is_ip4 
)

Definition at line 95 of file ip.c.

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

◆ unformat_ip_address_family()

uword unformat_ip_address_family ( unformat_input_t input,
va_list *  args 
)

Definition at line 231 of file ip.c.

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

◆ unformat_ip_dscp()

uword unformat_ip_dscp ( unformat_input_t input,
va_list *  args 
)

Definition at line 302 of file ip.c.

◆ unformat_ip_sub_address_family()

uword unformat_ip_sub_address_family ( unformat_input_t input,
va_list *  args 
)

Definition at line 267 of file ip.c.

+ Here is the call graph for this function:

Variable Documentation

◆ ip_arc_names

const char* ip_arc_names[N_IP_FEATURE_LOCATIONS][N_AF][N_SAFI]
static

Definition at line 108 of file ip.c.

◆ ip_flow_hash_router_id

u32 ip_flow_hash_router_id

Definition at line 19 of file ip.c.