forked from osmocom/wireshark
From Ulf Lamping: count ARP packets in capture progress dialog box.
svn path=/trunk/; revision=6416
This commit is contained in:
parent
a236ba90d0
commit
63d65a3f69
1
AUTHORS
1
AUTHORS
|
@ -1411,6 +1411,7 @@ Ulf Lamping <ulf.lamping[AT]web.de> {
|
|||
that cause compiler warnings
|
||||
Decoding of IEEE float and doubles for DCE-RPC
|
||||
Win32 fixes
|
||||
Count ARP packets in capture progress dialog box
|
||||
}
|
||||
|
||||
Matthew Smart <smart[AT]monkey.org> {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* capture.c
|
||||
* Routines for packet capture windows
|
||||
*
|
||||
* $Id: capture.c,v 1.192 2002/10/09 08:18:37 guy Exp $
|
||||
* $Id: capture.c,v 1.193 2002/10/14 17:33:48 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@ethereal.com>
|
||||
|
@ -1384,6 +1384,7 @@ capture(gboolean *stats_known, struct pcap_stat *stats)
|
|||
{ "TCP", &ld.counts.tcp, NULL, NULL, NULL },
|
||||
{ "UDP", &ld.counts.udp, NULL, NULL, NULL },
|
||||
{ "ICMP", &ld.counts.icmp, NULL, NULL, NULL },
|
||||
{ "ARP", &ld.counts.arp, NULL, NULL, NULL },
|
||||
{ "OSPF", &ld.counts.ospf, NULL, NULL, NULL },
|
||||
{ "GRE", &ld.counts.gre, NULL, NULL, NULL },
|
||||
{ "NetBIOS", &ld.counts.netbios, NULL, NULL, NULL },
|
||||
|
@ -1448,6 +1449,7 @@ capture(gboolean *stats_known, struct pcap_stat *stats)
|
|||
ld.counts.netbios = 0;
|
||||
ld.counts.vines = 0;
|
||||
ld.counts.other = 0;
|
||||
ld.counts.arp = 0;
|
||||
ld.pdh = NULL;
|
||||
|
||||
/* We haven't yet gotten the capture statistics. */
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* packet.h
|
||||
* Definitions for packet disassembly structures and routines
|
||||
*
|
||||
* $Id: packet.h,v 1.60 2002/08/28 20:40:44 jmayer Exp $
|
||||
* $Id: packet.h,v 1.61 2002/10/14 17:33:50 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@ethereal.com>
|
||||
|
@ -63,6 +63,7 @@ typedef struct _packet_counts {
|
|||
gint vines;
|
||||
gint other;
|
||||
gint total;
|
||||
gint arp;
|
||||
} packet_counts;
|
||||
|
||||
/* Types of character encodings */
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* ethertype.c
|
||||
* Routines for calling the right protocol for the ethertype.
|
||||
*
|
||||
* $Id: packet-ethertype.c,v 1.31 2002/08/28 21:00:13 jmayer Exp $
|
||||
* $Id: packet-ethertype.c,v 1.32 2002/10/14 17:33:48 guy Exp $
|
||||
*
|
||||
* Gilbert Ramirez <gram@alumni.rice.edu>
|
||||
*
|
||||
|
@ -104,6 +104,9 @@ capture_ethertype(guint16 etype, const guchar *pd, int offset, int len,
|
|||
packet_counts *ld)
|
||||
{
|
||||
switch (etype) {
|
||||
case ETHERTYPE_ARP:
|
||||
ld->arp++;
|
||||
break;
|
||||
case ETHERTYPE_IP:
|
||||
capture_ip(pd, offset, len, ld);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue