summaryrefslogtreecommitdiffstats
path: root/include/netlink
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2017-08-17 22:59:33 (GMT)
committerThomas Haller <thaller@redhat.com>2017-08-18 13:01:04 (GMT)
commit63d02c3c581b4edc915af820c364f53e77497ea0 (patch)
treed8617d8b43b6c7d31a8ec2fa7e6c082e50e7a654 /include/netlink
parent0a6d27ce90a1a97272cd0516a52d21bcf4428127 (diff)
downloadlibnl-63d02c3c581b4edc915af820c364f53e77497ea0.zip
libnl-63d02c3c581b4edc915af820c364f53e77497ea0.tar.gz
libnl-63d02c3c581b4edc915af820c364f53e77497ea0.tar.bz2
route: Add support for ttl propagation in MPLS routes
Add support for RTA_TTL_PROPAGATE attribute on a per-route basis. Used to enable/disable TTL propagation at LSP egress. Signed-off-by: David Ahern <dsahern@gmail.com>
Diffstat (limited to 'include/netlink')
-rw-r--r--include/netlink/route/route.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/netlink/route/route.h b/include/netlink/route/route.h
index 477250d..824dae3 100644
--- a/include/netlink/route/route.h
+++ b/include/netlink/route/route.h
@@ -94,6 +94,9 @@ extern struct nl_addr *rtnl_route_get_pref_src(struct rtnl_route *);
extern void rtnl_route_set_iif(struct rtnl_route *, int);
extern int rtnl_route_get_iif(struct rtnl_route *);
extern int rtnl_route_get_src_len(struct rtnl_route *);
+extern void rtnl_route_set_ttl_propagate(struct rtnl_route *route,
+ uint8_t ttl_prop);
+extern int rtnl_route_get_ttl_propagate(struct rtnl_route *route);
extern void rtnl_route_add_nexthop(struct rtnl_route *,
struct rtnl_nexthop *);