+S ospf.c
+S topology.c
+S neighbor.c
+S iface.c
+S packet.c
/*
* BIRD -- OSPF
*
- * (c) 1999 Ondrej Filip <feela@network.cz>
+ * (c) 1999 - 2000 Ondrej Filip <feela@network.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
char *ospf_it[]={ "broadcast", "nbma", "point-to-point", "virtual link" };
+/**
+ * iface_chstate - handle changes of interface state
+ * @ifa: OSPF interface
+ * @state: new state
+ *
+ * Many action must be taken acording to iterface state change. New networks
+ * LSA must be originated, flushed, new multicast socket to listen messages for
+ * %ALLDROUTERS has to be opened, etc.
+ */
void
iface_chstate(struct ospf_iface *ifa, u8 state)
{
mb_free(ifa);
}
+/**
+ * ospf_int_sm - OSPF interface state machine
+ * @ifa: OSPF interface
+ * @event: event comming to state machine
+ *
+ * This fully respect 9.3 of RFC 2328 except we don't use %LOOP state of
+ * interface.
+ */
void
ospf_int_sm(struct ospf_iface *ifa, int event)
{
return(ipsk);
}
-/* Of course, it's NOT true now */
u8
ospf_iface_clasify(struct iface *ifa, struct proto *p)
{
ifa->state=OSPF_IS_DOWN;
ospf_int_sm(ifa, ISM_UP);
}
+
/*
* BIRD -- OSPF
*
- * (c) 1999 Ondrej Filip <feela@network.cz>
+ * (c) 1999 - 2000 Ondrej Filip <feela@network.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*
len=sizeof(struct ospf_lsack_packet)+i*sizeof(struct ospf_lsa_header);
op->length=htons(len);
ospf_pkt_finalize(n->ifa, op);
- DBG("Sending and continueing! Len=%u\n",len);
+ DBG("Sending and continuing! Len=%u\n",len);
if(ifa->type==OSPF_IT_BCAST)
{
if((ifa->state==OSPF_IS_DR)||(ifa->state==OSPF_IS_BACKUP))
}
}
-
-
void
ospf_lsack_rx(struct ospf_lsack_packet *ps, struct proto *p,
struct ospf_iface *ifa, u16 size)
* a place where routins for searching LSAs in link-state database,
* adding and deleting them, there are also functions for originating
* various types of LSA. (router lsa, net lsa, external lsa) |Rt.c|
- * contains routins for calculating of routing table.
+ * contains routins for calculating of routing table. |Lsalib.c| is a set
+ * of various functions for work with LSAs.
*
* Just one instance of protocol is able to hold LSA databases for
* multiple OSPF areas and exhange routing information between