summaryrefslogtreecommitdiff
path: root/isisd/isis_pdu.c
diff options
context:
space:
mode:
authorhasso <hasso>2005-09-04 21:36:36 +0000
committerhasso <hasso>2005-09-04 21:36:36 +0000
commitc89c05dd04d097bd8213125a42d67204bb681de5 (patch)
treeb8bde80fab9ea45f035edcb71ce1795abcb039c8 /isisd/isis_pdu.c
parentc0fb2a52150ece6042181ab49fafc12b3ba07870 (diff)
* *.c: Try to be less verbose by default (without any debug options
on). * isis_lsp.c (lsp_build_nonpseudo): Use stream_reset() instead of touching endp directly. * isis_lsp.c (lsp_build_pseudo): Ditto.
Diffstat (limited to 'isisd/isis_pdu.c')
-rw-r--r--isisd/isis_pdu.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/isisd/isis_pdu.c b/isisd/isis_pdu.c
index e6a1e038..b15d4551 100644
--- a/isisd/isis_pdu.c
+++ b/isisd/isis_pdu.c
@@ -1121,14 +1121,17 @@ dontcheckadj:
&& circuit->u.bc.is_dr[level - 1] == 1))
{
lsp->lsp_header->seq_num = htonl (ntohl (hdr->seq_num) + 1);
- zlog_debug ("LSP LEN: %d", ntohs (lsp->lsp_header->pdu_len));
+ if (isis->debugs & DEBUG_UPDATE_PACKETS)
+ zlog_debug ("LSP LEN: %d",
+ ntohs (lsp->lsp_header->pdu_len));
iso_csum_create (STREAM_DATA (lsp->pdu) + 12,
ntohs (lsp->lsp_header->pdu_len) - 12, 12);
ISIS_FLAGS_SET_ALL (lsp->SRMflags);
- zlog_debug
- ("ISIS-Upd (%s): (1) re-originating LSP %s new seq 0x%08x",
- circuit->area->area_tag, rawlspid_print (hdr->lsp_id),
- ntohl (lsp->lsp_header->seq_num));
+ if (isis->debugs & DEBUG_UPDATE_PACKETS)
+ zlog_debug ("ISIS-Upd (%s): (1) re-originating LSP %s new "
+ "seq 0x%08x", circuit->area->area_tag,
+ rawlspid_print (hdr->lsp_id),
+ ntohl (lsp->lsp_header->seq_num));
lsp->lsp_header->rem_lifetime =
htons (isis_jitter
(circuit->area->max_lsp_lifetime[level - 1],
@@ -1168,10 +1171,11 @@ dontcheckadj:
ntohs (lsp->lsp_header->pdu_len) - 12, 12);
ISIS_FLAGS_SET_ALL (lsp->SRMflags);
- zlog_debug
- ("ISIS-Upd (%s): (2) re-originating LSP %s new seq 0x%08x",
- circuit->area->area_tag, rawlspid_print (hdr->lsp_id),
- ntohl (lsp->lsp_header->seq_num));
+ if (isis->debugs & DEBUG_UPDATE_PACKETS)
+ zlog_debug ("ISIS-Upd (%s): (2) re-originating LSP %s new seq "
+ "0x%08x", circuit->area->area_tag,
+ rawlspid_print (hdr->lsp_id),
+ ntohl (lsp->lsp_header->seq_num));
lsp->lsp_header->rem_lifetime =
htons (isis_jitter
(circuit->area->max_lsp_lifetime[level - 1],