Fix a -z io,users,ip calculations bug.
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 19 May 2003 11:16:29 +0000 (11:16 +0000)
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 19 May 2003 11:16:29 +0000 (11:16 +0000)
stats were calculated for the wrong direction.

From Martin Visser

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7689 f5534014-38df-0310-8fa8-9805f1628bb7

tap-iousers.c

index 7fdd50ae3e3189a59d61e3ab036143b31ef84a61..1ea6e6e8359bb617d3a6025d733d1c498c5b91d9 100644 (file)
@@ -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 {