]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Doc
authorOndrej Filip <feela@network.cz>
Wed, 7 Jun 2000 22:10:46 +0000 (22:10 +0000)
committerOndrej Filip <feela@network.cz>
Wed, 7 Jun 2000 22:10:46 +0000 (22:10 +0000)
proto/ospf/Doc
proto/ospf/iface.c
proto/ospf/iface.h
proto/ospf/lsack.c
proto/ospf/ospf.c

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..8b8906ff92e1815bf4a915e9a5c794930bd7f580 100644 (file)
@@ -0,0 +1,5 @@
+S ospf.c
+S topology.c
+S neighbor.c
+S iface.c
+S packet.c
index 4d20507def51b1e4f45445c7a55c96e9e96fa1fa..172a60ab9ddedd7c12cad96dc497b1c1c9c025f5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *     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.
  */
@@ -16,6 +16,15 @@ char *ospf_ism[]={ "interface up", "wait timer fired", "backup seen",
 
 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)
 {
@@ -117,6 +126,14 @@ downint(struct ospf_iface *ifa)
   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)
 {
@@ -251,7 +268,6 @@ ospf_open_ip_socket(struct ospf_iface *ifa)
   return(ipsk);
 }
 
-/* Of course, it's NOT true now */
 u8
 ospf_iface_clasify(struct iface *ifa, struct proto *p)
 {
@@ -458,3 +474,4 @@ ospf_ifa_add(struct object_lock *lock)
   ifa->state=OSPF_IS_DOWN;
   ospf_int_sm(ifa, ISM_UP);
 }
+
index 3070e19f17efb4a4766bd232e47424a1a10ecafb..99a32bfed8e23fd5996d7a461ce478c49cda0e09 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *      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.
  *
index f04b43082865c2b381d7008fc145ded767374cc5..51183ddcf973970cc0a16db61e99f457e709caf6 100644 (file)
@@ -100,7 +100,7 @@ ospf_lsack_delay_tx(struct ospf_neighbor *n)
         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))
@@ -151,8 +151,6 @@ ospf_lsack_delay_tx(struct ospf_neighbor *n)
   }
 }
 
-
-
 void
 ospf_lsack_rx(struct ospf_lsack_packet *ps, struct proto *p,
   struct ospf_iface *ifa, u16 size)
index af9e586d24d1f6c3b0347ee3eeb588e58a0d6f3c..9eec3092e7d1fea0980ff9c70d1fbd41fce26526 100644 (file)
@@ -28,7 +28,8 @@
  * 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