summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-05-30 18:08:29 +0200
committerOndrej Filip <feela@network.cz>2000-05-30 18:08:29 +0200
commit935ceabea43714e4abae7ecaac0f072e8a4ecb15 (patch)
treeb1f93198ec4689be7274e1c7bcb2cf13af12585e
parenta548a7e167d50587aac4549d32924c95dc329e99 (diff)
downloadbird-935ceabea43714e4abae7ecaac0f072e8a4ecb15.tar
bird-935ceabea43714e4abae7ecaac0f072e8a4ecb15.zip
Don't send empty LS update.
-rw-r--r--proto/ospf/lsupd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/proto/ospf/lsupd.c b/proto/ospf/lsupd.c
index 891ca46..33d8f98 100644
--- a/proto/ospf/lsupd.c
+++ b/proto/ospf/lsupd.c
@@ -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);