From c9b0e434bc640ca7fe3700d4c3e26d1a295a9546 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Sun, 22 Jul 2018 13:59:43 -0400 Subject: [PATCH] isisd: add debug message if adjacency is ignored because IP is unusable isisd verifies whether the neighboring IPv4 addresses overlap with its own unless the interface is running in unnumbered mode. If no overlap is found and IPv6 is also not enabled, IIHs will be ignored. Add a debug message for this case, to avoid people wondering why adjacencies are not coming up. Signed-off-by: Christian Franke --- isisd/isis_pdu.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/isisd/isis_pdu.c b/isisd/isis_pdu.c index 7a6c4dd2dc..8e2a7f13a5 100644 --- a/isisd/isis_pdu.c +++ b/isisd/isis_pdu.c @@ -673,8 +673,15 @@ static int process_hello(uint8_t pdu_type, struct isis_circuit *circuit, iih.v6_usable = (circuit->ipv6_link && listcount(circuit->ipv6_link) && iih.tlvs->ipv6_address.count); - if (!iih.v4_usable && !iih.v6_usable) + if (!iih.v4_usable && !iih.v6_usable) { + if (isis->debugs & DEBUG_ADJ_PACKETS) { + zlog_warn( + "ISIS-Adj (%s): Neither IPv4 nor IPv6 considered usable. Ignoring IIH", + circuit->area->area_tag); + } + goto out; + } retval = p2p_hello ? process_p2p_hello(&iih) : process_lan_hello(&iih); out: -- 2.39.5