isisd: remove unused process_is_hello()
The code uses process_lan_hello() or process_p2p_hello(). The unused
process_is_hello() seems to be a leftover generic version.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
diff --git a/isisd/isis_pdu.c b/isisd/isis_pdu.c
index 2178d95..02b50bf 100644
--- a/isisd/isis_pdu.c
+++ b/isisd/isis_pdu.c
@@ -1975,89 +1975,6 @@
}
/*
- * Process ISH
- * ISO - 10589
- * Section 8.2.2 - Receiving ISH PDUs by an intermediate system
- * FIXME: sample packet dump, need to figure 0x81 - looks like NLPid
- * 0x82 0x15 0x01 0x00 0x04 0x01 0x2c 0x59
- * 0x38 0x08 0x47 0x00 0x01 0x00 0x02 0x00
- * 0x03 0x00 0x81 0x01 0xcc
- */
-static int
-process_is_hello (struct isis_circuit *circuit)
-{
- struct isis_adjacency *adj;
- int retval = ISIS_OK;
- u_char neigh_len;
- u_char *sysid;
-
- if (isis->debugs & DEBUG_ADJ_PACKETS)
- {
- zlog_debug ("ISIS-Adj (%s): Rcvd ISH on %s, cirType %s, cirID %u",
- circuit->area->area_tag, circuit->interface->name,
- circuit_t2string (circuit->is_type), circuit->circuit_id);
- if (isis->debugs & DEBUG_PACKET_DUMP)
- zlog_dump_data (STREAM_DATA (circuit->rcv_stream),
- stream_get_endp (circuit->rcv_stream));
- }
-
- /* In this point in time we are not yet able to handle is_hellos
- * on lan - Sorry juniper...
- */
- if (circuit->circ_type == CIRCUIT_T_BROADCAST)
- return retval;
-
- neigh_len = stream_getc (circuit->rcv_stream);
- sysid = STREAM_PNT (circuit->rcv_stream) + neigh_len - 1 - ISIS_SYS_ID_LEN;
- adj = circuit->u.p2p.neighbor;
- if (!adj)
- {
- /* 8.2.2 */
- adj = isis_new_adj (sysid, NULL, 0, circuit);
- if (adj == NULL)
- return ISIS_ERROR;
-
- isis_adj_state_change (adj, ISIS_ADJ_INITIALIZING, NULL);
- adj->sys_type = ISIS_SYSTYPE_UNKNOWN;
- circuit->u.p2p.neighbor = adj;
- }
- /* 8.2.2 a) */
- if ((adj->adj_state == ISIS_ADJ_UP) && memcmp (adj->sysid, sysid,
- ISIS_SYS_ID_LEN))
- {
- /* 8.2.2 a) 1) FIXME: adjStateChange(down) event */
- /* 8.2.2 a) 2) delete the adj */
- XFREE (MTYPE_ISIS_ADJACENCY, adj);
- /* 8.2.2 a) 3) create a new adj */
- adj = isis_new_adj (sysid, NULL, 0, circuit);
- if (adj == NULL)
- return ISIS_ERROR;
-
- /* 8.2.2 a) 3) i */
- isis_adj_state_change (adj, ISIS_ADJ_INITIALIZING, NULL);
- /* 8.2.2 a) 3) ii */
- adj->sys_type = ISIS_SYSTYPE_UNKNOWN;
- /* 8.2.2 a) 4) quite meaningless */
- }
- /* 8.2.2 b) ignore on condition */
- if ((adj->adj_state == ISIS_ADJ_INITIALIZING) &&
- (adj->sys_type == ISIS_SYSTYPE_IS))
- {
- /* do nothing */
- }
- else
- {
- /* 8.2.2 c) respond with a p2p IIH */
- send_hello (circuit, 1);
- }
- /* 8.2.2 d) type is IS */
- adj->sys_type = ISIS_SYSTYPE_IS;
- /* 8.2.2 e) FIXME: Circuit type of? */
-
- return retval;
-}
-
-/*
* PDU Dispatcher
*/