zlog_info ("%%ADJCHANGE: Adjacency to %s (%s) changed from %s to %s, %s",
adj_name,
- adj->circuit ? adj->circuit->interface->name : "no circuit",
+ adj->circuit->interface->name,
adj_state2string (old_state),
adj_state2string (new_state),
reason ? reason : "unspecified");
vty_out (vty, ", Speaks: %s", nlpid2string (&adj->nlpids));
vty_out (vty, "%s", VTY_NEWLINE);
vty_out (vty, " SNPA: %s", snpa_print (adj->snpa));
- if (adj->circuit->circ_type == CIRCUIT_T_BROADCAST)
+ if (adj->circuit && (adj->circuit->circ_type == CIRCUIT_T_BROADCAST))
{
dyn = dynhn_find_by_id (adj->lanid);
if (dyn)
zlog_warn ("Nonexitant ip address %s removal attempt from \
circuit %d", buf, circuit->circuit_id);
}
+
+ prefix_ipv4_free (ipv4);
}
#ifdef HAVE_IPV6
if (connected->address->family == AF_INET6)
}
else if (circuit->area)
lsp_regenerate_schedule (circuit->area, circuit->is_type, 0);
+
+ prefix_ipv6_free (ipv6);
}
#endif /* HAVE_IPV6 */
return;
break;
case ISIS_DISABLE:
zlog_warn ("circuit already disabled");
+ break;
case IF_DOWN_FROM_Z:
zlog_warn ("circuit already disconnected");
break;
static int
lsp_regenerate (struct isis_area *area, int level)
{
- dict_t *lspdb = area->lspdb[level - 1];
+ dict_t *lspdb;
struct isis_lsp *lsp, *frag;
struct listnode *node;
u_char lspid[ISIS_SYS_ID_LEN + 2];
if ((area == NULL) || (area->is_type & level) != level)
return ISIS_ERROR;
+ lspdb = area->lspdb[level - 1];
+
memset (lspid, 0, ISIS_SYS_ID_LEN + 2);
memcpy (lspid, isis->sysid, ISIS_SYS_ID_LEN);
sizeof (struct sockaddr_ll)) < 0)
{
zlog_warn ("open_packet_socket(): bind() failed: %s", safe_strerror (errno));
+ close (fd);
return ISIS_WARNING;
}
route_node = route_node_get (area->route_table6[level - 1], prefix);
#endif /* HAVE_IPV6 */
else
- return NULL;
+ {
+ isis_route_info_delete (rinfo_new);
+ return NULL;
+ }
+
rinfo_old = route_node->info;
if (!rinfo_old)
{
for (i = 0; i <= ZEBRA_ROUTE_MAX; i++)
{
if (isis->rmap[i].name)
- isis->rmap[i].map = isis->rmap[i].map =
- route_map_lookup_by_name (isis->rmap[i].name);
+ isis->rmap[i].map = route_map_lookup_by_name (isis->rmap[i].name);
else
isis->rmap[i].map = NULL;
}
struct listnode *anode;
struct isis_vertex *vertex;
struct isis_adjacency *adj;
- u_char buff[255];
+ u_char buff[BUFSIZ];
vty_out (vty, "Vertex Type Metric "
"Next-Hop Interface Parent%s", VTY_NEWLINE);
Neighbor Extended Local Circuit ID (four octets, if Neighbor
System ID is present) */
pnt += length;
+ value_len += length;
}
}
else