CNDP
22.08.0
|
Go to the source code of this file.
Functions | |
CNDP_API int | cne_node_ip4_add_input (struct cne_fib *fib, uint32_t ip, uint8_t depth, uint32_t idx) |
CNDP_API struct cne_node_register * | ip4_forward_node_get (void) |
CNDP_API int | ip4_forward_set_next (uint16_t port_id, uint16_t next_index) |
CNDP_API struct cne_node_register * | ip4_output_node_get (void) |
CNDP_API int | ip4_output_set_next (uint16_t port_id, uint16_t next_index) |
This API allows to do control path functions of ip4_* nodes like ip4_input, ip4_forward, ip4_proto, ...
Definition in file ip4_node_api.h.
CNDP_API int cne_node_ip4_add_input | ( | struct cne_fib * | fib, |
uint32_t | ip, | ||
uint8_t | depth, | ||
uint32_t | idx | ||
) |
Add an address to FIB table.
fib | Pointer to FIB structure. |
ip | IPv4 address. |
depth | IPv4 depth size |
idx | Index into the hop2rt table. |
CNDP_API struct cne_node_register* ip4_forward_node_get | ( | void | ) |
Get the ipv4 forward node.
CNDP_API int ip4_forward_set_next | ( | uint16_t | port_id, |
uint16_t | next_index | ||
) |
Set the Edge index of a given port_id.
port_id | Ethernet port identifier. |
next_index | Edge index of the Given Tx node. |
CNDP_API struct cne_node_register* ip4_output_node_get | ( | void | ) |
Get the ipv4 output node.
CNDP_API int ip4_output_set_next | ( | uint16_t | port_id, |
uint16_t | next_index | ||
) |
Set the Edge index of a given port_id.
port_id | Ethernet port identifier. |
next_index | Edge index of the Given Tx node. |