From e02354fab2485a4d757cda25ebc2dd193c68ed4b Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Mon, 19 May 2003 11:16:29 +0000 Subject: Fix a -z io,users,ip calculations bug. stats were calculated for the wrong direction. From Martin Visser svn path=/trunk/; revision=7689 --- tap-iousers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tap-iousers.c b/tap-iousers.c index 7fdd50ae3e..1ea6e6e835 100644 --- a/tap-iousers.c +++ b/tap-iousers.c @@ -1,7 +1,7 @@ /* tap-iousers.c * iostat 2003 Ronnie Sahlberg * - * $Id: tap-iousers.c,v 1.6 2003/04/23 08:20:01 guy Exp $ + * $Id: tap-iousers.c,v 1.7 2003/05/19 11:16:29 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -223,7 +223,7 @@ iousers_ip_packet(io_users_t *iu, packet_info *pinfo, epan_dissect_t *edt _U_, v iui->bytes2=0; } - if(!memcmp(&iph->ip_src,iui->addr1,4)){ + if(!memcmp(&iph->ip_dst,iui->addr1,4)){ iui->frames1++; iui->bytes1+=pinfo->fd->pkt_len; } else { -- cgit v1.2.3