Subject: [PATCH] iputils: ping: Fix typo in echo reply

From: Jan Synacek <[email-masked]>
Date: Wed, 03 Oct 2012 10:26:59 +0200

Hello,

here is a fix for a typo that's currently present in ping.

Cheers,
--
Jan Synacek
Software Engineer, BaseOS team Brno, Red Hat
>>From 3b5623a03279538ca9a6f3796626c1aad9ef5477 Mon Sep 17 00:00:00 2001
From: Jan Synacek <[email-masked]>
Date: Wed, 3 Oct 2012 10:14:45 +0200
Subject: [PATCH] ping: Fix typo in echo reply

Signed-off-by: Jan Synacek <[email-masked]>
---
 ping.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ping.c b/ping.c
index 1425d1d..3ab2ae0 100644
--- a/ping.c
+++ b/ping.c
@@ -705,7 +705,7 @@ int send_probe()
 void pr_echo_reply(__u8 *_icp, int len)
 {
 	struct icmphdr *icp = (struct icmphdr *)_icp;
-	printf(" icmp_req=%u", ntohs(icp->un.echo.sequence));
+	printf(" icmp_seq=%u", ntohs(icp->un.echo.sequence));
 }
 
 int
-- 
1.7.11.4