summaryrefslogtreecommitdiffstats
path: root/sys/netipsec/ipsec_mbuf.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-04-04 12:15:20 +0000
committerdes <des@FreeBSD.org>2003-04-04 12:15:20 +0000
commitfd534acfd96f6db214697500736e658b20872cf6 (patch)
tree8f9a31e02f7f688c1cca567559719d54b62e2212 /sys/netipsec/ipsec_mbuf.c
parentada79efc07f57a0c0a876be531268fb042460b5c (diff)
downloadFreeBSD-src-fd534acfd96f6db214697500736e658b20872cf6.zip
FreeBSD-src-fd534acfd96f6db214697500736e658b20872cf6.tar.gz
Replace ovbcopy() with bcopy().
Diffstat (limited to 'sys/netipsec/ipsec_mbuf.c')
-rw-r--r--sys/netipsec/ipsec_mbuf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netipsec/ipsec_mbuf.c b/sys/netipsec/ipsec_mbuf.c
index b8a8c20..a3a3b3f 100644
--- a/sys/netipsec/ipsec_mbuf.c
+++ b/sys/netipsec/ipsec_mbuf.c
@@ -291,9 +291,8 @@ m_makespace(struct mbuf *m0, int skip, int hlen, int *off)
* Copy the remainder to the back of the mbuf
* so there's space to write the new header.
*/
- /* XXX can this be memcpy? does it handle overlap? */
- ovbcopy(mtod(m, caddr_t) + skip,
- mtod(m, caddr_t) + skip + hlen, remain);
+ bcopy(mtod(m, caddr_t) + skip,
+ mtod(m, caddr_t) + skip + hlen, remain);
m->m_len += hlen;
*off = skip;
}
OpenPOWER on IntegriCloud