/*
* 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.
*/
u16 length;
struct proto *p = (struct proto *) (ifa->proto);
u16 i, j;
- u8 *aa, *bb;
if ((oa->rt == NULL) || (EMPTY_LIST(oa->lsal)))
originate_rt_lsa(oa);
case NEIGHBOR_LOADING:
case NEIGHBOR_FULL:
- aa = ifa->ip_sk->tbuf;
- bb = n->ldbdes;
- op = n->ldbdes;
- length = ntohs(op->length);
+ length = ntohs(((struct ospf_packet *)n)->length);
- for (i = 0; i < length; i++)
- {
- *(aa + i) = *(bb + i); /* Copy last sent packet again */
- }
+ memcpy(ifa->ip_sk->tbuf, n->ldbdes, length);
+ /* Copy last sent packet again */
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,