aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ip.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-10-25 23:23:28 +0000
committerGuy Harris <guy@alum.mit.edu>2002-10-25 23:23:28 +0000
commitdaa0dd9f1a0978f250c41254a4c3f69024b2bbdb (patch)
tree742f490c1021562eb6bc7cc6ca9432c4a6930ec7 /packet-ip.c
parent86af47dd68245055354fa1b9eac58fb2b0159193 (diff)
Count ICMPv6 packets as ICMP when capturing.
Check the next header type - properly handling extension headers - in "capture_ipv6()". Get rid of the count of IPv6 packets - we break that down in "capture_ipv6()" now. Fix a typo. svn path=/trunk/; revision=6510
Diffstat (limited to 'packet-ip.c')
-rw-r--r--packet-ip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/packet-ip.c b/packet-ip.c
index a6a1edb929..942e1921d7 100644
--- a/packet-ip.c
+++ b/packet-ip.c
@@ -1,7 +1,7 @@
/* packet-ip.c
* Routines for IP and miscellaneous IP protocol packet disassembly
*
- * $Id: packet-ip.c,v 1.175 2002/10/24 06:17:34 guy Exp $
+ * $Id: packet-ip.c,v 1.176 2002/10/25 23:23:26 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -356,6 +356,7 @@ capture_ip(const guchar *pd, int offset, int len, packet_counts *ld) {
ld->udp++;
break;
case IP_PROTO_ICMP:
+ case IP_PROTO_ICMPV6: /* XXX - separate counters? */
ld->icmp++;
break;
case IP_PROTO_OSPF: