]> git.proxmox.com Git - mirror_frr.git/blame - zebra/netconf_netlink.h
Merge pull request #11408 from donaldsharp/common_config
[mirror_frr.git] / zebra / netconf_netlink.h
CommitLineData
ebb61fca
DS
1/*
2 * netconf_netlink.h - netconf interaction with the kernel using
3 * netlink
4 * Copyright (C) 2021 Nvidia, Inc.
5 * Donald Sharp
6 *
7 * This file is part of FRR.
8 *
9 * FRR is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the
11 * Free Software Foundation; either version 2, or (at your option) any
12 * later version.
13 *
14 * FRR is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with FRR; see the file COPYING. If not, write to the Free
21 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22 * 02111-1307, USA.
23 */
24#ifndef __NETCONF_NETLINK_H__
25#define __NETCONF_NETLINK_H__
26
27#ifdef HAVE_NETLINK /* Netlink-only module */
28
cd787a8a
MS
29#include "zebra/zebra_ns.h"
30
ebb61fca
DS
31#ifdef __cplusplus
32extern "C" {
33#endif
34
cd787a8a 35/* Parse and handle a NETCONF message. */
ebb61fca
DS
36extern int netlink_netconf_change(struct nlmsghdr *h, ns_id_t ns_id,
37 int startup);
cd787a8a
MS
38/* Request info from the host OS. */
39int netlink_request_netconf(int sockfd);
ebb61fca
DS
40
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif /* HAVE_NETLINK */
47
48#endif /* NETCONF_NETLINK_H */