]> git.proxmox.com Git - mirror_frr.git/blob - zebra/netconf_netlink.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / zebra / netconf_netlink.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * netconf_netlink.h - netconf interaction with the kernel using
4 * netlink
5 * Copyright (C) 2021 Nvidia, Inc.
6 * Donald Sharp
7 */
8 #ifndef __NETCONF_NETLINK_H__
9 #define __NETCONF_NETLINK_H__
10
11 #ifdef HAVE_NETLINK /* Netlink-only module */
12
13 #include "zebra/zebra_ns.h"
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 /* Parse and handle a NETCONF message. */
20 extern int netlink_netconf_change(struct nlmsghdr *h, ns_id_t ns_id,
21 int startup);
22 /* Request info from the host OS. */
23 int netlink_request_netconf(int sockfd);
24
25 struct nl_batch;
26
27 extern enum netlink_msg_status
28 netlink_put_intf_netconfig(struct nl_batch *bth, struct zebra_dplane_ctx *ctx);
29
30 #ifdef __cplusplus
31 }
32 #endif
33
34 #endif /* HAVE_NETLINK */
35
36 #endif /* NETCONF_NETLINK_H */