/*
* IS-IS Rout(e)ing protocol - BFD support
- *
* Copyright (C) 2018 Christian Franke
*
- * This file is part of FreeRangeRouting (FRR)
- *
- * FRR is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the
- * Free Software Foundation; either version 2, or (at your option) any
- * later version.
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation; either version 2 of the License, or (at your option)
+ * any later version.
*
- * FRR is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; see the file COPYING; if not, write to the Free Software
return;
int old_status = adj->bfd_session->status;
- adj->bfd_session->status = new_status;
+ adj->bfd_session->status = new_status;
if (old_status == new_status)
return;
if (isis->debugs & DEBUG_BFD) {
char dst_buf[INET6_ADDRSTRLEN];
+
inet_ntop(AF_INET, &dst_ip.u.prefix4,
dst_buf, sizeof(dst_buf));
}
struct isis_circuit *circuit = circuit_scan_by_ifp(ifp);
+
if (!circuit)
return 0;
goto out;
struct list *local_ips = fabricd_ip_addrs(adj->circuit);
+
if (!local_ips)
goto out;
struct listnode *node;
struct isis_adjacency *adj;
+
for (ALL_LIST_ELEMENTS_RO(adjdb, node, adj))
bfd_adj_cmd(adj, command);
}