#include <net/if.h>
#include <cne_common.h>
Go to the source code of this file.
CNET Netlink routines.
Definition in file cnet_netlink.h.
◆ cnet_netlink_create()
CNDP_API int cnet_netlink_create |
( |
struct cnet * |
cnet | ) |
|
Create the netlink base instance.
- Parameters
-
cnet | The cnet instance pointer to the netlink base |
- Returns
- -1 on error or 0 on success
◆ cnet_netlink_destroy()
CNDP_API int cnet_netlink_destroy |
( |
struct cnet * |
cnet | ) |
|
Destroy the netlink base instance and free resources.
- Parameters
-
cnet | The cnet instance pointer to the netlink base |
- Returns
- -1 on error or 0 on success
◆ cnet_netlink_start()
CNDP_API int cnet_netlink_start |
( |
void |
| ) |
|
Start the netlink thread running to monitor netlink communication.
- Returns
- -1 on error or 0 on success
◆ cnet_netlink_add_links()
CNDP_API int cnet_netlink_add_links |
( |
void * |
_info | ) |
|
Add a netlink information, links, to internal tables.
- Parameters
-
_info | A void * pointer the generic netlink information structure. |
- Returns
- -1 on error or 0 on success
◆ cnet_netlink_add_addrs()
CNDP_API int cnet_netlink_add_addrs |
( |
void * |
_info | ) |
|
Add netlink address information internal tables.
- Parameters
-
_info | A void * pointer the generic netlink information structure. |
- Returns
- -1 on error or 0 on success
◆ cnet_netlink_add_routes()
CNDP_API int cnet_netlink_add_routes |
( |
void * |
_info | ) |
|
Add netlink route information to internal tables.
- Parameters
-
_info | A void * pointer the generic netlink information structure. |
- Returns
- -1 on error or 0 on success
◆ cnet_netlink_add_neighs()
CNDP_API int cnet_netlink_add_neighs |
( |
void * |
_info | ) |
|
Add neighbor information to the internal netlink tables.
- Parameters
-
_info | A void * pointer the generic netlink information structure. |
- Returns
- -1 on error or 0 on success