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