Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet fix stats to meet 4.4BSD practice



details:   https://anonhg.NetBSD.org/src/rev/d2044c10ddcd
branches:  trunk
changeset: 548444:d2044c10ddcd
user:      itojun <itojun%NetBSD.org@localhost>
date:      Thu Jun 26 21:49:17 2003 +0000

description:
fix stats to meet 4.4BSD practice

diffstat:

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

diffs (27 lines):

diff -r dba07a11e1e4 -r d2044c10ddcd sys/netinet/ip_mroute.c
--- a/sys/netinet/ip_mroute.c   Thu Jun 26 21:43:39 2003 +0000
+++ b/sys/netinet/ip_mroute.c   Thu Jun 26 21:49:17 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_mroute.c,v 1.73 2003/06/26 07:41:48 itojun Exp $    */
+/*     $NetBSD: ip_mroute.c,v 1.74 2003/06/26 21:49:17 itojun Exp $    */
 
 /*
  * Copyright (c) 1989 Stephen Deering
@@ -54,7 +54,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_mroute.c,v 1.73 2003/06/26 07:41:48 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_mroute.c,v 1.74 2003/06/26 21:49:17 itojun Exp $");
 
 #include "opt_ipsec.h"
 
@@ -1350,7 +1350,7 @@
        struct ip  *ip = mtod(m, struct ip *);
        vifi_t vifi;
        struct vif *vifp;
-       int plen = ntohs(ip->ip_len);
+       int plen = ntohs(ip->ip_len) - (ip->ip_hl << 2);
 
 /*
  * Macro to send packet on vif.  Since RSVP packets don't get counted on



Home | Main Index | Thread Index | Old Index