| 1 |
/* SPDX-License-Identifier: LGPL-2.1-only */ |
| 2 |
/* |
| 3 |
* Copyright (c) 2015 Cumulus Networks. All rights reserved. |
| 4 |
* Copyright (c) 2015 David Ahern <[email protected]> |
| 5 |
*/ |
| 6 |
|
| 7 |
#ifndef NETLINK_LINK_VRF_H_ |
| 8 |
#define NETLINK_LINK_VRF_H_ |
| 9 |
|
| 10 |
#include <netlink/netlink.h> |
| 11 |
#include <netlink/route/link.h> |
| 12 |
|
| 13 |
#ifdef __cplusplus |
| 14 |
extern "C" { |
| 15 |
#endif |
| 16 |
|
| 17 |
extern struct rtnl_link *rtnl_link_vrf_alloc(void); |
| 18 |
extern int rtnl_link_is_vrf(struct rtnl_link *link); |
| 19 |
extern int rtnl_link_vrf_get_tableid(struct rtnl_link *link, uint32_t *id); |
| 20 |
extern int rtnl_link_vrf_set_tableid(struct rtnl_link *link, uint32_t id); |
| 21 |
|
| 22 |
#ifdef __cplusplus |
| 23 |
} |
| 24 |
#endif |
| 25 |
|
| 26 |
#endif |