0);
#ifdef EXTREME_DEBUG
- zlog_debug("Added IP address %pFX to circuit %s",
- connected->address, circuit->interface->name);
+ if (IS_DEBUG_EVENTS)
+ zlog_debug("Added IP address %pFX to circuit %s",
+ connected->address,
+ circuit->interface->name);
#endif /* EXTREME_DEBUG */
}
if (connected->address->family == AF_INET6) {
0);
#ifdef EXTREME_DEBUG
- zlog_debug("Added IPv6 address %pFX to circuit %s",
- connected->address, circuit->interface->name);
+ if (IS_DEBUG_EVENTS)
+ zlog_debug("Added IPv6 address %pFX to circuit %s",
+ connected->address,
+ circuit->interface->name);
#endif /* EXTREME_DEBUG */
}
ETH_ALEN);
}
#ifdef EXTREME_DEGUG
- zlog_debug("isis_circuit_if_add: if_id %d, isomtu %d snpa %s",
- circuit->interface->ifindex, ISO_MTU(circuit),
- snpa_print(circuit->u.bc.snpa));
+ if (IS_DEBUG_EVENTS)
+ zlog_debug(
+ "isis_circuit_if_add: if_id %d, isomtu %d snpa %s",
+ circuit->interface->ifindex, ISO_MTU(circuit),
+ snpa_print(circuit->u.bc.snpa));
#endif /* EXTREME_DEBUG */
circuit->u.bc.adjdb[0] = list_new();
isis_vertex_queue_append(&spftree->paths, vertex);
#ifdef EXTREME_DEBUG
- zlog_debug("ISIS-SPF: added this IS %s %s depth %d dist %d to PATHS",
- vtype2string(vertex->type),
- vid2string(vertex, buff, sizeof(buff)), vertex->depth,
- vertex->d_N);
+ if (IS_DEBUG_SPF_EVENTS)
+ zlog_debug(
+ "ISIS-SPF: added this IS %s %s depth %d dist %d to PATHS",
+ vtype2string(vertex->type),
+ vid2string(vertex, buff, sizeof(buff)), vertex->depth,
+ vertex->d_N);
#endif /* EXTREME_DEBUG */
return vertex;
}
#ifdef EXTREME_DEBUG
- zlog_debug(
- "ISIS-SPF: add to TENT %s %s %s depth %d dist %d adjcount %d",
- print_sys_hostname(vertex->N.id), vtype2string(vertex->type),
- vid2string(vertex, buff, sizeof(buff)), vertex->depth,
- vertex->d_N, listcount(vertex->Adj_N));
+ if (IS_DEBUG_SPF_EVENTS)
+ zlog_debug(
+ "ISIS-SPF: add to TENT %s %s %s depth %d dist %d adjcount %d",
+ print_sys_hostname(vertex->N.id),
+ vtype2string(vertex->type),
+ vid2string(vertex, buff, sizeof(buff)), vertex->depth,
+ vertex->d_N, listcount(vertex->Adj_N));
#endif /* EXTREME_DEBUG */
isis_vertex_queue_insert(&spftree->tents, vertex);
vertex = isis_find_vertex(&spftree->paths, id, vtype);
if (vertex) {
#ifdef EXTREME_DEBUG
- zlog_debug(
- "ISIS-SPF: process_N %s %s %s dist %d already found from PATH",
- print_sys_hostname(vertex->N.id), vtype2string(vtype),
- vid2string(vertex, buff, sizeof(buff)), dist);
+ if (IS_DEBUG_SPF_EVENTS)
+ zlog_debug(
+ "ISIS-SPF: process_N %s %s %s dist %d already found from PATH",
+ print_sys_hostname(vertex->N.id),
+ vtype2string(vtype),
+ vid2string(vertex, buff, sizeof(buff)), dist);
#endif /* EXTREME_DEBUG */
assert(dist >= vertex->d_N);
return;
if (vertex) {
/* 1) */
#ifdef EXTREME_DEBUG
- zlog_debug(
- "ISIS-SPF: process_N %s %s %s dist %d parent %s adjcount %d",
- print_sys_hostname(vertex->N.id), vtype2string(vtype),
- vid2string(vertex, buff, sizeof(buff)), dist,
- (parent ? print_sys_hostname(parent->N.id) : "null"),
- (parent ? listcount(parent->Adj_N) : 0));
+ if (IS_DEBUG_SPF_EVENTS)
+ zlog_debug(
+ "ISIS-SPF: process_N %s %s %s dist %d parent %s adjcount %d",
+ print_sys_hostname(vertex->N.id),
+ vtype2string(vtype),
+ vid2string(vertex, buff, sizeof(buff)), dist,
+ (parent ? print_sys_hostname(parent->N.id)
+ : "null"),
+ (parent ? listcount(parent->Adj_N) : 0));
#endif /* EXTREME_DEBUG */
if (vertex->d_N == dist) {
struct listnode *node;
}
#ifdef EXTREME_DEBUG
- zlog_debug("ISIS-SPF: process_N add2tent %s %s dist %d parent %s",
- print_sys_hostname(id), vtype2string(vtype), dist,
- (parent ? print_sys_hostname(parent->N.id) : "null"));
+ if (IS_DEBUG_SPF_EVENTS)
+ zlog_debug(
+ "ISIS-SPF: process_N add2tent %s %s dist %d parent %s",
+ print_sys_hostname(id), vtype2string(vtype), dist,
+ (parent ? print_sys_hostname(parent->N.id) : "null"));
#endif /* EXTREME_DEBUG */
isis_spf_add2tent(spftree, vtype, id, dist, depth, NULL, psid, parent);
}
#ifdef EXTREME_DEBUG
- zlog_debug("ISIS-SPF: process_lsp %s",
- print_sys_hostname(lsp->hdr.lsp_id));
+ if (IS_DEBUG_SPF_EVENTS)
+ zlog_debug("ISIS-SPF: process_lsp %s",
+ print_sys_hostname(lsp->hdr.lsp_id));
#endif /* EXTREME_DEBUG */
if (no_overload) {
isis_vertex_queue_append(&spftree->paths, vertex);
#ifdef EXTREME_DEBUG
- zlog_debug("ISIS-SPF: added %s %s %s depth %d dist %d to PATHS",
- print_sys_hostname(vertex->N.id), vtype2string(vertex->type),
- vid2string(vertex, buff, sizeof(buff)), vertex->depth,
- vertex->d_N);
+ if (IS_DEBUG_SPF_EVENTS)
+ zlog_debug("ISIS-SPF: added %s %s %s depth %d dist %d to PATHS",
+ print_sys_hostname(vertex->N.id),
+ vtype2string(vertex->type),
+ vid2string(vertex, buff, sizeof(buff)),
+ vertex->depth, vertex->d_N);
#endif /* EXTREME_DEBUG */
}
vertex = isis_vertex_queue_pop(&spftree->tents);
#ifdef EXTREME_DEBUG
- zlog_debug(
- "ISIS-SPF: get TENT node %s %s depth %d dist %d to PATHS",
- print_sys_hostname(vertex->N.id),
- vtype2string(vertex->type), vertex->depth, vertex->d_N);
+ if (IS_DEBUG_SPF_EVENTS)
+ zlog_debug(
+ "ISIS-SPF: get TENT node %s %s depth %d dist %d to PATHS",
+ print_sys_hostname(vertex->N.id),
+ vtype2string(vertex->type), vertex->depth,
+ vertex->d_N);
#endif /* EXTREME_DEBUG */
add_to_paths(spftree, vertex);