]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_static.h
Merge pull request #883 from daveolson53/master
[mirror_frr.git] / zebra / zebra_static.h
index 885774895fe9a4a70fcf3182ee2384a9f4b40ab2..6ab47094a1498d545c2a7a3319d881a9ae043a68 100644 (file)
@@ -30,12 +30,12 @@ struct static_nh_label {
 };
 
 typedef enum {
-       STATIC_IFINDEX,
+       STATIC_IFNAME,
        STATIC_IPV4_GATEWAY,
-       STATIC_IPV4_GATEWAY_IFINDEX,
+       STATIC_IPV4_GATEWAY_IFNAME,
        STATIC_BLACKHOLE,
        STATIC_IPV6_GATEWAY,
-       STATIC_IPV6_GATEWAY_IFINDEX,
+       STATIC_IPV6_GATEWAY_IFNAME,
 } zebra_static_types;
 
 /* Static route information. */
@@ -84,16 +84,18 @@ extern void static_uninstall_route(afi_t afi, safi_t safi, struct prefix *p,
 
 extern int static_add_route(afi_t, safi_t safi, u_char type, struct prefix *p,
                            struct prefix_ipv6 *src_p, union g_addr *gate,
-                           ifindex_t ifindex, const char *ifname, u_char flags,
+                           const char *ifname, u_char flags,
                            route_tag_t tag, u_char distance,
                            struct zebra_vrf *zvrf,
                            struct static_nh_label *snh_label);
 
 extern int static_delete_route(afi_t, safi_t safi, u_char type,
                               struct prefix *p, struct prefix_ipv6 *src_p,
-                              union g_addr *gate, ifindex_t ifindex,
+                              union g_addr *gate, const char *ifname,
                               route_tag_t tag, u_char distance,
                               struct zebra_vrf *zvrf,
                               struct static_nh_label *snh_label);
 
+extern void static_ifindex_update(struct interface *ifp, bool up);
+
 #endif