]> git.puffer.fish Git - mirror/frr.git/commitdiff
2005-02-19 Paul Jakma <paul.jakma@sun.com>
authorpaul <paul>
Sat, 19 Feb 2005 01:19:20 +0000 (01:19 +0000)
committerpaul <paul>
Sat, 19 Feb 2005 01:19:20 +0000 (01:19 +0000)
* ospf_packet.c: (ospf_stream_copy) remove
  (ospf_packet_dup) use stream_copy instead of ospf_stream_copy

ospfd/ChangeLog
ospfd/ospf_packet.c

index 9737854a11a8bee39814b1fd4e72020bf328d391..976847813bd1de39cdad23d2b7a3e81d7753c5b2 100644 (file)
@@ -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
index 038fd657572de4630921614b89a7c5a151865a76..6b7a796dfee3e0ee73824bc26ffff1f2b4775e25 100644 (file)
@@ -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;