]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_rnh.h
Merge pull request #5810 from donaldsharp/fix_yang_routemap
[mirror_frr.git] / zebra / zebra_rnh.h
index c7d2c0d2984a6fa7f26f812810ce0ec7ba5d6e8b..6e2dab8d9ff232da4f22295e10add575838430c2 100644 (file)
 extern "C" {
 #endif
 
-extern int zebra_rnh_ip_default_route;
-extern int zebra_rnh_ipv6_default_route;
-
 extern void zebra_rnh_init(void);
 
-static inline int rnh_resolve_via_default(int family)
-{
-       if (((family == AF_INET) && zebra_rnh_ip_default_route)
-           || ((family == AF_INET6) && zebra_rnh_ipv6_default_route))
-               return 1;
-       else
-               return 0;
-}
-
 static inline const char *rnh_type2str(rnh_type_t type)
 {
        switch (type) {
@@ -72,6 +60,8 @@ extern void zebra_print_rnh_table(vrf_id_t vrfid, afi_t afi, struct vty *vty,
                                  rnh_type_t type, struct prefix *p);
 extern char *rnh_str(struct rnh *rnh, char *buf, int size);
 
+extern int rnh_resolve_via_default(struct zebra_vrf *zvrf, int family);
+
 #ifdef __cplusplus
 }
 #endif