]>
git.proxmox.com Git - mirror_frr.git/blob - zebra/netconf_netlink.h
2 * netconf_netlink.h - netconf interaction with the kernel using
4 * Copyright (C) 2021 Nvidia, Inc.
7 * This file is part of FRR.
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
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.
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
24 #ifndef __NETCONF_NETLINK_H__
25 #define __NETCONF_NETLINK_H__
27 #ifdef HAVE_NETLINK /* Netlink-only module */
29 #include "zebra/zebra_ns.h"
35 /* Parse and handle a NETCONF message. */
36 extern int netlink_netconf_change(struct nlmsghdr
*h
, ns_id_t ns_id
,
38 /* Request info from the host OS. */
39 int netlink_request_netconf(int sockfd
);
43 extern enum netlink_msg_status
44 netlink_put_intf_netconfig(struct nl_batch
*bth
, struct zebra_dplane_ctx
*ctx
);
50 #endif /* HAVE_NETLINK */
52 #endif /* NETCONF_NETLINK_H */