libnl: /data/src/libnl3/include/netlink/route/link/vrf.h Source File

libnl 3.10.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
rtnl_link_is_vrf
int rtnl_link_is_vrf(struct rtnl_link *link)
Check if link is a VRF link.
Definition vrf.c:199
rtnl_link_vrf_set_tableid
int rtnl_link_vrf_set_tableid(struct rtnl_link *link, uint32_t id)
Set VRF table id.
Definition vrf.c:234
rtnl_link_vrf_get_tableid
int rtnl_link_vrf_get_tableid(struct rtnl_link *link, uint32_t *id)
Get VRF table id.
Definition vrf.c:211
rtnl_link_vrf_alloc
struct rtnl_link * rtnl_link_vrf_alloc(void)
Allocate link object of type VRF.
Definition vrf.c:178
rtnl_link
Link object.
Definition nl-route.h:29