This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: patch to fix IPv6 reassembly
- From: Gary Thomas <gary at chez-thomas dot org>
- To: Ken Cox <jkc at redhat dot com>
- Cc: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 26 Jul 2002 09:04:38 -0600
- Subject: Re: patch to fix IPv6 reassembly
- References: <Pine.LNX.4.44.0207260727360.22931-100000@Bigboy>
On Fri, 2002-07-26 at 06:29, Ken Cox wrote:
> ovbcopy() must handle the case where the src and dst regions are
> overlayed. memcpy() does not handle this case, but memmove() does.
>
Committed:
Index: net/bsd_tcpip/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos-opt/net/net/bsd_tcpip/current/ChangeLog,v
retrieving revision 1.6
diff -u -5 -p -r1.6 ChangeLog
--- net/bsd_tcpip/current/ChangeLog 10 Jul 2002 12:20:28 -0000 1.6
+++ net/bsd_tcpip/current/ChangeLog 26 Jul 2002 15:03:39 -0000
@@ -1,5 +1,12 @@
+2002-07-26 Gary Thomas <gary@chez-thomas.org>
+2002-07-26 Ken Cox <jkc@redhat.com>
+
+ * src/ecos/support.c (ovbcopy): ovbcopy() must handle the case
+ where the src and dst regions are overlayed. memcpy() does not
+ handle this case, but memmove() does.
+
2002-07-10 Gary Thomas <gary@chez-thomas.org>
* src/sys/netinet/udp_usrreq.c:
* src/sys/netinet/tcp_subr.c:
* src/sys/netinet/in_pcb.c: Rename 'errno' function parameter
Index: net/bsd_tcpip/current/src/ecos/support.c
===================================================================
RCS file: /misc/cvsfiles/ecos-opt/net/net/bsd_tcpip/current/src/ecos/support.c,v
retrieving revision 1.2
diff -u -5 -p -r1.2 support.c
--- net/bsd_tcpip/current/src/ecos/support.c 14 Jun 2002 21:35:31 -0000 1.2
+++ net/bsd_tcpip/current/src/ecos/support.c 26 Jul 2002 15:02:11 -0000
@@ -624,11 +624,11 @@ copyin(const void *s, void *d, size_t le
}
void
ovbcopy(const void *s, void *d, size_t len)
{
- memcpy(d, s, len);
+ memmove(d, s, len);
}
// ------------------------------------------------------------------------
// THE NETWORK THREAD ITSELF