FD.io VPP  v21.01.1
Vector Packet Processing
fib_sas.c File Reference
+ Include dependency graph for fib_sas.c:

Go to the source code of this file.

Functions

bool fib_sas_get (u32 sw_if_index, ip_address_family_t af, const ip46_address_t *dst, ip46_address_t *src)
 FIB Source Address selection. More...
 
bool fib_sas4_get (u32 sw_if_index, const ip4_address_t *dst, ip4_address_t *src)
 Get an IPv4 Source address to use in a packet being sent out an interface. More...
 
bool fib_sas6_get (u32 sw_if_index, const ip6_address_t *dst, ip6_address_t *src)
 Get an IPv6 Source address to use in a packet being sent out an interface. More...
 

Function Documentation

◆ fib_sas4_get()

bool fib_sas4_get ( u32  sw_if_index,
const ip4_address_t dst,
ip4_address_t src 
)

Get an IPv4 Source address to use in a packet being sent out an interface.

Parameters
sw_if_indexThe interface on which the packet is to be sent
dstThe destination of the packet (can be NULL in which case any of the available address will be returned)
srcOUT the source address to use
Returns
True if an address is available False (and src is unset) otherwise

Definition at line 50 of file fib_sas.c.

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

◆ fib_sas6_get()

bool fib_sas6_get ( u32  sw_if_index,
const ip6_address_t *  dst,
ip6_address_t *  src 
)

Get an IPv6 Source address to use in a packet being sent out an interface.

Parameters
sw_if_indexThe interface on which the packet is to be sent
dstThe destination of the packet (can be NULL in which case any of the available address will be returned)
srcOUT the source address to use
Returns
True if an address is available False (and src is unset) otherwise

Definition at line 87 of file fib_sas.c.

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

◆ fib_sas_get()

bool fib_sas_get ( u32  sw_if_index,
ip_address_family_t  af,
const ip46_address_t *  dst,
ip46_address_t *  src 
)

FIB Source Address selection.

Use the FIB for source address selection on an interface

Definition at line 28 of file fib_sas.c.

+ Here is the call graph for this function: