CNDP  22.08.0
cnet_netlink.h File Reference
#include <net/if.h>
#include <cne_common.h>

Go to the source code of this file.

Functions

CNDP_API int cnet_netlink_create (struct cnet *cnet)
 Create the netlink base instance. More...
 
CNDP_API int cnet_netlink_destroy (struct cnet *cnet)
 Destroy the netlink base instance and free resources. More...
 
CNDP_API int cnet_netlink_start (void)
 Start the netlink thread running to monitor netlink communication. More...
 
CNDP_API int cnet_netlink_add_links (void *_info)
 Add a netlink information, links, to internal tables. More...
 
CNDP_API int cnet_netlink_add_addrs (void *_info)
 Add netlink address information internal tables. More...
 
CNDP_API int cnet_netlink_add_routes (void *_info)
 Add netlink route information to internal tables. More...
 
CNDP_API int cnet_netlink_add_neighs (void *_info)
 Add neighbor information to the internal netlink tables. More...
 

Detailed Description

CNET Netlink routines.

Definition in file cnet_netlink.h.

Function Documentation

◆ cnet_netlink_create()

CNDP_API int cnet_netlink_create ( struct cnet *  cnet)

Create the netlink base instance.

Parameters
cnetThe 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
cnetThe 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
_infoA 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
_infoA 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
_infoA 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
_infoA void * pointer the generic netlink information structure.
Returns
-1 on error or 0 on success