]> git.proxmox.com Git - mirror_frr.git/blobdiff - staticd/static_routes.h
zebra, lib: fix the ZEBRA_INTERFACE_VRF_UPDATE zapi message
[mirror_frr.git] / staticd / static_routes.h
index bb1b6643789a2a9f98cf5421dce67bf84c7eee67..6036bfe396970df625915b759ee4e68f5e909233 100644 (file)
@@ -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,
@@ -106,5 +113,7 @@ extern int static_delete_route(afi_t afi, safi_t safi, uint8_t type,
 
 extern void static_cleanup_vrf_ids(struct static_vrf *disable_svrf);
 
+extern void static_install_intf_nh(struct interface *ifp);
+
 extern void static_ifindex_update(struct interface *ifp, bool up);
 #endif