CNDP  22.08.0
node_ip4_api.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2020 Marvell International Ltd.
3  */
4 
5 #ifndef __INCLUDE_CNE_NODE_IP4_API_H__
6 #define __INCLUDE_CNE_NODE_IP4_API_H__
7 
19 #include <cne_common.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
35 };
36 
52 int cne_node_ip4_route_add(uint32_t ip, uint8_t depth, uint16_t next_hop,
53  enum cne_node_ip4_lookup_next next_node);
54 
70 int cne_node_ip4_rewrite_add(uint16_t next_hop, uint8_t *rewrite_data, uint8_t rewrite_len,
71  uint16_t dst_port);
72 
73 #ifdef __cplusplus
74 }
75 #endif
76 
77 #endif /* __INCLUDE_CNE_NODE_IP4_API_H__ */
int cne_node_ip4_rewrite_add(uint16_t next_hop, uint8_t *rewrite_data, uint8_t rewrite_len, uint16_t dst_port)
cne_node_ip4_lookup_next
Definition: node_ip4_api.h:28
@ CNE_NODE_IP4_LOOKUP_NEXT_REWRITE
Definition: node_ip4_api.h:29
@ CNE_NODE_IP4_LOOKUP_NEXT_MAX
Definition: node_ip4_api.h:33
@ CNE_NODE_IP4_LOOKUP_NEXT_PKT_DROP
Definition: node_ip4_api.h:31
int cne_node_ip4_route_add(uint32_t ip, uint8_t depth, uint16_t next_hop, enum cne_node_ip4_lookup_next next_node)