no comment

This commit is contained in:
Ondrej Filip 2004-06-04 18:24:15 +00:00
parent 12bed559ff
commit f158bb710b

View file

@ -1,7 +1,7 @@
/* /*
* BIRD -- OSPF * BIRD -- OSPF
* *
* (c) 1999 - 2000 Ondrej Filip <feela@network.cz> * (c) 1999--2004 Ondrej Filip <feela@network.cz>
* *
* Can be freely distributed and used under the terms of the GNU GPL. * Can be freely distributed and used under the terms of the GNU GPL.
*/ */
@ -28,7 +28,6 @@ ospf_dbdes_send(struct ospf_neighbor *n)
u16 length; u16 length;
struct proto *p = (struct proto *) (ifa->proto); struct proto *p = (struct proto *) (ifa->proto);
u16 i, j; u16 i, j;
u8 *aa, *bb;
if ((oa->rt == NULL) || (EMPTY_LIST(oa->lsal))) if ((oa->rt == NULL) || (EMPTY_LIST(oa->lsal)))
originate_rt_lsa(oa); originate_rt_lsa(oa);
@ -118,15 +117,10 @@ ospf_dbdes_send(struct ospf_neighbor *n)
case NEIGHBOR_LOADING: case NEIGHBOR_LOADING:
case NEIGHBOR_FULL: case NEIGHBOR_FULL:
aa = ifa->ip_sk->tbuf; length = ntohs(((struct ospf_packet *)n)->length);
bb = n->ldbdes;
op = n->ldbdes;
length = ntohs(op->length);
for (i = 0; i < length; i++) memcpy(ifa->ip_sk->tbuf, n->ldbdes, length);
{ /* Copy last sent packet again */
*(aa + i) = *(bb + i); /* Copy last sent packet again */
}
sk_send_to(ifa->ip_sk, length, n->ip, OSPF_PROTO); sk_send_to(ifa->ip_sk, length, n->ip, OSPF_PROTO);
OSPF_TRACE(D_PACKETS, "DB_DES (M) sent to %I via %s.", n->ip, OSPF_TRACE(D_PACKETS, "DB_DES (M) sent to %I via %s.", n->ip,