]> git.proxmox.com Git - mirror_frr.git/commit - isisd/isis_adjacency.h
isisd: fix BFD session when IPv6 not configured
authorEmanuele Di Pascale <emanuele@voltanet.io>
Thu, 18 Mar 2021 11:45:23 +0000 (12:45 +0100)
committerEmanuele Di Pascale <emanuele@voltanet.io>
Thu, 18 Mar 2021 11:49:10 +0000 (12:49 +0100)
commit0d5b1a3a79d4c026877fd3c0a803ce065852bcf1
tree669970637a568c95f5a17df1b72c37e49895b68a
parentbb5dddf71395f540ccf035dced15926b926886c0
isisd: fix BFD session when IPv6 not configured

A wrong check was silently skipping the initialization of the bfd_session
struct in the adjacency if the router was not configured for IPv6. This
would cause BFD events to be ignored regardless of the configuration.

Also add a function to return the "name" of an adjacency and use it in a
couple of places, including the new log, instead of repeating the same
code in a bunch of places.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
isisd/isis_adjacency.c
isisd/isis_adjacency.h
isisd/isis_bfd.c