Ethereal-dev: [ethereal-dev] small patch for ICMP TIMESTAMP

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Dirk Bonne <dirk@xxxxxxxxxxxxxxxxx>
Date: Thu, 23 Sep 1999 20:58:31 +0200
Hi,

I have a small/trivial bugfix pertaining ICMP TIMESTAMP
REQUEST/REPLY. I have done the bugfix against CVS sources.

The diff is attached. It would be nice if somebody would patch this in
the source.

(Note: I'm not on the mailing list, I just use ethereal...)
Dirk
Index: packet-ip.c
===================================================================
RCS file: /cvsroot/ethereal/packet-ip.c,v
retrieving revision 1.47
diff -u -u -r1.47 packet-ip.c
--- packet-ip.c	1999/09/14 08:18:24	1.47
+++ packet-ip.c	1999/09/23 18:48:16
@@ -1094,12 +1094,10 @@
       case ICMP_TSTAMPREPLY:
 	proto_tree_add_text(icmp_tree, offset +  8, 4, "Originate timestamp: %u",
 	  pntohl(&pd[offset +  8]));
-	proto_tree_add_text(icmp_tree, offset + 12, 4, "Originate timestamp: %u",
+	proto_tree_add_text(icmp_tree, offset + 12, 4, "Receive timestamp: %u",
 	  pntohl(&pd[offset + 12]));
-	proto_tree_add_text(icmp_tree, offset + 16, 4, "Receive timestamp: %u",
+	proto_tree_add_text(icmp_tree, offset + 16, 4, "Transmit timestamp: %u",
 	  pntohl(&pd[offset + 16]));
-	proto_tree_add_text(icmp_tree, offset + 20, 4, "Transmit timestamp: %u",
-	  pntohl(&pd[offset + 20]));
 	break;
 
     case ICMP_MASKREQ: