Subject: Re: CVS commit: src/sys/netipsec
To: Jonathan Stone <jonathan@DSG.Stanford.EDU>
From: Perry E. Metzger <perry@piermont.com>
List: source-changes
Date: 08/13/2003 22:54:45
Jonathan Stone <jonathan@DSG.Stanford.EDU> writes:
> I already mentioned the patch to Sam.  He and I keep in touch about
> ocf and fast-ipsec.  It doesn't affect FreeBSD 4.x, since FreeBSD
> preserves the semantics whereby kernel bcopy() safely handles
> overlapping copies.

We don't have a kernel bcopy any more -- just a compat macro (and new
uses should be extirpated).

> On NetBSD, bcopy(src, dst, l) gets mapped to memcpy(dst, src, l),
> which is a Bad Idea when copying part of one mbuf over itself.

True enough, but if you're doing a "Traditional BSD" overlapping copy
you use ovbcopy... not that either should be done any longer...

-- 
Perry E. Metzger		perry@piermont.com