summaryrefslogtreecommitdiffstats
path: root/ripd/ripd.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-05-09 06:34:58 +0200
committerRenato Westphal <renato@opensourcerouting.org>2018-10-27 20:16:12 +0200
commitedbf59d209f20d4ab5a66eab1da1287c40fcc21a (patch)
tree94234676228a4f8b436cc814de9fdb9199f279fc /ripd/ripd.h
parentripd: retrofit the 'router rip' command to the new northbound model (diff)
downloadfrr-edbf59d209f20d4ab5a66eab1da1287c40fcc21a.tar.xz
frr-edbf59d209f20d4ab5a66eab1da1287c40fcc21a.zip
ripd: retrofit the 'allow-ecmp' command to the new northbound model
Trivial conversion. The rip->ecmp variable was converted to a boolean to match the way it's defined in the YANG module. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ripd/ripd.h')
-rw-r--r--ripd/ripd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ripd/ripd.h b/ripd/ripd.h
index 8e34939f2..68b302e87 100644
--- a/ripd/ripd.h
+++ b/ripd/ripd.h
@@ -151,7 +151,7 @@ struct rip {
struct route_table *distance_table;
/* RIP ECMP flag */
- unsigned int ecmp;
+ bool ecmp;
/* For redistribute route map. */
struct {
@@ -389,6 +389,8 @@ extern int rip_request_send(struct sockaddr_in *, struct interface *, uint8_t,
struct connected *);
extern int rip_neighbor_lookup(struct sockaddr_in *);
+extern void rip_ecmp_disable(void);
+
extern int rip_create_socket(void);
extern int rip_redistribute_check(int);