summaryrefslogtreecommitdiffstats
path: root/ripd/ripd.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-11-15 15:50:32 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-11-16 14:45:28 +0100
commitdd127197f9f165c23ced8165b08b66b2509c5da9 (patch)
tree480948182dd1679ccff01ab529f7742672b1b739 /ripd/ripd.h
parentMerge pull request #1444 from fatihusta/patch-1 (diff)
downloadfrr-dd127197f9f165c23ced8165b08b66b2509c5da9.tar.xz
frr-dd127197f9f165c23ced8165b08b66b2509c5da9.zip
ripd: Convert to using 'struct nexthop' for nexthop information
RIP is not using the nexthop data structure and as such when it does not fully understand when it receives some of the more exotic nexthop types what to do with it. This is the start of a series of commits to allow RIP to start understanding and properly displaying information about different nexthop types. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ripd/ripd.h')
-rw-r--r--ripd/ripd.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/ripd/ripd.h b/ripd/ripd.h
index ae34ed3f4..a66f506f4 100644
--- a/ripd/ripd.h
+++ b/ripd/ripd.h
@@ -23,6 +23,7 @@
#include "qobj.h"
#include "hook.h"
+#include "nexthop.h"
#include "rip_memory.h"
/* RIP version number. */
@@ -194,12 +195,9 @@ struct rip_info {
int sub_type;
/* RIP nexthop. */
- struct in_addr nexthop;
+ struct nexthop nh;
struct in_addr from;
- /* Which interface does this route come from. */
- ifindex_t ifindex;
-
/* Metric of this route. */
u_int32_t metric;