summaryrefslogtreecommitdiff
path: root/staticd/static_routes.h
diff options
context:
space:
mode:
Diffstat (limited to 'staticd/static_routes.h')
-rw-r--r--staticd/static_routes.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/staticd/static_routes.h b/staticd/static_routes.h
index bb1b664378..916ddcd7eb 100644
--- a/staticd/static_routes.h
+++ b/staticd/static_routes.h
@@ -79,6 +79,13 @@ struct static_route {
struct static_nh_label snh_label;
uint32_t table_id;
+
+ /*
+ * Whether to pretend the nexthop is directly attached to the specified
+ * link. Only meaningful when both a gateway address and interface name
+ * are specified.
+ */
+ bool onlink;
};
extern bool mpls_enabled;
@@ -94,7 +101,7 @@ extern int static_add_route(afi_t afi, safi_t safi, uint8_t type,
uint8_t distance, struct static_vrf *svrf,
struct static_vrf *nh_svrf,
struct static_nh_label *snh_label,
- uint32_t table_id);
+ uint32_t table_id, bool onlink);
extern int static_delete_route(afi_t afi, safi_t safi, uint8_t type,
struct prefix *p, struct prefix_ipv6 *src_p,