mirror_frr/zebra/zebra_rnh_null.c
Donald Sharp a50b580a0f Zebra: Don't resolve routes over default for nexthop tracking
Resolving routes over the default route for NHT can lead to all sorts
of problems. So, we explicitly exclude resolving routes for NHT over the
default route. A knob is provided to allow the route to be resolved over
the default in case of special circumstances.

Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
Reviewed-by:   Daniel Walton <dwalton@cumulusnetworks.com>
2015-05-19 18:04:16 -07:00

20 lines
482 B
C

#include <zebra.h>
#include "zebra/rib.h"
#include "zebra/zserv.h"
#include "zebra/zebra_rnh.h"
int zebra_rnh_ip_default_route = 0;
int zebra_rnh_ipv6_default_route = 0;
int zebra_evaluate_rnh_table (int vrfid, int family, int force)
{ return 0; }
void zebra_print_rnh_table (int vrfid, int family, struct vty *vty)
{}
void zebra_register_rnh_static_nh(struct prefix *p, struct route_node *rn)
{}
void zebra_deregister_rnh_static_nh(struct prefix *p, struct route_node *rn)
{}