libnl 3.5.0

vrf.h
1 /*
2 * netlink/route/link/vrf.h VRF interface
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation version 2.1
7 * of the License.
8 *
9 * Copyright (c) 2015 Cumulus Networks. All rights reserved.
10 * Copyright (c) 2015 David Ahern <dsa@cumulusnetworks.com>
11 */
12
13 #ifndef NETLINK_LINK_VRF_H_
14 #define NETLINK_LINK_VRF_H_
15
16 #include <netlink/netlink.h>
17 #include <netlink/route/link.h>
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
23 extern struct rtnl_link *rtnl_link_vrf_alloc(void);
24 extern int rtnl_link_is_vrf(struct rtnl_link *link);
25 extern int rtnl_link_vrf_get_tableid(struct rtnl_link *link, uint32_t *id);
26 extern int rtnl_link_vrf_set_tableid(struct rtnl_link *link, uint32_t id);
27
28 #ifdef __cplusplus
29 }
30 #endif
31
32 #endif
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:238
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:215
rtnl_link
Link object.
rtnl_link_is_vrf
int rtnl_link_is_vrf(struct rtnl_link *link)
Check if link is a VRF link.
Definition: vrf.c:203
rtnl_link_vrf_alloc
struct rtnl_link * rtnl_link_vrf_alloc(void)
Allocate link object of type VRF.
Definition: vrf.c:181