Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/netipsec



Jonathan Stone <jonathan%DSG.Stanford.EDU@localhost> 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@localhost



Home | Main Index | Thread Index | Old Index