1 /* Zebra next hop tracking code
2 * Copyright (C) 2013 Cumulus Networks, Inc.
4 * This file is part of Quagga.
6 * Quagga is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2, or (at your option) any
11 * Quagga is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with Quagga; see the file COPYING. If not, write to the Free
18 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
23 #include "zebra/rib.h"
24 #include "zebra/zserv.h"
25 #include "zebra/zebra_rnh.h"
27 int zebra_rnh_ip_default_route
= 0;
28 int zebra_rnh_ipv6_default_route
= 0;
31 zebra_free_rnh (struct rnh
*rnh
)
34 void zebra_evaluate_rnh (vrf_id_t vrfid
, int family
, int force
, rnh_type_t type
,
38 void zebra_print_rnh_table (vrf_id_t vrfid
, int family
, struct vty
*vty
,
42 void zebra_register_rnh_static_nh(vrf_id_t vrfid
, struct prefix
*p
, struct route_node
*rn
)
45 void zebra_deregister_rnh_static_nh(vrf_id_t vrfid
, struct prefix
*p
, struct route_node
*rn
)
48 void zebra_deregister_rnh_static_nexthops (vrf_id_t vrfid
, struct nexthop
*nexthop
,
49 struct route_node
*rn
)