Module Name: src
Committed By: ozaki-r
Date: Tue Mar 28 07:32:16 UTC 2017
Modified Files:
src/sys/net: if_spppsubr.c
Log Message:
Use sp->pp_framebytes instead of the constant value "3"
It seems that it was forgotten to be converted in v1.22.
To generate a diff of this commit:
cvs rdiff -u -r1.167 -r1.168 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.167 src/sys/net/if_spppsubr.c:1.168
--- src/sys/net/if_spppsubr.c:1.167 Mon Jan 16 15:44:46 2017
+++ src/sys/net/if_spppsubr.c Tue Mar 28 07:32:16 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: if_spppsubr.c,v 1.167 2017/01/16 15:44:46 christos Exp $ */
+/* $NetBSD: if_spppsubr.c,v 1.168 2017/03/28 07:32:16 ozaki-r Exp $ */
/*
* Synchronous PPP/Cisco link level subroutines.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.167 2017/01/16 15:44:46 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.168 2017/03/28 07:32:16 ozaki-r Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -5080,7 +5080,7 @@ sppp_auth_send(const struct cp *cp, stru
if_start_lock(ifp);
sppp_lock_enter(sp);
}
- ifp->if_obytes += m->m_pkthdr.len + 3;
+ ifp->if_obytes += m->m_pkthdr.len + sp->pp_framebytes;
}
/*