FD.io VPP  v19.04.4-rc0-5-ge88582fac
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)
 
u8 ip_interface_has_address (u32 sw_if_index, ip46_address_t *ip, u8 is_ip4)
 
void * ip_interface_get_first_ip (u32 sw_if_index, u8 is_ip4)
 
void ip4_address_normalize (ip4_address_t *ip4, u8 preflen)
 
void ip6_address_normalize (ip6_address_t *ip6, u8 preflen)
 
void ip4_preflen_to_mask (u8 pref_len, ip4_address_t *ip)
 
u32 ip4_mask_to_preflen (ip4_address_t *mask)
 
void ip4_prefix_max_address_host_order (ip4_address_t *ip, u8 plen, ip4_address_t *res)
 
void ip6_preflen_to_mask (u8 pref_len, ip6_address_t *mask)
 
void ip6_prefix_max_address_host_order (ip6_address_t *ip, u8 plen, ip6_address_t *res)
 
u32 ip6_mask_to_preflen (ip6_address_t *mask)
 

Function Documentation

◆ ip4_address_normalize()

void ip4_address_normalize ( ip4_address_t ip4,
u8  preflen 
)

Definition at line 167 of file ip.c.

+ Here is the caller graph for this function:

◆ ip4_is_local_host()

u8 ip4_is_local_host ( ip4_address_t ip4_address)

Definition at line 39 of file ip.c.

+ Here is the caller graph for this function:

◆ ip4_mask_to_preflen()

u32 ip4_mask_to_preflen ( ip4_address_t mask)

Definition at line 206 of file ip.c.

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

◆ ip4_prefix_max_address_host_order()

void ip4_prefix_max_address_host_order ( ip4_address_t ip,
u8  plen,
ip4_address_t res 
)

Definition at line 214 of file ip.c.

+ Here is the caller graph for this function:

◆ ip4_preflen_to_mask()

void ip4_preflen_to_mask ( u8  pref_len,
ip4_address_t ip 
)

Definition at line 197 of file ip.c.

+ Here is the caller graph for this function:

◆ ip6_address_normalize()

void ip6_address_normalize ( ip6_address_t ip6,
u8  preflen 
)

Definition at line 177 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 45 of file ip.c.

+ Here is the caller graph for this function:

◆ ip6_mask_to_preflen()

u32 ip6_mask_to_preflen ( ip6_address_t mask)

Definition at line 267 of file ip.c.

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

◆ ip6_prefix_max_address_host_order()

void ip6_prefix_max_address_host_order ( ip6_address_t ip,
u8  plen,
ip6_address_t res 
)

Definition at line 244 of file ip.c.

+ Here is the caller graph for this function:

◆ ip6_preflen_to_mask()

void ip6_preflen_to_mask ( u8  pref_len,
ip6_address_t mask 
)

Definition at line 223 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 81 of file ip.c.

+ Here is the caller graph for this function:

◆ ip_interface_get_first_ip()

void* ip_interface_get_first_ip ( u32  sw_if_index,
u8  is_ip4 
)

Definition at line 134 of file ip.c.

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

◆ ip_interface_has_address()

u8 ip_interface_has_address ( u32  sw_if_index,
ip46_address_t *  ip,
u8  is_ip4 
)

Definition at line 100 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 55 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 29 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 20 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 90 of file ip.c.

+ Here is the caller graph for this function: