mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 02:30:52 +00:00
2005-02-19 Paul Jakma <paul.jakma@sun.com>
* ospf_packet.c: (ospf_stream_copy) remove (ospf_packet_dup) use stream_copy instead of ospf_stream_copy
This commit is contained in:
parent
109ac96f02
commit
fa81b713e7
@ -1,3 +1,8 @@
|
||||
2005-02-19 Paul Jakma <paul.jakma@sun.com>
|
||||
|
||||
* ospf_packet.c: (ospf_stream_copy) remove
|
||||
(ospf_packet_dup) use stream_copy instead of ospf_stream_copy
|
||||
|
||||
2005-02-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
||||
|
||||
* ospf_packet.c: (ospf_recv_packet) If there is somehow a runt
|
||||
|
@ -214,17 +214,6 @@ ospf_packet_delete (struct ospf_interface *oi)
|
||||
ospf_packet_free (op);
|
||||
}
|
||||
|
||||
struct stream *
|
||||
ospf_stream_copy (struct stream *new, struct stream *s)
|
||||
{
|
||||
new->endp = s->endp;
|
||||
new->getp = s->getp;
|
||||
|
||||
memcpy (new->data, s->data, stream_get_endp (s));
|
||||
|
||||
return new;
|
||||
}
|
||||
|
||||
struct ospf_packet *
|
||||
ospf_packet_dup (struct ospf_packet *op)
|
||||
{
|
||||
@ -236,7 +225,7 @@ ospf_packet_dup (struct ospf_packet *op)
|
||||
|
||||
/* Reserve space for MD5 authentication that may be added later. */
|
||||
new = ospf_packet_new (stream_get_endp(op->s) + OSPF_AUTH_MD5_SIZE);
|
||||
ospf_stream_copy (new->s, op->s);
|
||||
stream_copy (new->s, op->s);
|
||||
|
||||
new->dst = op->dst;
|
||||
new->length = op->length;
|
||||
|
Loading…
Reference in New Issue
Block a user