Source-Changes-HG archive

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

[src/trunk]: src/sys/net Use sp->pp_framebytes instead of the constant value "3"



details:   https://anonhg.NetBSD.org/src/rev/95a9de0ded77
branches:  trunk
changeset: 352364:95a9de0ded77
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Tue Mar 28 07:32:16 2017 +0000

description:
Use sp->pp_framebytes instead of the constant value "3"

It seems that it was forgotten to be converted in v1.22.

diffstat:

 sys/net/if_spppsubr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b08974a6a2b0 -r 95a9de0ded77 sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c     Tue Mar 28 04:27:26 2017 +0000
+++ b/sys/net/if_spppsubr.c     Tue Mar 28 07:32:16 2017 +0000
@@ -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 @@
                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;
 }
 
 /*



Home | Main Index | Thread Index | Old Index