libnl 3.7.0
vrf.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2015 Cumulus Networks. All rights reserved.
4 * Copyright (c) 2015 David Ahern <dsa@cumulusnetworks.com>
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
14extern "C" {
15#endif
16
17extern struct rtnl_link *rtnl_link_vrf_alloc(void);
18extern int rtnl_link_is_vrf(struct rtnl_link *link);
19extern int rtnl_link_vrf_get_tableid(struct rtnl_link *link, uint32_t *id);
20extern int rtnl_link_vrf_set_tableid(struct rtnl_link *link, uint32_t id);
21
22#ifdef __cplusplus
23}
24#endif
25
26#endif
int rtnl_link_is_vrf(struct rtnl_link *link)
Check if link is a VRF link.
Definition: vrf.c:196
int rtnl_link_vrf_set_tableid(struct rtnl_link *link, uint32_t id)
Set VRF table id.
Definition: vrf.c:231
int rtnl_link_vrf_get_tableid(struct rtnl_link *link, uint32_t *id)
Get VRF table id.
Definition: vrf.c:208
struct rtnl_link * rtnl_link_vrf_alloc(void)
Allocate link object of type VRF.
Definition: vrf.c:175