This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

patch to fix IPv6 reassembly


ovbcopy() must handle the case where the src and dst regions are
overlayed.  memcpy() does not handle this case, but memmove() does.

--- net/bsd_tcpip/current/src/ecos/support.c.orig	Wed Jul 24 15:12:39 2002
+++ net/bsd_tcpip/current/src/ecos/support.c	Thu Jul 18 14:56:47 2002
@@ -625,7 +625,7 @@
 void
 ovbcopy(const void *s, void *d, size_t len)
 {
-    memcpy(d, s, len);
+    memmove(d, s, len);
 }
 
 

-- 
Ken Cox
Communications Software Consultant
Red Hat, Inc.
4900 Corporate Dr.
Suite L
Huntsville, AL. 35805
(256) 217-0142
(256) 837-0057 (fax)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]