summaryrefslogtreecommitdiffstats
path: root/ripd/ripd.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-11-15 17:19:06 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-11-16 14:45:28 +0100
commit3f5682c88d6f4f0b85539a8776c9e869f1cbd4fa (patch)
tree370e7b43bb76ef73fadabe4636b0a21dac4e6bc3 /ripd/ripd.h
parentripd: Convert to using 'struct nexthop' for nexthop information (diff)
downloadfrr-3f5682c88d6f4f0b85539a8776c9e869f1cbd4fa.tar.xz
frr-3f5682c88d6f4f0b85539a8776c9e869f1cbd4fa.zip
ripd: Allow rip_redistribute_add to know the nexthop type
Allow rip_redistribute_add to receive and properly store the nexthop type passed up from zebra. Additionally display the different nexthop types appropriately. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ripd/ripd.h')
-rw-r--r--ripd/ripd.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/ripd/ripd.h b/ripd/ripd.h
index a66f506f4..9a9c081bf 100644
--- a/ripd/ripd.h
+++ b/ripd/ripd.h
@@ -385,9 +385,11 @@ extern int rip_request_send(struct sockaddr_in *, struct interface *, u_char,
extern int rip_neighbor_lookup(struct sockaddr_in *);
extern int rip_redistribute_check(int);
-extern void rip_redistribute_add(int, int, struct prefix_ipv4 *, ifindex_t,
- struct in_addr *, unsigned int, unsigned char,
- route_tag_t);
+extern void rip_redistribute_add(int type, int sub_type,
+ struct prefix_ipv4 *p,
+ struct nexthop *nh,
+ unsigned int metric, unsigned char distance,
+ route_tag_t tag);
extern void rip_redistribute_delete(int, int, struct prefix_ipv4 *, ifindex_t);
extern void rip_redistribute_withdraw(int);
extern void rip_zebra_ipv4_add(struct route_node *);