From 67b8d7ec09e17599c12a73d1ed65b8d79396b8db Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sat, 28 Nov 2020 07:45:08 -0500 Subject: [PATCH] eigrpd: Remove unneeeded if state types There are some unused/unneeded if state types in eigrp, remove them Signed-off-by: Donald Sharp --- eigrpd/eigrp_const.h | 6 ++---- eigrpd/eigrp_hello.c | 6 ------ 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/eigrpd/eigrp_const.h b/eigrpd/eigrp_const.h index 3a103fb9f2..d3d9bca82a 100644 --- a/eigrpd/eigrp_const.h +++ b/eigrpd/eigrp_const.h @@ -110,10 +110,8 @@ enum metric_change { METRIC_DECREASE, METRIC_SAME, METRIC_INCREASE }; #define EIGRP_IFTYPE_NONE 0 #define EIGRP_IFTYPE_POINTOPOINT 1 #define EIGRP_IFTYPE_BROADCAST 2 -#define EIGRP_IFTYPE_NBMA 3 -#define EIGRP_IFTYPE_POINTOMULTIPOINT 4 -#define EIGRP_IFTYPE_LOOPBACK 5 -#define EIGRP_IFTYPE_MAX 6 +#define EIGRP_IFTYPE_LOOPBACK 3 +#define EIGRP_IFTYPE_MAX 4 #define EIGRP_IF_ACTIVE 0 #define EIGRP_IF_PASSIVE 1 diff --git a/eigrpd/eigrp_hello.c b/eigrpd/eigrp_hello.c index f512833e0a..13a2c4206f 100644 --- a/eigrpd/eigrp_hello.c +++ b/eigrpd/eigrp_hello.c @@ -745,12 +745,6 @@ void eigrp_hello_send(struct eigrp_interface *ei, uint8_t flags, { struct eigrp_packet *ep = NULL; - /* If this is passive interface, do not send EIGRP Hello. - if ((EIGRP_IF_PASSIVE_STATUS (ei) == EIGRP_IF_PASSIVE) || - (ei->type != EIGRP_IFTYPE_NBMA)) - return; - */ - if (IS_DEBUG_EIGRP_PACKET(0, SEND)) zlog_debug("Queueing [Hello] Interface(%s)", IF_NAME(ei)); -- 2.39.5