mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-01 00:25:52 +00:00

NextHop Tracking (NHT) is a significant function introduced into Quagga by Cumulus. Initially intended for tracking BGP nexthops, this has been extended subsequently to also cater to nexthops for static routes, BGP peer reachability tracking and BGP route tracking for routes to be imported into BGP. This patch reorganizes the code a bit to make it easier to follow and maintain. No functional changes introduced. Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Dinesh Dutt <ddutt@cumulusnetworks.com> Ticket: CM-5599 Reviewed By: CCR-3906 Testing Done: Manual and bgpsmoke
25 lines
640 B
C
25 lines
640 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;
|
|
|
|
void zebra_evaluate_rnh (vrf_id_t vrfid, int family, int force, rnh_type_t type,
|
|
struct prefix *p)
|
|
{}
|
|
|
|
void zebra_print_rnh_table (vrf_id_t vrfid, int family, struct vty *vty,
|
|
rnh_type_t type)
|
|
{}
|
|
|
|
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)
|
|
{}
|
|
|
|
void zebra_deregister_rnh_static_nexthops (struct nexthop *nexthop, struct route_node *rn)
|
|
{}
|