diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-03 07:05:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-03 07:05:09 +0000 |
commit | 95fc1f96f9bc4d81ca3c4c621d516a178cfe1cc0 (patch) | |
tree | 57eb337806448918f5975ecb6d85503616ab5b2f /sys | |
parent | ef8165ff7779fd737968dfba7eb9cbd061e49a53 (diff) |
wrong endian conversion caused vif stats to be wrong; jonny@jonny.eng.br
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_mroute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index 4bb4da071db..9c99ff3e184 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_mroute.c,v 1.8 1998/05/18 21:11:00 provos Exp $ */ +/* $OpenBSD: ip_mroute.c,v 1.9 1998/07/03 07:05:08 deraadt Exp $ */ /* $NetBSD: ip_mroute.c,v 1.27 1996/05/07 02:40:50 thorpej Exp $ */ /* @@ -1213,7 +1213,7 @@ ip_mdq(m, ifp, rt) 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 |