]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Don't send empty LS update.
authorOndrej Filip <feela@network.cz>
Tue, 30 May 2000 16:08:29 +0000 (16:08 +0000)
committerOndrej Filip <feela@network.cz>
Tue, 30 May 2000 16:08:29 +0000 (16:08 +0000)
proto/ospf/lsupd.c

index 891ca46772a46100047ae855b1f4460969a87b42..33d8f988c01c4cf0290c98acb42c101aba752c0c 100644 (file)
@@ -190,7 +190,7 @@ ospf_lsupd_tx_list(struct ospf_neighbor *n, list *l)
       ospf_pkt_finalize(n->ifa, op);
                       
       sk_send_to(n->ifa->ip_sk,len-SIPH, n->ip, OSPF_PROTO);
-      debug("%s: LS upd sent to %I\n", p->name, n->ip);
+      debug("%s: LS upd sent to %I (%d LSAs)\n", p->name, n->ip, lsano);
 
       DBG("LSupd: next packet\n");
       fill_ospf_pkt_hdr(n->ifa, pk, LSUPD);
@@ -210,7 +210,7 @@ ospf_lsupd_tx_list(struct ospf_neighbor *n, list *l)
   op->length=htons(len-SIPH);
   ospf_pkt_finalize(n->ifa, op);
 
-  debug("%s: LS upd sent to %I\n", p->name, n->ip);
+  debug("%s: LS upd sent to %I (%d LSAs)\n", p->name, n->ip, lsano);
   sk_send_to(n->ifa->ip_sk,len-SIPH, n->ip, OSPF_PROTO);
 }
 
@@ -245,7 +245,7 @@ ospf_lsupd_rx(struct ospf_lsupd_packet *ps, struct proto *p,
   }
   if(size<=(sizeof(struct ospf_lsupd_packet)+sizeof(struct ospf_lsa_header)))
   {
-    log("%s: Received lsupd from %I is too short\n", p->name,n->ip);
+    log("%s: Received lsupd from %I is too short!\n", p->name,n->ip);
     return;
   }
 
@@ -264,7 +264,7 @@ ospf_lsupd_rx(struct ospf_lsupd_packet *ps, struct proto *p,
 
     if(((diff+sizeof(struct ospf_lsa_header))>=size) ||
       ((ntohs(lsa->length)+diff)>size))
-      log("%s: Received lsupd from %I is too short\n", p->name,n->ip);
+      log("%s: Received lsupd from %I is too short.\n", p->name,n->ip);
 
     lenn=ntohs(lsa->length);