Source-Changes-HG archive

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

[src/is-mlppp]: src/sys/net compat code to make transplanting this to netbsd-...



details:   https://anonhg.NetBSD.org/src/rev/8aee0fe74e67
branches:  is-mlppp
changeset: 930648:8aee0fe74e67
user:      is <is%NetBSD.org@localhost>
date:      Sat Apr 11 07:28:06 2020 +0000

description:
compat code to make transplanting this to netbsd-8 easier

diffstat:

 sys/net/if_spppsubr.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 430f8b27f823 -r 8aee0fe74e67 sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c     Fri Apr 10 19:45:24 2020 +0000
+++ b/sys/net/if_spppsubr.c     Sat Apr 11 07:28:06 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_spppsubr.c,v 1.187.2.5 2020/04/10 19:45:24 is Exp $  */
+/*     $NetBSD: if_spppsubr.c,v 1.187.2.6 2020/04/11 07:28:06 is Exp $  */
 
 /*
  * Synchronous PPP/Cisco link level subroutines.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.187.2.5 2020/04/10 19:45:24 is Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.187.2.6 2020/04/11 07:28:06 is Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -92,6 +92,12 @@
 #include <net/if_sppp.h>
 #include <net/if_spppvar.h>
 
+#ifndef _NET_IF_STATS_H_
+#define if_statadd (ifp,member,amount) do { (ifp)->(member)+=(amount); } while (0)
+#define if_statadd2(ifp,m1,a1,m2,a2)   do { if_statadd(ifp,m1,a1); if_statadd(ifp,m2,a2);} while(0)
+#define if_statinc (ifp,member)                if_statadd(ifp,member,1)
+#endif
+
 #ifdef NET_MPSAFE
 #define SPPPSUBR_MPSAFE        1
 #endif



Home | Main Index | Thread Index | Old Index