From f06834b80504497824ce50b533ba4fedb6abf2c7 Mon Sep 17 00:00:00 2001 From: hasso Date: Mon, 19 Sep 2005 10:44:04 +0000 Subject: * isis_lsp.c, isis_pdu.c, isis_spf.c: Remove some old unused code. --- isisd/isis_pdu.c | 101 ------------------------------------------------------- 1 file changed, 101 deletions(-) (limited to 'isisd/isis_pdu.c') 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 -- cgit v1.2.1