diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-05-19 11:16:29 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-05-19 11:16:29 +0000 |
commit | e02354fab2485a4d757cda25ebc2dd193c68ed4b (patch) | |
tree | 41602f3a36fb87b1a045bf2d3c5951650c2024ac /tap-iousers.c | |
parent | 7a132e5b48db1f5fea29d461daa8d3a481432918 (diff) | |
download | wireshark-e02354fab2485a4d757cda25ebc2dd193c68ed4b.tar.gz wireshark-e02354fab2485a4d757cda25ebc2dd193c68ed4b.tar.bz2 wireshark-e02354fab2485a4d757cda25ebc2dd193c68ed4b.zip |
Fix a -z io,users,ip calculations bug.
stats were calculated for the wrong direction.
From Martin Visser
svn path=/trunk/; revision=7689
Diffstat (limited to 'tap-iousers.c')
-rw-r--r-- | tap-iousers.c | 4 |
1 files 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 <gerald@ethereal.com> @@ -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 { |