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 33