summaryrefslogtreecommitdiff
path: root/isisd/isis_pdu.c
diff options
context:
space:
mode:
Diffstat (limited to 'isisd/isis_pdu.c')
-rw-r--r--isisd/isis_pdu.c101
1 files changed, 0 insertions, 101 deletions
diff --git a/isisd/isis_pdu.c b/isisd/isis_pdu.c
index 87f37901..591b4912 100644
--- a/isisd/isis_pdu.c
+++ b/isisd/isis_pdu.c
@@ -2452,19 +2452,6 @@ send_l2_psnp (struct thread *thread)
return retval;
}
-/* FIXME: Not used any more? */
-/* static void
-build_link_state (struct isis_lsp *lsp, struct isis_circuit *circuit,
- struct stream *stream)
-{
- unsigned long length;
-
- stream_put (stream, lsp->pdu, ntohs (lsp->lsp_header->pdu_len));
- length = stream_get_endp (stream);
-
- return;
-} */
-
/*
* ISO 10589 - 7.3.14.3
*/
@@ -2606,91 +2593,3 @@ ack_lsp (struct isis_link_state_hdr *hdr, struct isis_circuit *circuit,
return retval;
}
-#if 0
-/*
- * ISH PDU Processing
- */
-
- /*
- * Let's first check if the local and remote system have any common area
- * addresses
- */
-if (area_match (tlvs.area_addrs, isis->man_area_addrs) == 0)
- {
- if (circuit->circuit_t == IS_LEVEL_2)
- {
- /* do as in table 8 (p. 40) */
- switch (circuit_type)
- {
- case IS_LEVEL_1:
- if (adj->adj_state != ISIS_ADJ_UP)
- {
- /* Reject */
- zlog_warn ("areaMismatch");
- retval = ISIS_WARNING;
- }
- else if (adj->adj_usage == ISIS_ADJ_LEVEL1)
- {
- isis_adj_state_change (adj, ISIS_ADJ_DOWN, "Area Mismatch",
- circuit->adjdb);
- }
- else if (adj->adj_usage == ISIS_ADJ_LEVEL1AND2 ||
- adj->adj_usage == ISIS_ADJ_LEVEL2)
- {
- isis_adj_state_change (adj, ISIS_ADJ_DOWN, "Wrong System",
- circuit->adjdb);
- }
- break;
- case IS_LEVEL_2:
- if (adj->adj_state != ISIS_ADJ_UP)
- {
- isis_adj_state_change (adj, ISIS_ADJ_UP, NULL,
- circuit->adjdb);
- adj->adj_usage = ISIS_ADJ_LEVEL2;
- }
- else if (adj->adj_usage == ISIS_ADJ_LEVEL1 ||
- adj->adj_usage == ISIS_ADJ_LEVEL1AND2)
- {
- isis_adj_state_change (adj, ISIS_ADJ_DOWN, "Wrong System",
- circuit->adjdb);
- }
- else if (adj->adj_usage == ISIS_ADJ_LEVEL2)
- {
- ; /* Accept */
- }
- break;
- case IS_LEVEL_1_AND_2:
- if (adj->adj_state != ISIS_ADJ_UP)
- {
- isis_adj_state_change (adj, ISIS_ADJ_UP, NULL,
- circuit->adjdb);
- adj->adj_usage = ISIS_ADJ_LEVEL2;
- }
- else if (adj->adj_usage == ISIS_ADJ_LEVEL1)
- {
- isis_adj_state_change (adj, ISIS_ADJ_DOWN, "Wrong System",
- circuit->adjdb);
- }
- else if (adj->adj_usage == ISIS_ADJ_LEVEL1AND2)
- {
- isis_adj_state_change (adj, ISIS_ADJ_DOWN, "Area Mismatch",
- circuit->adjdb);
- }
- else if (adj->adj_usage == ISIS_ADJ_LEVEL2)
- {
- ; /* Accept */
- }
- break;
- }
- goto mismatch;
- }
- else
- {
- isis_delete_adj (adj, circuit->adjdb);
- zlog_warn ("areaMismatch");
- return ISIS_WARNING;
- }
- }
-
-mismatch:
-#endif