Source-Changes-HG archive

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

[src/trunk]: src/sys/net add ovbcopy macro for KAME compat.



details:   https://anonhg.NetBSD.org/src/rev/8932691fd717
branches:  trunk
changeset: 512214:8932691fd717
user:      perry <perry%NetBSD.org@localhost>
date:      Sat Jul 07 18:26:26 2001 +0000

description:
add ovbcopy macro for KAME compat.

diffstat:

 sys/net/net_osdep.h |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r fa9827c5856c -r 8932691fd717 sys/net/net_osdep.h
--- a/sys/net/net_osdep.h       Sat Jul 07 17:37:39 2001 +0000
+++ b/sys/net/net_osdep.h       Sat Jul 07 18:26:26 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: net_osdep.h,v 1.5 2001/07/07 14:45:46 itojun Exp $     */
+/*     $NetBSD: net_osdep.h,v 1.6 2001/07/07 18:26:26 perry Exp $      */
 /*     $KAME: net_osdep.h,v 1.51 2001/07/06 06:21:43 itojun Exp $      */
 
 /*
@@ -164,7 +164,7 @@
  *
  * - ovbcopy()
  *     in NetBSD 1.4 or later, ovbcopy() is not supplied in the kernel.
- *     we have updated sys/systm.h to include declaration.
+ *     we provide a version here as a macro for memmove.
  *
  * - splnet()
  *     NetBSD 1.4 or later requires splsoftnet().
@@ -259,6 +259,10 @@
 #define if_list                if_link
 #endif
 
+#if defined(__NetBSD__) && __NetBSD_Version__ >= 104000000
+#define ovbcopy(src, dst, len) memmove((dst), (src), (len))
+#endif
+
 #if defined(__OpenBSD__) || (defined(__bsdi__) && _BSDI_VERSION >= 199802)
 #define HAVE_NRL_INPCB
 #endif



Home | Main Index | Thread Index | Old Index