Module Name: src
Committed By: is
Date: Sat Apr 11 07:28:06 UTC 2020
Modified Files:
src/sys/net [is-mlppp]: if_spppsubr.c
Log Message:
compat code to make transplanting this to netbsd-8 easier
To generate a diff of this commit:
cvs rdiff -u -r1.187.2.5 -r1.187.2.6 src/sys/net/if_spppsubr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/net/if_spppsubr.c
diff -u src/sys/net/if_spppsubr.c:1.187.2.5 src/sys/net/if_spppsubr.c:1.187.2.6
--- src/sys/net/if_spppsubr.c:1.187.2.5 Fri Apr 10 19:45:24 2020
+++ src/sys/net/if_spppsubr.c Sat Apr 11 07:28:06 2020
@@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: if_spppsubr.
#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