summaryrefslogtreecommitdiff
path: root/print-icmp6.c
diff options
context:
space:
mode:
authorguy <guy>2003-03-13 07:36:56 +0000
committerguy <guy>2003-03-13 07:36:56 +0000
commit16b938c9e4df46aba201246dacfff38f7aa896d8 (patch)
tree3f3071621e40f8f3d75ea00f65a3b69e2361c665 /print-icmp6.c
parentd35664b74857a254f469e178a805b36751254610 (diff)
downloadtcpdump-16b938c9e4df46aba201246dacfff38f7aa896d8.tar.gz
From Kazushi Sugyo: print the sequence number in ICMPv6 echo request and
reply packets.
Diffstat (limited to 'print-icmp6.c')
-rw-r--r--print-icmp6.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/print-icmp6.c b/print-icmp6.c
index 0829119e..ce7474f9 100644
--- a/print-icmp6.c
+++ b/print-icmp6.c
@@ -21,7 +21,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-icmp6.c,v 1.68 2003-02-05 02:36:25 guy Exp $";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-icmp6.c,v 1.69 2003-03-13 07:36:56 guy Exp $";
#endif
#ifdef HAVE_CONFIG_H
@@ -220,10 +220,12 @@ icmp6_print(const u_char *bp, const u_char *bp2)
}
break;
case ICMP6_ECHO_REQUEST:
- printf("icmp6: echo request");
- break;
case ICMP6_ECHO_REPLY:
- printf("icmp6: echo reply");
+ TCHECK(dp->icmp6_seq);
+ printf("icmp6: echo %s seq %u",
+ dp->icmp6_type == ICMP6_ECHO_REQUEST ?
+ "request" : "reply",
+ EXTRACT_16BITS(&dp->icmp6_seq));
break;
case ICMP6_MEMBERSHIP_QUERY:
printf("icmp6: multicast listener query ");