Source-Changes-HG archive

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

[src/trunk]: src/sys/netipsec Replace ovbcopy -> memmove, same.



details:   https://anonhg.NetBSD.org/src/rev/439c131f9521
branches:  trunk
changeset: 829460:439c131f9521
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Feb 01 17:16:11 2018 +0000

description:
Replace ovbcopy -> memmove, same.

diffstat:

 sys/netipsec/ipsec_mbuf.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r 297762df2b32 -r 439c131f9521 sys/netipsec/ipsec_mbuf.c
--- a/sys/netipsec/ipsec_mbuf.c Thu Feb 01 16:49:34 2018 +0000
+++ b/sys/netipsec/ipsec_mbuf.c Thu Feb 01 17:16:11 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipsec_mbuf.c,v 1.16 2017/05/19 04:34:09 ozaki-r Exp $  */
+/*     $NetBSD: ipsec_mbuf.c,v 1.17 2018/02/01 17:16:11 maxv Exp $     */
 /*-
  * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
  * All rights reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipsec_mbuf.c,v 1.16 2017/05/19 04:34:09 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipsec_mbuf.c,v 1.17 2018/02/01 17:16:11 maxv Exp $");
 
 /*
  * IPsec-specific mbuf routines.
@@ -299,8 +299,8 @@
                 * so there's space to write the new header.
                 */
                /* XXX can this be memcpy? does it handle overlap? */
-               ovbcopy(mtod(m, char *) + skip,
-                       mtod(m, char *) + skip + hlen, remain);
+               memmove(mtod(m, char *) + skip + hlen,
+                       mtod(m, char *) + skip, remain);
                m->m_len += hlen;
                *off = skip;
        }
@@ -439,8 +439,8 @@
                 * the remainder of the mbuf down over the header.
                 */
                IPSEC_STATINC(IPSEC_STAT_INPUT_MIDDLE);
-               ovbcopy(mtod(m1, u_char *) + roff + hlen,
-                     mtod(m1, u_char *) + roff,
+               memmove(mtod(m1, u_char *) + roff,
+                     mtod(m1, u_char *) + roff + hlen,
                      m1->m_len - (roff + hlen));
                m1->m_len -= hlen;
                m->m_pkthdr.len -= hlen;



Home | Main Index | Thread Index | Old Index