CNDP  22.08.0
cnet_netlink.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2016-2022 Intel Corporation
3  */
4 
5 #include <net/if.h>
6 
7 #ifndef __CNET_NETLINK_H
8 #define __CNET_NETLINK_H
9 
15 #include <cne_common.h>
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 extern int netlink_debug;
22 
23 struct cnet;
24 
33 CNDP_API int cnet_netlink_create(struct cnet *cnet);
34 
43 CNDP_API int cnet_netlink_destroy(struct cnet *cnet);
44 
51 CNDP_API int cnet_netlink_start(void);
52 
61 CNDP_API int cnet_netlink_add_links(void *_info);
62 
71 CNDP_API int cnet_netlink_add_addrs(void *_info);
72 
81 CNDP_API int cnet_netlink_add_routes(void *_info);
82 
91 CNDP_API int cnet_netlink_add_neighs(void *_info);
92 
93 #ifdef __cplusplus
94 }
95 #endif
96 
97 #endif /* __CNET_NETLINK_H */