]>
Commit | Line | Data |
---|---|---|
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 |
16 | extern "C" { | |
17 | #endif | |
18 | ||
cd787a8a | 19 | /* Parse and handle a NETCONF message. */ |
ebb61fca DS |
20 | extern int netlink_netconf_change(struct nlmsghdr *h, ns_id_t ns_id, |
21 | int startup); | |
cd787a8a MS |
22 | /* Request info from the host OS. */ |
23 | int netlink_request_netconf(int sockfd); | |
ebb61fca | 24 | |
39ffa8e8 DS |
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); | |
ebb61fca DS |
29 | |
30 | #ifdef __cplusplus | |
31 | } | |
32 | #endif | |
33 | ||
34 | #endif /* HAVE_NETLINK */ | |
35 | ||
36 | #endif /* NETCONF_NETLINK_H */ |