summaryrefslogtreecommitdiffstats
path: root/isisd/isis_pdu.c
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2018-07-22 19:59:43 +0200
committerChristian Franke <chris@opensourcerouting.org>2018-08-03 13:25:38 +0200
commitc9b0e434bc640ca7fe3700d4c3e26d1a295a9546 (patch)
tree272ebbce583c29d1d6ceaaa4bc663287442fe891 /isisd/isis_pdu.c
parentMerge pull request #2760 from donaldsharp/bgp_patch_from_dev (diff)
downloadfrr-c9b0e434bc640ca7fe3700d4c3e26d1a295a9546.tar.xz
frr-c9b0e434bc640ca7fe3700d4c3e26d1a295a9546.zip
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 <chris@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_pdu.c')
-rw-r--r--isisd/isis_pdu.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/isisd/isis_pdu.c b/isisd/isis_pdu.c
index 7a6c4dd2d..8e2a7f13a 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: