Byte count statistics of multicast vifs are invalid.

The problem is caused by a wrong endianess in the sum.

PR:		7115
Submitted by:	Joao Carlos Mendes Luis <jonny@jonny.eng.br>
This commit is contained in:
Poul-Henning Kamp 1998-06-30 10:56:31 +00:00
parent b039fc4c34
commit 5fa7f62e66

View File

@ -9,7 +9,7 @@
* Modified by Bill Fenner, PARC, April 1995
*
* MROUTING Revision: 3.5
* $Id: ip_mroute.c,v 1.45 1998/02/09 06:10:17 eivind Exp $
* $Id: ip_mroute.c,v 1.46 1998/04/17 22:36:58 des Exp $
*/
#include "opt_mrouting.h"
@ -1390,7 +1390,7 @@ ip_mdq(m, ifp, rt, xmt_vif)
register struct ip *ip = mtod(m, struct ip *);
register vifi_t vifi;
register struct vif *vifp;
register int plen = ntohs(ip->ip_len);
register int plen = ip->ip_len;
/*
* Macro to send packet on vif. Since RSVP packets don't get counted on