| 1 |
/* SPDX-License-Identifier: LGPL-2.1-only */ |
| 2 |
/* |
| 3 |
* Copyright (c) 2017 David Ahern <[email protected]> |
| 4 |
*/ |
| 5 |
|
| 6 |
#ifndef NETCONF_H_ |
| 7 |
#define NETCONF_H_ |
| 8 |
|
| 9 |
#ifdef __cplusplus |
| 10 |
extern "C" { |
| 11 |
#endif |
| 12 |
|
| 13 |
struct nl_sock; |
| 14 |
struct nl_cache; |
| 15 |
struct rtnl_netconf; |
| 16 |
|
| 17 |
int rtnl_netconf_alloc_cache(struct nl_sock *sk, struct nl_cache **result); |
| 18 |
|
| 19 |
struct rtnl_netconf *rtnl_netconf_get_by_idx(struct nl_cache *cache, int family, |
| 20 |
int ifindex); |
| 21 |
struct rtnl_netconf *rtnl_netconf_get_all(struct nl_cache *cache, |
| 22 |
int family); |
| 23 |
struct rtnl_netconf *rtnl_netconf_get_default(struct nl_cache *cache, |
| 24 |
int family); |
| 25 |
void rtnl_netconf_put(struct rtnl_netconf *nc); |
| 26 |
|
| 27 |
int rtnl_netconf_get_family(struct rtnl_netconf *nc, int *val); |
| 28 |
int rtnl_netconf_get_ifindex(struct rtnl_netconf *nc, int *val); |
| 29 |
int rtnl_netconf_get_forwarding(struct rtnl_netconf *nc, int *val); |
| 30 |
int rtnl_netconf_get_mc_forwarding(struct rtnl_netconf *nc, int *val); |
| 31 |
int rtnl_netconf_get_rp_filter(struct rtnl_netconf *nc, int *val); |
| 32 |
int rtnl_netconf_get_proxy_neigh(struct rtnl_netconf *nc, int *val); |
| 33 |
int rtnl_netconf_get_ignore_routes_linkdown(struct rtnl_netconf *nc, int *val); |
| 34 |
int rtnl_netconf_get_input(struct rtnl_netconf *nc, int *val); |
| 35 |
|
| 36 |
#ifdef __cplusplus |
| 37 |
} |
| 38 |
#endif |
| 39 |
|
| 40 |
#endif |